What's on a .iso file -> initramfs or mkinitcpio?

I've seen different answers, some saying both.

I thought the mkinitcpio was the tool to generate the initramfs file after it had collected information about your specific system.

So, wouldn't this be on the .iso file, not the initramfs? & then during the boot process, the mkinitcpio would generate your initramfs

reddit.com
u/John_Doe_1984_ — 1 day ago

What is your workflow for fixing issues?

This isn't necessarily specific to Arch but as I'm using & learning Arch currently.

You do an update, you have a problem/bug with the system/application, what is your workflow to solving it?

Speaking generally (obviously it depends on the type of issues, but I assume most workflows will be quite similar.)

I'm trying to sort my notes, here's what I've got so far (any advice appreciated):

*Recap List*

  1. What is the first step after an issue occurs

  2. What questions should you ask to identify the problem? Give an example

  3. Where should you look for error messages

  4. What is journalctl and why would you use it

  5. How does journalctl compare to systemd-journald

  6. What are 3 common journalctl commands

  7. After a brief search, there's no clear help, what can I do from here

  8. How do I test this hypothesis

  9. I'm stuck after trying a few changes, what can I do now

*Recap Answers*

  1. Narrow down the issue to be as specific as possible

    For example: 'Spotify crashes immediately after opening' is much clearer than 'Spotify doesn't work'

  2. Ask yourself: Can I reproduce the problem? What changed before the issue started?

    For Example: If Spotify crashes -> Does it crash every time?

Does it crash when launched with the shortcut & terminal?

Did the problem start after a system update or configuration change?

  1. Check the terminal first

    Run the application (Spotify) from the terminal, it will return to stdout any errors

  2. journalctl -> a command-line tool for viewing the system journal, this is a database of log messages maintained by systemd-journald

essentially its a history of what your system has been doing

I can use the command 'journalctl' with flags to search for specific log messages that might indicate what's caused the issue

  1. systemd-journald -> collects & stores system logs

    journalctl -> a tool that lets you view, search & filter those logs

  2. journalctl -b -> shows everything that has happened since the computer last booted (boot messages, services starting, errors, etc...)

    journalctl -xe -> shows the most recent log messages (x = include extra explanations; e = jump to the end, i.e. newest messages)

    journalctl -u <SERVICE> -> shows only log messages for a specific app (i.e. journalctl -u spotify-launcher -> specifically for this app)

  3. Form a hypothesis or guess on what has caused the issue

  4. Change 1 simple thing each time, test it again -> if it did not work change another thing

  5. Google it, use the specific issue ('Spotify crashes when I open it using the terminal') & any error messages found

reddit.com
u/John_Doe_1984_ — 1 day ago
▲ 5 r/emacs

What are the specific steps of Emacs downloading a package?

Sorry for the simple question but I've had a few conflicting answers & it's not entirely clear to me.

I've seen package.el is used but elsewhere I've heard that Emacs checks the local database instead of this.

I know it will be slightly different dependent on if it's an internal or external package.

reddit.com
u/John_Doe_1984_ — 2 days ago
▲ 134 r/archlinux

I'm a bit confused by the -S flag in sudo pacman -Syu

Bear with me here, very new Arch user.

This has really got me stumped, if y & u refreshes the databases & does the updates to packages, what's the -S do (I know it means Sync but why is this needed, is that not built into calling the 'pacman' command, that it syncs with repos?)

reddit.com
u/John_Doe_1984_ — 6 days ago
▲ 0 r/emacs

Is there a package so I can have mini-windows like in VS Code?

I'm trying to entirely move over from VS Code to Emacs but still rely on the mini-window (in the top) of VS Code which contains recently opened & edited scripts, I imagine there is something like this in Emacs?

Also, a side one, but is there also a package so I can have the side-on view/section (like in VS Code), which will give a list of all the directories & files in a directory?

Both of these features keep me from swapping over entirely

reddit.com
u/John_Doe_1984_ — 11 days ago
▲ 6 r/emacs

Eglot package only works in certain buffers

So I've recently added eglot to my config specifically for Python, it works in a standard .py file that I open in a buffer.

But, when I use C-c ' to open a code block (from org mode) in a temporary buffer it doesn't work here, the buffer is in the major mode python-mode & from the documentation it should work, can anyone help me out?

reddit.com
u/John_Doe_1984_ — 15 days ago

About to get Arch -&gt; what to learn to troubleshoot problems

I've been using Ubuntu for a few months, done a lot of research into how to set Arch up, & I'm just about ready to jump in.

But I understand there are a lot of updates for Arch & things can go wrong with the system & cause bugs, this I'm excited for.

There's not actually too much information on how to go about troubleshooting these issues (i.e. order of things to try, what's causing issues, etc...)

What would you recommend I learn about my system/how Arch works, so troubleshooting problems is less of a headache in future, any links or books would be greatly appreciated?

reddit.com
u/John_Doe_1984_ — 1 month ago
▲ 7 r/Fedora

Holding a key down reveals a runic alternative instead of using the key

Fedora version: 43

KDE Plasma

I recently did sudo dnf upgrade & now, certain keys, when held down work once & then a popup reveals runic alternatives & stops using the key.

It hadn't done this before the update, I use emacs with vim keybindings an insane amount so naturally this is very frustrating & I can't find a fix.

Any advice?

i.redd.it
u/John_Doe_1984_ — 2 months ago
▲ 7 r/emacs

Is it possible to save registers &amp; reuse them after emacs &amp; the pc restart?

I enjoy using registers with Vim shortcuts but I was curious if there is a way to change the config file so I can reload in registers when I reboot Emacs (i.e. assuming I log out for the day & relog back in the next day)

I tried a few different ways, i.e. having a .el file, placing in register letters/text & booting it into the registers when Emacs opens, but I couldn't do it

Anyone else seen this before or have an idea?

reddit.com
u/John_Doe_1984_ — 2 months ago
▲ 20 r/emacs

Moving notes from Google Docs to Org Mode, any advice?

I'm quite new to Emacs but want to get accustomed to it quickly.

I understand Org Mode is very well loved & a great scheduling & note keeping tool.

For my learning workflow I make a lot of notes, so the transition from Google Docs to Org Mode in Emacs makes sense, but my question is the time it will take to get used to it.

I currently have around 150 pages of notes in Google Docs, & I'm wondering how long it'll take me to get accustomed to Org Mode & move this many notes over.

I appreicate this amount of work/notes would take a while no matter what I was doing but this will be a good way for me to relook over & rewrite my notes as well as practise Org Mode, so it's a no brainer.

But I would love a guage of the time it'll take & any general advice for taking on this task as I've never used Org Mode before

reddit.com
u/John_Doe_1984_ — 2 months ago
▲ 37 r/emacs

Is there a website like Vimgym to learn Emacs shortcuts?

I find learning shortcuts manually very frustrating, but I learnt Vim shortcuts via Vimgym: https://www.vimgym.dev/ which was very satisfying & helped me transition across to it very quickly.

Does anyone know of a website like this for Emacs? Or even a tool/website that'll let me practise shortcuts or make my own to practise over and over?

Before the messages of practise by doing in Emacs come in, for some reason, my ADHD brain loves completing short challenges like this, otherwise I can't concentrate at all & I just do something else.

reddit.com
u/John_Doe_1984_ — 2 months ago

What's the best way to learn how a CPU works?

I understand the basics, but I actually want to write code & have it be executed to begin actually understanding it.

I've been reading 'introduction to computing systems' & they go through a huge amount of theory on their LC-3, which is a simple CPU, in the idea you'll learn how CPU's work generally, however, there's hardly any hands on work/problems, it's nearly all theory.

I don't learn well at all this way & I am a very hands on learner, what's the best way to learn this, I've debated going the route of learning a version of x86 assembly, but I understand there's over 200 instructions (depending on the version), whereas the LC-3 only had 15. Will this be quite a jump?

If anyone has a course or game or anything like that, I would really appreciate the link.

For reference, this isn't for work or a degree, just personal interest.

reddit.com
u/John_Doe_1984_ — 3 months ago

Is Exercism a good way to practise Bash?

https://exercism.org/tracks/bash/exercises

This might seem obvious, but from what I understand if your going to write a script that's more than a handful of lines long, it's recommended to use a different language to Bash (i.e. Python.)

With that in mind, does anyone have any advice on this, if you've used these exercises to practise or not?

I know most the common commands in Bash, I now want to start making simple scripts to push my skills.

u/John_Doe_1984_ — 3 months ago

Does Arch use a Debian based file system

I've been using Ubuntu for a few months now (but still very new to Linux, be easy on me)

From my understanding, debian based distros (i.e. Ubuntu) use the same file system, which when it came out was very well loved, hence many distros adopted it.

I can't find online if this file system is the same for Arch, as I've spent a long time trying to understand how my Ubuntu files work, so this would give me less of a hurdle to finally trying out Arch.

Is the file system the same or similar?

reddit.com
u/John_Doe_1984_ — 3 months ago

Difference between repositories &amp; package managers?

I understand package managers, but I'm getting confused when people refer to repositories, are they being used interchangably?

I've googled it, but they sound exactly the same, am I missing something?

reddit.com
u/John_Doe_1984_ — 3 months ago
▲ 5 r/emacs

Does Emacs use a similar .swp file saving system to Vim?

On Vim, if you begin editing a file it makes a .swp file with the changes, then when you save the file, it combines the original with the .swp file & deletes the .swp file so you have an updated file.

Does Emacs do the same?

I can see a new file ending in ~ is created (when I edit a file) but it appears to be the original copy of the file (not the updates I've made), also, saving the file doesn't delete this newly created backup file?

reddit.com
u/John_Doe_1984_ — 3 months ago
▲ 6 r/emacs

Difference between using :! and : when running a terminal command (Evil mode)?

This might be a very specific question, apologies

But running Emacs in Evil Mode & : or :! before running a terminal command (i.e. pwd or ls) don't appear to be doing anything different

In Vim, using !<command> would give you the result & keep you in the file, whereas :!<command> would temporarily put you in the terminal

Is there any difference between the 2 on Emacs that I'm missing?

reddit.com
u/John_Doe_1984_ — 3 months ago

What's the difference between a Frame &amp; a Buffer?

I've seen both be used & through google I understand there is a framebuffer system built into Linux.

However, what's the difference?

I have a fairly good understanding of a Buffer, but the word Frame is throwing me, are they the same?

reddit.com
u/John_Doe_1984_ — 3 months ago

Why can't I use a return statement in an __init__ function?

Apologies if this has been asked before, but here's my code:

You can print in both (i.e. the check's), but I'm a little confused why this __str__ is specifically used, only so you can include a return statement. Is this just to simplify the __init__ & make sure it's only used for creating variables?

class Student:
    def __init__(self, name, grade):
        self.name = name
        self.grade = grade
        print("check 1")
        
    def __str__(self):
        print("check 2")
        return f"{self.name} {self.grade}"


joe_init = Student("joe", "A-")
print(joe_init.name, joe_init.grade)
print(joe_init)
reddit.com
u/John_Doe_1984_ — 3 months ago