My Dearest Mad-Readers,
Let me present my first ever YouTube video, and a complete flop, as all of you may have guessed. It pains me to say it, but it sucks a bit (which is what a first-ever video is here for) so perhaps you shouldn’t waste your time watching it. If you do follow my tutorials, it can be of some help though.
Some of you may know this article belonged to my second (and now deleted) blog called todayilinux. I chose to re-publish it here just like the one on Linux Mint. Hopefully it will help some of you. I know first-hand installing Arch for the first time can be daunting.
In my journey as a GNU/Linux user, I have come to realize that whatever distribution you are running on your local machine does not matter so much. They all are very much alike and you can mess around in the same way in pretty much any of them. However, this does not mean that you cannot have your preferences. In my case, and despite some of its downsides, I like Arch Linux more than most others. It is also the one I have spent the most time using.
Some of its upsides
- The first and most obvious one is its community. Arch has a wide community of passionate users and it is a rare thing not to be able to find an answer to a question or an issue you may have. This is a huge advantage.
- The second one is its documentation. As a beginner, and sometimes even now (becomes do not be fooled, I am no expert), I struggled a lot with documentation. Today, I am ready to acknowledge that Arch has one of the best documentation out there (Gentoo is a fair competitor, but that will be the topic for another day).
- The third advantage is its package manager. Let’s face it, pacman rules. Plus, who wouldn’t like watching pacman updating their system ?
Its main downside
You got the point, Arch Linux is wonderful. However, there is still a huge downside to it which I would like to point out.
It will sound minor to most people but it remains the disadvantage which may actually succeed in making me switch to Gentoo Linux (another distribution which I will speak about in a following post).
You see, even though arch gives you much freedom, I believe it still does not give you enough. When running Arch, like with most other distributions, you cannot choose whether you will install the dependencies of a program or not. You have no choice. If you want to install gdm (gnome-display-manager), for instance, you have to install all its dependencies (like gnome-sessions). Same thing when updating your system : what if you do not want to update a package ? Well, again you have no choice. As for Gentoo-based distributions, they have a nice way for fixing this issue, but this will be the topic for another post. If you are curious, check out “Gentoo @world file”.
I could go on for hours speaking about Arch, or I could actually explain how to install it. So let us move on to the second part of this post : installing Arch.
You want to proceed methodically. It is no difficult task, but it is easy to forget something and go through avoidable trouble just because you felt like going faster that you should have. Just take things slow alright ? There is no rush !
You may not be familiar with this abbreviation. If you are not, it is a friendly way of saying that you should open this link in a new tab : https://wiki.archlinux.org/index.php/Installation_guide.
Learning to read the manual is, in my experience, the most valuable skill you should practice above all others. Why ? Because it will open the gates to the kingdom of knowledge to you. What does it matter if you know a programming language if you do not know what has changed from one day to the next, what has become deprecated overnight ? Just learn reading, it is the most useful skill of all, and it should get you through the process of installing all the Linux distributions in the market without having to read long blog posts.
Needless to say, I expect you to follow along with arch installation guide opened in another tab. All the commands which you will need are clearly laid out on their guide, there really is no point in copy-pasting them here, right ?
Whatever virtualization tool you want to use does not matter, but if you have never installed a distribution, it is helpful to get into the habit of trying and making mistakes in a safe environment.
I will just use virtualbox (you guessed it), because I am used to it. Just do the same if you have no idea what else to use.
Download Arch’s iso image
Pick a mirror on this page https://www.archlinux.org/download/ and download the iso file which you will need to boot the live environment. When you have done it, you may or may not verify the image signature. As this is (is it not?) a tutorial, I strongly recommend verifying it. As I am going to do the whole thing in a virtual machine, I will not do it. It is the whole point of virtual machine… you know… breaking things (and then fixing them, let us be serious for a second).
Are you done verifying the signature and all ? OK ! Let’s move on ! Get psyched, it should get more interesting from here. I mean, soon you should have the satisfaction of having installed the “most difficult” (LOL?) linux system, so get ready to be proud of yourself, alright ?
Boot the live environment
Fire up virtualbox. It is done ? Good. Now, click on “New”. It is the button on the left of “Settings” and next to “Tools” at the top of your screen. I know, it is SO accurate… but you are so talented I am absolutely sure you will find where it is. After clicking on “New”, name your virtual machine “Arch Linux” (or whatever…), select “Linux” for the “type” drop-down and “archlinux” for the “version” drop-down. Then click next. You can keep the default settings for the memory you want to allocate your virtual machine. I personally like to give it 2048Mo, but you are free to do whatever you feel like doing. I mean, we are Linux users, freedom is our kingdom, init ? (hum, systemd? Moving on…)
Just keep the default settings for most things. The only thing I would really recommend that you do is that you increase the size of your virtual disk. You would not go very far with just 8G, so move it up to 15G, alright ? Click next and… Yay, you are done ! Oh, no actually there is one last thing. Press the “start button”.
Now, it is very important that you select the right iso. If you are a normal person (as normal as you can be cause you are installing arch, guys). If you do not, I have to tell you that you probably would not be installing arch. Sorry…
Mess in the live environment
Be curious, fire an “ls”. You should at least see “install.txt”. from now until the end of this installation, this file is your best friend. Or, if you are like me and you have wi-fi, the arch wiki does a pretty good job on its own. If you are in the US, the good news is that you should not have to change your keyboard layout. For the others, if you have to change the keyboard layout, #RTFM. I have not counted how many times my brother told me to RTFM, so I am proud to do just like him today. You will thank me one day. I am sure you will. I mean, I hope you will…
You will, right ?
BIOS or UEFI
This command is most important. You need to know whether you are in UEFI or BIOS mode. That is why I took the time to type this command here. If you want the installation process to go well, do not neglect this step !
Connect to the internet
If you are following my advice (you better be :p), then just run ping google.com and you should soon realize that you are connected to the internet. When you found out that you are, just read the next two sections of the installation guide : Update the system clock & Partition the disk.
I do not believe you will need any help regarding the system clock, but I will say a quick work on partitioning. If this is your first install of arch, just keep things as simple as possible. Use cfdisk, you may find it much more clear than fdisk, and keep a simple partition layout. Create a partition for root, aka / and a swap partition.
When you are satisfied with your partition scheme, move on to “Format the partition” & “Mount the file systems“. These two sections are quite self-explanatory and there is a lot of copy-pasting going on, so I will not dwell on them. Same with “selecting the mirrors“. I will merely add that you only want to keep the mirrors closest to you. if you live in the USA, keep 4 or 5 mirrors located in the USA and delete the others (or comment them out, your choice).
Installing essential packages
When you run this command : pacstrap /mnt base linux linux-firmware, I recommend that you install vim, neovim (or emacs, if you want to feel different). Do not forget to install a network manager as well. I recommend networkmanager. Also, do not forget the packages to access the man pages. You never know, you might need to RTFM.
If you want to be able to log in, it can be nice to set a password for root, and while you are at it, you may as well create another user (and set its password too!).
Once you have done that, there is only one thing left to do : exit the chroot environment & reboot (I know, that’s two). Or… no, actually, I believe there IS one thing we have forgotten to do : the boot loader ! I recommend you install grub and then configure it with the commands provided in the arch wiki. Be careful though, the commands are not the same if you are on BIOS or UEFI mode.
Has it worked ? If it has, you can be proud of yourself. You are one step closer to becoming a power-user. If it has not, you can still be proud of yourself. Re-read this tutorial, study some more the arch-wiki and give it another go. Do not give up ! Your curiosity led you to arch, this is no coincidence. You have a lot of potential, so USE IT. Always keep learning !
P.S : Any tool to recommend ? Any constructive comment on this tutorial ? This was a first for me, I hope you liked it and that it was helpful. Drop a comment to let me know (like or subscribe, you’re free to do as you wish) ! If you are facing any difficulties, let me know too ! Shoot me an email, or comment below 😉
P.P.S : The picture at the top does not belong to me.