Skip to content

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?

27 points30 comments
Open on Reddit
About this post
Posted
Archived
Score
27 · 77% up
Kind
Text
ID
mxwedt

Author

4
posts
25
comments
1
media
View profile

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.

22 points

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.

4 points

'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.

9 points

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.

https://wiki.archlinux.org/index.php/installation_guide#Network_configuration

Complete the network configuration for the newly installed environment, that may include installing suitable network management software.

9 points

Complete the network configuration for the newly installed environment, that may include installing suitable network management software.

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?

0 points

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.

[Match]
Name=e*

[Network]
DHCP=yes

Start systemd network related services:

$ sudo systemctl start systemd-networkd

$ sudo systemctl start systemd-resolved
7 points
unknown author6 hidden

Deleted before we saved it.

8 points

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:

CHECKS:

$ resolvectl status
Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
    resolv.conf mode: foreign
Fallback DNS Servers: 1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10 2001:4860:4860::8888

Link 2 (enp0s3)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: <correct DNS server ip>
       DNS Servers: <DNS servers ip>


IF DNS (checks above) IS FUCKED UP, TRY LINKING:

# ln -sf    /run/systemd/resolve/stub-resolv.conf    /etc/resolv.conf

$ cat /run/systemd/resolve/stub-resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search .
1 points

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

Not technically true or I wouldn't be posting this.
And dhcpcd isn't a network manager.

7 points
unknown author

Deleted before we saved it.

4 points

/root of the install media has an install file with the contents of the installation guide in plain text. I highly recommend utilizing that resource.

4 points

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.

2 points

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!

1 points

You do know all of this is actually mentioned in the wiki right?

2 points

Yes, I quoted the sentence in another comment, I feel it deserves more emphasis.

1 points

the firewall, remember the firewall. left my laptop like 2 months without one before noticing.

2 points

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.

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

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

1 points
unknown author

Deleted before we saved it.

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points

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 statement is completely false. You need to learn the standard tools like ip (iproute2) and iw (iw & wireless_tools).

-1 points

Configure pacman hooks, enable multilib, install dosfstools

-3 points

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!).

3 points

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.

3 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.