You’re right, it’s definitely not necessary after every update. The answer is that anything currently running that does not get restarted after an upgrade can behave strangely after. As an example of this done gracefully, some web browsers will detect if a new version has been installed since it was last launched and warn you of undefined behavior if you continue without restarting. Now, a web browser can be restarted while the rest of the system is running, but your kernel never stops running unless you shut down/restart the whole machine (outside of configuring in-place kernel upgrades for systems that absolutely can’t go down for any reason), so that’s what you have to do to prevent undefined behavior from a kernel upgrade.
I can’t tell you how many times I’ve updated my system without rebooting, used it for a while, forgot that I updated, encountered a weird error, and then spent the next 15 minutes on a wild goose chase until I either realize it myself or happen to stumble upon someone else who did the exact same thing. Maybe I should set an alias or pacman hook to remind me…
The only time I had this problem was when I was using a laptop with a semi-broken keyboard that just happened to not insert the same key twice when I set the password, but worked when I tried to log in. As others have said, best bet is to boot the ISO again and chroot in to change it, but maybe copy/paste the password instead of typing, or be very deliberate with your keystrokes.
The downvotes are probably because the AUR is seen as one of the greatest strengths of Arch. Suggesting that new users try snaps FIRST is a little... blasphemous on a subreddit dedicated to Arch.
Were you able to test logging in without a password? Is the server set to accept authentication via key instead of password? https://www.ssh.com/ssh/copy-id
This is pretty much how to do it, not really any other way than create partition, edit fstab. Keep in mind that the new partition should be NTFS if you plan on sharing the data with a Windows partition. As for your question about /mnt/data, the article you posted answers that. Basically, you can mount it anywhere once created, but popular places are /mnt/somewhere or /media/somewhere.
You should never blindly delete pacnew files. While you may not have experienced negative consequences in the past, it still doesn't make it a smart idea. Use pacdiff/vimdiff, keep or edit things you may have changed in the file previously, make appropriate backups, THEN delete pacnew files.
Interestingly enough, plugging my headphones into a different jack actually fixed the issue. Not sure why the other jack doesn't work, but as long as it's working, I'm good. Thanks for the suggestions everyone!
This actually solves a separate issue I had where I wanted simultaneous audio playback on an HDTV I have connected via HDMI to my video card, but still no simultaneous audio to speakers and headphones.
Backup your ~/.bashrc file first, then also backup your /etc/bash.bashrc file. Use something like 'cp ~/.bashrc ~/.bashrc.backup' and 'sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup'.
If you want to use both /etc/bash.bashrc and ~/.bashrc, you'll need to use the cohabitation method. I'm not really sure what kind of ~/.bashrc wouldn't be compatible, so I just copied that code and added my aliases to it, since I actually liked those pacman aliases. I'm guessing '[[ $- != i ]] && return' is the only important line, but again, I'm not sure, there could be something some people have in their ~/.bashrc files that wouldn't be compatible. If you choose not to use the cohabitation method, I would suggest removing your ~/.bashrc file just in case, after backing it up of course.
Then 'sudo vim /etc/bash.bashrc' (use your preferred editor in place of vim, don't use vim if you've never used it before), delete everything, copy the text from the bash.bashrc section, and paste it into your editor. Find the line that starts with PS1 and comment it out with a single '#' at the beginning of the line. Then copy the PS1 code that you want from the wiki and paste that either immediately before or after the PS1 you just commented out.
Following these steps will color your prompt and change it to the one you want (only in a new shell, not your current one, so it's easiest to just restart) but if you use colors for commands like ls you also need to create /etc/DIR_COLORS with 'sudo vim /etc/DIR_COLORS' and paste in the /etc/DIR_COLORS code. Pacman can also use colors now, which you can get by editing /etc/pacman.conf with 'sudo vim /etc/pacman.conf' and uncommenting the #Color line.
Edit: Note that this is just a more in-depth explanation of what's in the wiki. If you wanted to, you should be able to just put the /etc/bash.bashrc code and the PS1 code that you want in your ~/.bashrc file without touching /etc/bash.bashrc. Editing /etc/bash.bashrc will give all users, including root, that colored prompt, while ~/.bashrc will only give it to you. Just depends on your preference (or your permissions) on the machine.
This is why I use Arch. Adding stuff you need as you need it is better than having to remove a whole bunch of crap you will never use. It also opened me up to the huge realm of possibilities of really configuring your system the way you want. If you're just given things that work okay, you're less likely to find things that work the way you actually like.
Haven't tried it myself since I don't use removable media very often these days, but it looks like udisks is the most common method. For your case, I'm guessing that means not using fstab.
Kept looking, and I found a lot of bug reports like this one where people seem to be having the same problem. This post suggests enabling/disabling compositing, trying different nvidia drivers, and trying nouveau (if you have an nvidia card).
You’re right, it’s definitely not necessary after every update. The answer is that anything currently running that does not get restarted after an upgrade can behave strangely after. As an example of this done gracefully, some web browsers will detect if a new version has been installed since it was last launched and warn you of undefined behavior if you continue without restarting. Now, a web browser can be restarted while the rest of the system is running, but your kernel never stops running unless you shut down/restart the whole machine (outside of configuring in-place kernel upgrades for systems that absolutely can’t go down for any reason), so that’s what you have to do to prevent undefined behavior from a kernel upgrade.
I can’t tell you how many times I’ve updated my system without rebooting, used it for a while, forgot that I updated, encountered a weird error, and then spent the next 15 minutes on a wild goose chase until I either realize it myself or happen to stumble upon someone else who did the exact same thing. Maybe I should set an alias or pacman hook to remind me…
The only time I had this problem was when I was using a laptop with a semi-broken keyboard that just happened to not insert the same key twice when I set the password, but worked when I tried to log in. As others have said, best bet is to boot the ISO again and chroot in to change it, but maybe copy/paste the password instead of typing, or be very deliberate with your keystrokes.
I always heard that
rm -rf /*(with the asterisk) would still delete root even without—no-preserve-rootflag, was this fixed somewhat recently?Unlikely since that article was written in 2018 and this is a recent update. Also sounds like that’s a Chrome thing, but OP mentions Chromium.
The downvotes are probably because the AUR is seen as one of the greatest strengths of Arch. Suggesting that new users try snaps FIRST is a little... blasphemous on a subreddit dedicated to Arch.
Were you able to test logging in without a password? Is the server set to accept authentication via key instead of password? https://www.ssh.com/ssh/copy-id
And the ntfs-3g wiki page doesn't mention root installs, so which page is intended?
Also, it did start out as WINdows Emulator, if I'm not mistaken.
Wow, if you look at the lowercase 'p' and lowercase 'a' it's pretty obviously this font, nice catch.
Edit: if it makes any difference, Operator Mono by itself for a single computer is "only" $199.
This is pretty much how to do it, not really any other way than create partition, edit fstab. Keep in mind that the new partition should be NTFS if you plan on sharing the data with a Windows partition. As for your question about /mnt/data, the article you posted answers that. Basically, you can mount it anywhere once created, but popular places are /mnt/somewhere or /media/somewhere.
Not sure what you're missing, but I had no idea about .inputrc before, so you taught me something new today; thanks!
Looks like nix is available on the AUR if you wanted to go that route.
You should never blindly delete pacnew files. While you may not have experienced negative consequences in the past, it still doesn't make it a smart idea. Use pacdiff/vimdiff, keep or edit things you may have changed in the file previously, make appropriate backups, THEN delete pacnew files.
Can you provide an example of a wiki article that assumes the user has Apache?
Interestingly enough, plugging my headphones into a different jack actually fixed the issue. Not sure why the other jack doesn't work, but as long as it's working, I'm good. Thanks for the suggestions everyone!
This actually solves a separate issue I had where I wanted simultaneous audio playback on an HDTV I have connected via HDMI to my video card, but still no simultaneous audio to speakers and headphones.
Well XFCE uses xfcewm so technically yes, although I haven't tried anything besides those two, certainly not another standalone wm.
I have tried that, as well as disabling all extensions.
Need some more information. Are you installing Arch now? Did you just install it? Or have you had a working setup and it suddenly stopped working?
Backup your ~/.bashrc file first, then also backup your /etc/bash.bashrc file. Use something like 'cp ~/.bashrc ~/.bashrc.backup' and 'sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup'.
If you want to use both /etc/bash.bashrc and ~/.bashrc, you'll need to use the cohabitation method. I'm not really sure what kind of ~/.bashrc wouldn't be compatible, so I just copied that code and added my aliases to it, since I actually liked those pacman aliases. I'm guessing '[[ $- != i ]] && return' is the only important line, but again, I'm not sure, there could be something some people have in their ~/.bashrc files that wouldn't be compatible. If you choose not to use the cohabitation method, I would suggest removing your ~/.bashrc file just in case, after backing it up of course.
Then 'sudo vim /etc/bash.bashrc' (use your preferred editor in place of vim, don't use vim if you've never used it before), delete everything, copy the text from the bash.bashrc section, and paste it into your editor. Find the line that starts with PS1 and comment it out with a single '#' at the beginning of the line. Then copy the PS1 code that you want from the wiki and paste that either immediately before or after the PS1 you just commented out.
Following these steps will color your prompt and change it to the one you want (only in a new shell, not your current one, so it's easiest to just restart) but if you use colors for commands like ls you also need to create /etc/DIR_COLORS with 'sudo vim /etc/DIR_COLORS' and paste in the /etc/DIR_COLORS code. Pacman can also use colors now, which you can get by editing /etc/pacman.conf with 'sudo vim /etc/pacman.conf' and uncommenting the #Color line.
Edit: Note that this is just a more in-depth explanation of what's in the wiki. If you wanted to, you should be able to just put the /etc/bash.bashrc code and the PS1 code that you want in your ~/.bashrc file without touching /etc/bash.bashrc. Editing /etc/bash.bashrc will give all users, including root, that colored prompt, while ~/.bashrc will only give it to you. Just depends on your preference (or your permissions) on the machine.
This is why I use Arch. Adding stuff you need as you need it is better than having to remove a whole bunch of crap you will never use. It also opened me up to the huge realm of possibilities of really configuring your system the way you want. If you're just given things that work okay, you're less likely to find things that work the way you actually like.
Looks like it.
Haven't tried it myself since I don't use removable media very often these days, but it looks like udisks is the most common method. For your case, I'm guessing that means not using fstab.
Kept looking, and I found a lot of bug reports like this one where people seem to be having the same problem. This post suggests enabling/disabling compositing, trying different nvidia drivers, and trying nouveau (if you have an nvidia card).