Things to Remember while Installing Arch Linux
Earlier today I installed Arch Linux during a live stream. I ran into a few problems along the way, most of which could have been avoided if I had just remembered to do a few things during the installation. I think it would be useful to have a list of some quick notes/reminders for the installation process - maybe even within Wiki's installation guide. I'd like to start a list here of some things that are worth remembering when doing an Arch Linux installation. For instance:
If you do not install dhcpcd (or another appropriate network manager) while rooted into the newly installed system, you will not be able to connect to the internet after rebooting. This will, of course, prevent you from downloading the software that would subsequently connect you to the internet. If you forget to install dhcpcd, you can reboot into the installation medium, remount the partitions, change root into the newly installed system, install dhcpcd, and then reboot back into the installed system. Obviously, it would be better to just remember this.
Do you guys have any notes you'd like to share?
About this post
- Posted
- Archived
- Score
- 27 · 77% up
- Kind
- Text
- ID
- mxwedt
40 comments
You can connect to the "internet" without using dhcpcd. As part of the systemd packages you get systemd-networkd and systemd-resolved, which can be configured as a dhcp client.
If you don't mind configuring the connection manually then 'iproute2' is dependency of the 'base' meta-package. You can use 'ip' to configure the address and route and then add a DNS server to /etc/resolv.conf with your favorite text editor.
That is pretty neat. Just out of curiosity, can you go a step below that and just enter Linux commands to connect? I like programming in C which I suppose explains my attraction to Arch.
'ip' is more or less the lowest level you can drop to as a user if you don't want to write your own tooling that interacts with netlink directly.
People watch live streams of that?
At least 97 apparently.
yes , of course what's the matter ? is there a law against that ?
https://wiki.archlinux.org/index.php/installation_guide#Network_configuration
And that is the only indication in the installation guide that this will be a problem - which is why I am making a note to emphasize that this step is important. What steps would you like to emphasize for their high importance and high likelihood of being overlooked?
Deleted before we saved it.
An option to re-chrooting when you forget to install dhcpcd. Adjust according to your requirements.
Create file : /etc/systemd/network/20-wired.network. This can be done with 'echo >redirect' if you also forget to install an editor like I have.
Start systemd network related services:
Deleted before we saved it.
I've not had to with my virtual test installs. My DNS is obtained from my router via DHCP IIRC.
EDIT:
From my systemd network notes:
Not technically true or I wouldn't be posting this.
And dhcpcd isn't a network manager.
Deleted before we saved it.
/rootof the install media has an install file with the contents of the installation guide in plain text. I highly recommend utilizing that resource.On a side note, I find it interesting that you failed and learned something.
I’m always suspicious of my arch installs if they go smoothly from A to Z ; that means usually that I didn’t go far enough with my initial design goals (whatever they are, for example couple of years ago when I decided to run wayland + sway in replacement of my the i3 WM).
For me arch is an iterative experience and perhaps you should see it this way when you stream your installs.
Well, I didn't fail - I just took a bit longer to get there. That being said, I definitely learned something and was thinking the same thing regarding repeating the procedure. The machine is going to be my personal blockchain node, so I think it is likely I will be improving it in the future!
You do know all of this is actually mentioned in the wiki right?
Yes, I quoted the sentence in another comment, I feel it deserves more emphasis.
the firewall, remember the firewall. left my laptop like 2 months without one before noticing.
I wonder what happened to arch installer. I heard it in r/linux. I also heard it sucks so hard, like it's only doing what alpine shell script installer is doing, but with badly written python code that doesn't work.
Hmm, I've never heard of it but I think I remember some people talking about it on r/linux as well - actually they spoke highly of it.
Deleted before we saved it.
Deleted before we saved it.
Unless you need a wireless connection (you would then need at least wpa-supplicant installed and to be honest network-manager is better for wifi than networkd although networkd is faster) systemd-networkd and systemd-resolved is already installed and easy to setup
Deleted before we saved it.
Making mistakes while installing arch linux is an excellent way to learn more about the fundamentals as well as how to fix stuff if it breaks down the line.
Deleted before we saved it.
This statement is completely false. You need to learn the standard tools like ip (iproute2) and iw (iw & wireless_tools).
Configure pacman hooks, enable multilib, install dosfstools
Can you explain why you would do these things? I'm planning to expand on this list so that it can be useful to myself and others in the future. Personally, I am not going to install anything on my system without an explanation (even if it was my own note!).
Pacman hooks will help you with systemd updates when running systemd-boot, rebuilding your initramfs whenever your nvidia driver updates, and triggers mirror sorting with reflector. You can do tons of cool stuff with them, but those are the only ones I consider requirements. Multilib will help you with drivers and libs needed to make a huge plethora of games run nicely through lutris, and includes tons of packages needed for building a huge variety of software from source. Dosfstools is required to get the command “mkfs.fat” which will fix broken flash drives.