Skip to main content

Tips and Tricks - Arch Linux Installation

A month ago, I had embarked on this remarkable challenge of installing Arch Linux, and truth be told, it was worth every bit.
Any CS Engineer should be aware of the nuances of the Linux Kernel, Distro, Display Manager and how all of these work together. The installation process of this Linux distro will make sure that you learn all of this, the right way.

Here are some tips to begin with:

1. Always try installation on Virtualbox first 

You don't know about the enormous struggle you will be facing with the installation and running Arch Linux on your machine. If you're not a Linux expert, please do not single boot this Linux on your first try. 
Only when you have finished installing Arch Linux on a Virtualbox, should you try dual/single booting Linux on your actual system. I took 3 attempts to get Arch Linux running properly (up till installing a DE) on my Virtualbox before installing it in my system.

2. Refer a tutorial for your first time

"But I might not learn anything then!"
You will, if you understand what every command is doing. 
But it's important to not have too much on your plate.
Once you follow a basic simple installation process, you can start questioning the reason behind each step the next time.
I would recommend a tutorial for first time installers because the Arch Linux Installation Guide is not a cakewalk. Following the official installation guide involves branching out onto several newer links, understanding what each and everything is, and one might not be really sure of what exactly they're supposed to do during the installation process. 
That being said, DO NOT BE AFRAID OF THE INSTALLATION GUIDE.

3. Always know your options

Whether its Virtualbox or a system dual boot, understand that whatever error you might run into, you have the following options:
However bad you screwed up, the Arch Linux forum experts will solve your problem.
But make sure you have exhausted all your options, because it's a pretty nasty place for Linux noobs.

4. Update the pacman mirrors (important!)

This is perhaps the most important tip you need. Just like you have `apt-get` in Ubuntu, you have `pacman`, short for package-manager in Arch. Now pacman uses a set of mirrors (download links, to put simply) to download the packages that you want it to. 
It has a list of mirrors stored in a file. Pacman fetches the package from the first link, and if it doesn't respond, it moves on to fetch from the next mirror. However, this does not mean that you will automatically be fetching from the fastest mirror. 
Before you proceed to run the command:
pacstrap /mnt base ..., do the following:
  • Open the file /etc/pacman.d/mirrorlist
  • Find the mirror links under India or China.
  • Cut & Copy the links to the top of the file.
 Your download speed will be 100 times faster than the original.

5. Learn about UEFI and the booting process

Once you have successfully installed Arch Linux on your Virtual Machine, the only challenge is to not crash your bootloader or do anything to jeopardize the existing systems. Learning about UEFI is not exactly learning about Linux, but it will give you an edge to understand whatever is going on, and probably prevent a system catastrophe.

Why you should be doing this?

Installing Arch Linux is stepping out of the comfort zone to explore the very platform you work on - Linux.
The process will not be a cakewalk, and Arch is not an extremely beautiful distro either, it's just like your normal Ubuntu/Mint/Zorin OS, just with lesser packages.
But the entire struggle will make you come out as a person with much much better knowledge about your OS than before, making you thankful for reading this blog.
I trust you to realize the additional benefits by the time you start using Arch.
Arch Linux is not cool, but installing it definitely is!

Source: Twitter @archlinuxmemes

Where to now?

 All the best!

Comments

Popular posts from this blog

Namaste JavaScript Quick Notes

Note:  Akshay Saini's Namaste JavaScript is probably the best course for JavaScript developers out there. These are my personal notes that I made while watching the course; they serve more of as an online quick reference for my understanding and revision, and I hope it benefits anyone reading it too! Everything in JS happens inside an Execution Context. Before a JS code is run, memory is allocated and variables are set as undefined   , and functions are set as their exact code in the scope within the Execution Context. The global execution context hosts all the global variables and function definitions. An Execution Context has 2 components: Memory, that stores variables and functions; and Code, that reads and executes the code. Call Stack maintains the order of execution contexts. Since JS is single threaded and asynchronous, at one point of time, only one function is executed which is at the top of the call stack. For each function, an execution context is created before executi

i3wm essentials - I (Brightness)

So you have started using i3 and somehow managed to open your browser and almost resumed your normal work.  But wait, the brightness is too much isn't it? Or is it too low? The mousepad used to work fine, but now all of a sudden tapping does not equal click?!  Don't worry.  This blog series will tell you all about the essential setup commands and common shortcuts that I use to navigate my work in i3, and how you can too. Changing the brightness So you just started i3 and you just can't take this brightness setting. You go for your function keys, and damn! They aren't working. Quick fix: Run the following command if you need to change the brightness ASAP. xrandr -q | grep ' connected' | head -n 1 | cut -d ' ' -f1 This will give an ouput that's the name of your monitor.  Use that monitor name here and change the values of brightness to suit your needs. xrandr --output <monitor-name> --brightness 0.7 Now that your eyes are comfortable, let me show

i3wm essentials - II

Welcome back! Let's continue this guide with other setup essentials for i3. Enabling Mousetap Chances are that if you're using a laptop, then tapping on the mousepad does not equal a click for you. You need to enable tapping in your config. Fortunately, there is one documentation available that works for majority of the setups. I don't need to explain this one in detail. Here you go: Enable tap to click in i3 . Volume Control This one is simple again. Do you remember the i3 config file I talked about in the previous blog ? All you need to do is go to that file and find the line: bindsym XF86AudioRaiseVolume Just below that line you will find lines with XF86AudioLowerVolume and XF86AudioMute too. Anyway, the truth is, there are 2 sets of lines with these keywords. Chances are that the line: bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% Will be uncommented and the line: bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink vo