Skip to content

u/ehs0329

In this archive from Apr 2013 to Oct 2022

2
posts
31
comments
0
media
122
score

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.

4 points

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…

3 points

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.

2 points

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.

4 points

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.

4 points

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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.