Thursday, November 2, 2023

Installing Arch Linux with the archinstall command in install ISO

Even though it's cheating because you're not doing everything yourself. You can easily install Arch Linux using the included script called archinstall. But dont do this the first time you install Arch Linux. 

Only do this to save time once you understand the system well, because you'll need to know a few things to fix any problems that happen. In fact, if you ever need help the official Arch Linux support forums explicitly state they wont help you if you used that script or followed any other guide than the Arch Installation guide wiki

The first thing you should do is connect to the internet if you arent already. For wifi you can use iwctl. It's very straight forward. As for ethernet it's probably already connected anyways. I dont know what to tell you if you're tethering with a phone I never used that.

At the iwctl prompt(after running the command) type station list to find the device name of your wifi card, usually wlan0. It's not always wlan0 of course so substitute it for what one you think it is. 

Then once you found which one you want to use type station wlan0 get-networks to see a list of wifi networks nearby. After that type station wlan0 connect "your wifi network here" Remember it's case sensitive and it'll error if you type it wrong. Then type quit after you're done.

Type ping archlinux.org to verify that you are connected to the internet. 

Next you'll want to update your mirrors to something geographically closer to you so you're packages download quicker. 

First you'll want to type reflector --list-countries to find your country.

Once you got that type for example reflector --country canada --save /etc/pacman.d/mirrorlist

you'll want to open that file and figure out which one is closest to you and move the instances of the server to the top of the file. It's not always clear where the server is, so you could google it i guess I am not sure. The server itself may have a website if it's a university, which a lot of those mirrors are universities.

After your done editing the file type pacman -Sy to update pacman's cache. 

Choose each setting the way you like it. Though remember to set a root password when you're done and still in the chroot. Otherwise you could lock yourself out if you didnt set your user to have sudo privileges.

No comments:

Post a Comment

A list of some software I installed on Arch Linux

This is a list of packages I installed on Arch Linux. When you install Arch Linux you get to choose whatever you want to install, though som...