Hey guys, i switched to nobara this week and trying to solve some problems. Problem 1: i was trying to follow this guide so i dont have to reconnect my audio interface when the pc goes to sleep: Reddit
but when i type /etc/default/grub
i only get Permission denied
Problem 2: im trying to get the Temparature Display on my antec flux pro to run but im really confused on which thing on github to use. Some use stuff like rust/cargo (dont even know what that is yet), some were for debian only? which means i cant use them right? GitHub - nishtahir/antec-flux-pro-display · GitHub
I would love to get some newb friendly advice. im super new to this and never have done any programming. I tried finding anwers via search but i didnt really find anything helpful
Responses to searches are often dominated by AI nonsense. My students and colleagues have found the book available at https://LinuxCommand.org/ as a free PDF (written before AI, updated, and translated to a few languages other than English) helpful. The file /etc/default/grub is a text configuration file that is protected from changes by unprivileged users. You need:
elevated privileges to gain “root” privileges, and
a way to edit text files in a terminal.
Configuration files often need editing when troubleshooting a system that isn’t working properly and only provides a text terminal, so if you are managing your own system, it is important to practice using a text mode editor such as vi before you need to fix a broken system.
In order to edit that config file simply just type sudo nano /etc/default/grub enter your credentials make the edits and then ctrl-x, Y and enter to save.
Ouch !! vi would have to be the worse editor ever. Its weird logic is a head-spinner. They kind of improved it by modernizing it to vim, but even that isn’t great. Nano has got to be the easiest editor ever for editing in a terminal. Of course all IMHO.
Just to summarize what to do:
In the terminal (for kde the terminal is called “Konsole”) type:
cat /etc/default/grub
This will show you what is currently in your Grub config file.
To modify (big caution..be sure you know what you are changing and at least have done some thorough research) type:
sudo nano /etc/default/grub
This now lets you add/edit the file. You can use your up/down, left/right arrow on your keyboard to add/edit any part. Delete and backspace will work as well.
Once you have added/edited the config file and you are finished, you have to properly write out the file so press on your keyboard: CTRL + O (that is the letter “O” not the number “0”). Now hit Enter on your keyboard.
You are still in the editor, so to get out of it: CTRL + X
Now you should see your normal command type prompt again.
just type: cat /etc/default/grub again to make sure it shows your changes.
We are not done yet…
For the system to get those changes one more step is required..
Type/paste in the following line: sudo grub2-mkconfig -o /boot/grub2/grub.cfg
This will update the “real” configuration that you actually never touch as you could seriously break your boot loader.
None of this will take effect until you finally reboot at which stage your changes come finally into effect.
Also, anytime you edit a config file like this, always make a backup first of the original version before making any changes. Then if your changes break something it’s easier to get back to a working state. Open a terminal and type “sudo cp /etc/default/grub /etc/default/grub.bak”.