richard· 19 Feb, 2021 · 4 min read
In part 2 of this series, we will be booting into a live Arch Linux environment. With the use of the USB drive we setup in the previous article.
Notes: There are a few presumptions being made for this guide. Regarding yourself and your current setup.
- You will be moving from another *nix system.
- This will help with the initial steps, with the programs being used to download the image and write it to a USB drive.
- If you are coming from Windows, I will try to link to articles explaining this fairly trivial difference.
Have access to this guide on another device.
- As once we get to installing Arch Linux, we'll be stuck in a terminal for some major steps.
Can handle looking deep into the empty void of the tty.
- Make sure not to make any typos - as I try to do the same throughout these guides.
Before booting the USB, make sure to turn off secure boot in the UEFI.
Plug in your USB and turn on you computer. Making sure to enter the boot menu and select the installation medium on your USB.
The key to press to enter the boot menu will vary depending on your motherboard. If you never see this boot menu option, and you load straight into your original operating system (likely Windows). This will mean you also need to turn off Fast Startup in you UEFI settings.
Now you should be greeted with the virtual console, and see that you are logged in as the root user.
Before anything, we need to verify that we are booting into UEFI mode.
$ ls /sys/firmware/efi/efivars
This should hopefully output the directory. If it didn't, you may be using a different boot mode than UEFI (e.g. BIOS).
Next, we will make sure your keyboard, clock and internet are connected. Before we move onto partitioning the hard drive to make space for our Arch install to live.
To get a list of all available key-maps available:
$ ls /usr/share/kbd/keymaps/**/*.map.gz
To narrow down your search, you can be little more advanced and pipe this list into grep, to make the listing easier to read. A simple example to get all Dvorak key-maps:
$ ls /usr/share/kbd/keymaps/**/*.map.gz | grep dvorak
Then, once you've found your key-map of choice, load it up with the following command. Remembering to leave off the .map.gz file extension:
$ loadkeys uk
For the "/usr/share/kbd/keymaps/i386/qwerty/uk.map.gz" keymap.
Now everything should be inserted correctly when you type out the remaining commands.
We first need to make sure our computer's network devices are recognised. As an example, my computer's Ethernet (eth13s0) and WLAN (wlp14s0) interfaces are listed with the following command:
$ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp13s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/ether 40:8d:5c:50:76:63 brd ff:ff:ff:ff:ff:ff 3: wlp14s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000 link/ether a4:34:d9:09:77:57 brd ff:ff:ff:ff:ff:ff
If you're connected with an Ethernet cable, you should be okay with connecting to the internet. We can test this by pinging a popular domain we expect to be running. Once we can see that we can connect to the outside world, we can move on to the next step.
$ ping wikipedia.com PING wikipedia.com (22.214.171.124) 56(84) bytes of data. 64 bytes from ncredir-lb.esams.wikimedia.org (126.96.36.199): icmp_seq=1 ttl=55 time=27.0 ms 64 bytes from ncredir-lb.esams.wikimedia.org (188.8.131.52): icmp_seq=2 ttl=55 time=28.6 ms 64 bytes from ncredir-lb.esams.wikimedia.org (184.108.40.206): icmp_seq=3 ttl=55 time=154 ms ^C --- wikipedia.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 26.984/69.917/154.174/59.581 ms
Entering Ctrl-C to stop this call (^C shown above)
For wireless connectivity, we will use the preinstalled iwd command line tool, with the following steps:
$ device list
$ station wlan0 scan
$ station wlan0 get-networks
$ station wlan0 connect SSID
$ station wlan0 show
Exiting the interactive prompt with
To make sure things are running as they should.
$ ping wikipedia.com
This is a simple step.
$ timedatectl set-ntp true