Skip to main content
  1. Archives/

ArchLinux Install & Setup Guide – Part 1 – The actual install

··1103 words·6 mins·
Tips & How-To's ArchLinux Linux

For some strange reason, recently I got an urge to try out ArchLinux. After much deliberation finally decided to try out ArchLinux again, in VirtualBox. My little install guide I compiled as I was reading through the Official ArchLinux Install Guide + Beginner’s Guide.

Please note: This is highly customized according to my requirements and nowhere as thorough /generalized as the official guides. Still, it might help you. Here we go -

Boot off the iso.

First screen you get once you login

uploadt.jpg

run

/arch/setup

to start install

ArchLinux setup starts

uploads.jpg

Arch comes with a fairly comprehensive install guide - check it at @ https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide

Or if you’re stuck without an Internet connection, the install guide is available on the CD, just hit Alt-F6 to spawn a new terminal, and type

less /arch/docs/official_installation_guide_en

to open it ( yes the installer gives wrong info, wonder why!)

The install guide then opens

uploadrh.jpg

Feel free to read it, for it is pretty comprehensive.

For now, lets get on with the Install. Hit Alt-F1 to go back to install screen. As the screen shows, you have lots to do, so lets start one by one

uploadb.jpg

We’ll start with Option 1- Select Source which allows you to choose CD as source or the ‘net. If you’ve chosen the CD install image, choose CD,else if you’ve downloaded net install image, choose the second option

uploado.jpg

Next, we move onto Option 2: Set Clock!

Select the region and timezone. We’ll select Asia/Kolkata and the proceed to set the time. The next option is where most people select wrong and then whine saying “Linux can’t set my time!”

Linux expects the Hardware clock ( your BIOS/Real Time Clock (RTC)) to be set in UTC time and applies timezone offsets according to Region, while Windows expects time to be set at localime. Anyways, for now select localtime

uploadp.jpg

Confirm the time and correct it, if it is not correct. For now, the time is correct and we shall move ahead

uploado.jpg

Next comes, what is probably the toughest part of most OS installs, hard disk preparation. Most people are used to Windows style partitions of C:, D:\ drives, while *nix OS don’t follow that architecture. *nix treats all devices as files, and so your c:, D:\ drive gets mapped as funky names like /dev/sda1 /dev/sda2 and so on. While it seems confusing at first, in reality, its not that hard.

/ - refers to “root” or the topmost structure in the hierarchy.

    • dev - refers to special devices such as hard disks, CD drives, USB devices and what not.
        • /sd - refers to SCSI device. Earlier the nomenclature was hdx for IDE devices and sdx for SCSI devices, but now SATA devices are designated as sd.
          • -a,b.. refers to the hard disk connected (a= first hard disk, b=second hard disk and so on)
              • — - - -1,2.. refers to partitions.

Combine them, you get, /dev/sda as the first hard disk, /dev/sda1 as first partition of your first hard disk

So lets select Hard disk preparation choice. You get another menu

uploadmo.jpg

Option 1 - Is probably best if you want to dedicate an entire hard disk to Arch ( in my case, since I’m using a VM anyway). In the context of this guide, this isn’t the best option

Option 3- Puts you in the nitty-gritty of partitioning. Lets not get into here either.

We’ll jump into Option 2- Manually Partition Hard Disks. Selecting that will launch cfdisk - and it should show you available hard disks:

uploadt.jpg

Confirm the hard disk that you want to partition

uploadz.jpg

So once cfdisk is up, you’ll be treated to a barebones interface. Yes, I mean /barebones/.

uploadx.jpg

Since I don’t have any existing partitions, I’ll just create one by selecting New -> Prirmary

uploado.jpg

I’ll create a swap partition first ,so I’ll allocate 1GB to it

uploadab.jpg

Add partition to beginning of the drive

uploadjy.jpg

We’ll create another partition - and allocate all remaining space to it

uploadu.jpg

Next, mark the type of the partitions - first is the swap

uploadq.jpg

On selecting type, you’ll get a huge list of values

uploadif.jpg

Hit enter, and type 82 to choose swap

uploadxa.jpg

Now,do the same for the other partition, except that you’ll have to enter 83 for filesystem type.. So once you’re done with partitioning, it should look something like this:

uploadwv.jpg

Before we’re done, we’ll have to mark the Linux partition as bootable, so that it handles booting.

uploadcm.jpg

Finally, choose Write to write all changes to the drive ( so far, nothing has been written, so you can always back out) and then exit.

Now that the partitions have been created, we’ll have to assign mount points.

uploadj.jpg

You’ll get a Warning message, just click no and move ahead

uploadn.jpg

Earlier, I’d mentioned that sda1 is chosen for swap, so lets select swap as the type:

uploadhv.jpg

uploadde.jpg

Do the same for other partition, selection ext3 as the type. When asked for the mount point select “/”

Now, lets move on to 4th option, select pakages where you get to choose which packages to install.Arch follows the policy of install bare minimum first, whatever you want later, so for now you get only a barebones console package. Do select base-develop if you wish to do further tinkering

uploadt.jpg

Just hit OK, wait for a bit, and then you’ll be taken back to the main menu. Proceed with installing the packages.

Once install is done, we’ll move ahead with configuring the system.Select nano as the editor. Proceed with editing the files only if you know what you’re doing!

Otherwise just leave them as it is.

I’ll start with editing /etc/rc.conf since I want to change my hostname ( name of my computer)

uploadr.jpg

Remember: If it doesn’t make sense, don’t touch it! Hit Ctrl-X and type Y and hit Enter to save changes, else type no.

Before you leave this screen, don’t forget to enter a new root password, - and remember Do NOT forget this password!

Choose done to return to the main menu.

Now for the last step - to install bootloader. Just select grub ( or none, if you want your existing bootloader to handle it). Once grub config is generated,

nano will open with menu.lst, where you can do any changes, if needed. Hit Ctrl+X and save, if needed

And that’s it! Install is completed, choose exit, and type reboot to start your newly installed ArchLinux !

On rebooting you’ll be prompted to login. Bear in mean there are no users created yet, except for the root user. So login with username as root and password you entered above.

Part II: Creating a new user, setting up GUI - coming soon ;)

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

Mounting file system created by Wubi in other Linux distros
··100 words·1 min
Tips & How-To's Linux Applications
I wasn’t aware of this tiny little thing - the filesystem in the file created by a Wubi install can be easily mounted as a loop device. To do so, just open the Terminal and type the below: mount -o loop This will make the kernel auto detect the filesystem type and try to mount it. Alternatively, if you’re sure of the filesystem type, mention it explicitly mount -t -o loop
Updating to openSUSE 11.2
··168 words·1 min
Tips & How-To's Linux Opensuse
As mentioned openSUSE 11.2 is now available. If you’re on previous versions of openSUSE you can do an inplace upgrade to 11.2 by using zypper. openSUSE 11.0/openSUSE 11.1 Just change the repos to mention 11.2 instead of 11.0/11.1, as shown in the pic: Once that’s done, open the terminal, and switch to root su root Then refresh the repos zypper ref Finally, do the distribution upgrade zypper dup openSUSE 11.2 Milestone/RC versions:
[How-to] Fix “E: Unable to parse package file /var/lib/apt/extended_states (1)” error in Synaptic or apt-get
··82 words·1 min
Tips & How-To's Linux Ubuntu
This is just a quick tip. If you are getting this error message in Synaptic: E: Unable to parse package file /var/lib/apt/extended_states (1) E: _cache->open() failed, please report or this error in apt-get in command line: Reading package lists… Done Building dependency tree Reading state information… Error! E: Unable to parse package file /var/lib/apt/extended_states (1) and both just fail to open or install, then just execute this in command line (terminal):