Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Linux > Other Tips, Tricks and Tutorials

July 6th, 2007, 12:19 GMT · By

How to Install Arch Linux

SHARE:

Adjust text size:


GRUB
Enlarge picture
Arch Linux is a lightweight and flexible GNU/Linux distribution. It uses i686 and x86_64 optimized packages that offer you an improved performance over other distributions. In today's guide, I'll try to explain you how to install this Linux distribution on your personal computer. First of all, grab the ISO from Arch Linux's Softpedia download page, burn it on a blank CD and then insert the disc in the optical drive of the PC on which you want to install Arch Linux.

Once the CD booted, you'll see a welcome screen. Hit enter to boot:

Review image


When the CD loaded, you will see another screen with some options. The most important thing to remember here is the command to start the installation process: /arch/setup. But, before we launch the installation wizard, let's create some partitions with cfdisk.

Disk partitioning with cfdisk:

First of all, you should know how to use cfdisk:

- up/down arrow lets you navigate through partitions/free space
- left/right arrow lets you navigate through the existing functions
- enter key executes a function when selected

Now, if you have some leftover partitions on your hard drive, please select them (one by one) and with the left arrow select the "delete" function. Your hard drive is empty (no partitions) now so you can start the partitioning process:

Create swap partition

1. Select "New"
2. Select "Primary"
3. With the Backspace key delete the existing size (which is the total amount of your hard disk) and type a new size that should be double the RAM on your machine
4. Navigate to "Type", hit enter twice and set the value at 82 (which is default, so all you have to do is hit enter again).

Create root partition

1. Select the Free space with the down arrow
2. Select "New"
3. Select "Primary"
4. Leave the size as it is, or if you don't want to distribute all the remaining space for the server, you can type a new size (minimum 5 GB).
5. Select "Bootable"

Now the swap and root partitions are created, navigate with the left arrow until you reach the "Write" function, hit enter, type yes to write all the changes to disk. Then navigate to the "Quit" function and hit enter.

Review image


You are back to the command line, type /arch/setup

Review image


You'll see a welcome screen. Hit OK:

Review image


Select the installation source, which in our case is the first one (CD-ROM or OTHER SOURCE):

Review image


And you'll arrive to the Main Menu from which you can control the whole installation process:

Review image


The options are:

1. Prepare Hard Drive
2. Select Packages
3. Install Packages
4. Configure System
5. Install Kernel
6. Install Bootloader
7. Exit Install

Enter the first option (Prepare Hard Drive) and choose the third option (Set Filesystem Mountpoints):

Review image


Select the SWAP partition (in our case is the first one: /dev/sda1):

Review image


When asked if you want to create a filesystem on /dev/sda1, hit 'Yes':

Review image


Then select the root (/) partition (/dev/sda2):

Review image


And the filesystem for it. Ext3 is very good choice here:

Review image


When asked if you want to create a filesystem on /dev/sda1 hit 'Yes':

Review image


Hit DONE when finished:

Review image


Then you will be asked if you want to create and mount the filesystems. If it looks just as in the screenshot below, hit 'Yes':

Review image


Wait a few seconds and you'll receive a message that notifies you that all partitions were successfully mounted. Hit OK and you will be back on the Prepare Hard Drive menu.

Review image


Select the Return to Main Menu option:

Review image


Enter the second option now, Select Packages and select the first option (Mount the CD-ROM and install it from there):

Review image


Select the CD drive that contains the Arch packages:

Review image


Wait for the CD to be mounted and when it's done, you will get a notification message about the package selection. Read it, because it's very important!

Review image


I've selected all the packages for this installation, and if you want to have a complete Arch installation I suggest you to do the same:

Review image


When asked if you want to select all packages by default, hit 'Yes':

Review image


Then you will see all the packages that will be installed in your system. You can remove some packages at this point ONLY if you know what you're doing; if not, hit OK and you'll be back to the Main Menu:

Review image


Enter the third option (Install Packages):

Review image


You will be notified that the package installation will begin and that it will take a few minutes to finish. Hit OK and when asked if you want to keep the packages in pacman cache choose 'No'.

The package installation will start:

Review image


You will be notified when the package installation is complete. Hit 'Continue' until you reach the end of the text, where it says (Package Installation Complete):

Review image


Hit 'Continue' and you will be back to the Main Menu. Select the next option, Configure System:

For the first question, select 'Yes' as it is already recommended:

Review image


If you need support for booting from USB devices, select 'Yes' or 'No'. I suggest you to select 'Yes' here:

Review image


Do you need support for booting from firewire devices? Select 'Yes' or 'No' depending on your needs:

Review image


If you want to boot from pcmcia devices, select 'Yes' on the next screen, otherwise select 'No' if you don't have PCMCIA devices:

Review image


For NFS shares boot support select 'Yes' on the next question, or 'No' if you do not want to boot from NFS shares:

Review image


If you want to boot from software raid arrays, select 'Yes', otherwise select 'No' for this question if you have no idea what software raid arrays are:

Review image


Same goes for software raid mdp/partition arrays boot support. Select 'No' here if you have no idea what the software raid mdp/partition is:

Review image


Do you need support for booting from lvm2 volumes?

Review image


If you want to boot from encrypted partitions select 'Yes' to this question (recommended):

Review image


And the last question asks you if you want to boot the kernel with a custom DSDT file. If you have no idea what this is, select 'No'.

Review image


You will be asked for a default console-based text editor, so select nano if you are an inexperienced user. Then you will see a list with the most important configuration files that you can tweak to meet your needs (ONLY IF YOU KNOW WHAT YOU ARE DOING):

Review image


I suggest you to leave the configuration files as they are and go to the Root-Password option to setup a password for the root (system administration) account. Type the password, hit enter and then type it again. If successful, you'll come back to the Configuration menu where you can setup a mirror for the Pacman package manager or return to the Main Menu:

Review image


The fifth option allows you to Install the Kernel:

Review image


You will see a list with only one kernel, so there is no other choice here than to select the default one:

Review image


Once again, you will be asked if you want to keep packages in pacman cache. Select 'No' and the kernel will be installed. You will be notified when the kernel installation is complete, scroll the text until you see Package Installation Complete and then hit 'Continue'. You will see a message that lets you know the kernel was successfully installed.

Review image


Hit 'OK' and you must configure the kernel now. Select 'Yes' for the first question:

Review image


Before rebuilding the fallback image, it is recommended that you review the configuration file. Hit 'OK' and you'll be put into a text editor (GNU nano). Inexperienced users should hit CTRL+X to exit the editor:

Review image

Review image


The fallback image will be rebuilt. It will take a few seconds:

Review image


You are back to the Main Menu. Select the sixth option, Install Bootloader:

Review image


Here are two options: GRUB and LILO. If you have no idea what to select, I strongly recommend you to choose GRUB:

Review image


Before installing GRUB, it is recommended that you review the configuration file. Hit 'OK' and you'll be put into a text editor (GNU nano):

Review image


Inexperienced users should hit CTRL+X to exit the editor:

Review image


Then you must select the boot device where the GRUB boot loader will be installed. It is recommended to hit ENTER here with the default option /dev/sda (MBR):

Review image


You'll be asked if you have software raid installed:

Review image


‘GRUB was successfully installed’ is the message you'll receive next. Hit 'OK':

Review image


Exit the installer and type reboot:

Review image


Remove the CD from the optical drive. The system will boot from the hard drive and you will see the GRUB boot loader. Hit enter on the default option (Arch Linux) or wait for 5 seconds for the system to boot:

Review image


At the login prompt, type root and the password you have set up when you installed the system. When you're logged in, type startx to enter the graphical environment:

Review image


That's it! Congratulations, you've just installed Arch Linux.

TELL US WHAT YOU THINK:

60,124 hits · 13 comments · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Linux Mint 3.0 Light Edition Released

LinuxCertified Announces the Linux Device Driver Development Course

Linux Claims Its Rights in China

Scientific Linux 5.0 Release

French Parliament Will Switch from Microsoft to Ubuntu

READER COMMENTS:


Comment #1 by: Roberto on 21 Mar 2008, 22:14 UTC reply to this comment

MUCHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIISIMAS GRACIAS

Thanks Thanks

Thanks Thanks

Thanks Thanks

Thanks Thanks

Thanks Thanks

Thanks Thanks

Thanks Thanks

Thanks Thanks


Comment #2 by: sorin on 09 Oct 2008, 12:34 UTC reply to this comment

startx on Archlinux 2008.6 does not work on graphic environment !!! Please help ! ! !


Comment #3 by: kgas on 08 Nov 2008, 01:26 UTC reply to this comment

Thanks for the nice guide. As sorin told startx won't work. You build only the base system. For GUI you need xorg and a desktop manager. For further reading and build your system the way you like the following link may help.
http://wiki.archlinux.org/index.php/Beginners_Guide


Comment #4 by: puneeth on 28 Nov 2008, 17:42 UTC reply to this comment

Ohk man!! this tut is much better than what's available on the arch linux help page... GOOD work... time to apply for me... i am ditching ubuntu!!


Comment #5 by: Ron G on 12 Aug 2009, 21:23 UTC reply to this comment

Nice as far as it goes, but you are misleading folks in to thinking they will have a working desktop, and they wont. They will need xorg, a graphical desktop environment (xfce), a windows manager, and a few other things or they will just be frustrated.

Comment #5.1 by: Ashlee N on 26 Aug 2009, 08:26 GMT

I agree with Ron G


Comment #6 by: WhiteCrow1 on 08 Jan 2010, 22:09 UTC reply to this comment

thanks a lot


Comment #7 by: Harisuthan on 16 May 2010, 07:04 UTC reply to this comment

How we can install this arch linux in a 64 bit Intel system in dual boot way...

which is the best GUI for archlinux... please inform


Comment #8 by: tlcmd on 28 Oct 2010, 02:38 UTC reply to this comment

Is this guide still valid (28 Oct 2010)?
Preparing to install on an older Dell Laptop with 1.0GHz Pentium III and 256 RAM. Hard Drive is clean.
Other suggestions??

Thanks,
Dick

Comment #8.1 by: Marius Nestor on 28 Oct 2010, 10:46 GMT

Yeah, sure! The installation procedure is pretty much the same.

Comment #8.2 by: russ on 20 Dec 2010, 07:58 GMT

It's decent, but there is a much more up to date tutorial over at lifehacker:

http://lifehacker.com/5680453/build-a-killer-customized-arch-linux-installation-and-learn-all-about-linux-in-the-process

and then of course the beginner's guide at arch:

https://wiki.archlinux.org/index.php/Beginners'_Guide


Comment #9 by: Meeku on 23 Jan 2011, 23:56 UTC reply to this comment

I joined the Arch Linux public general mailing list and posted a free opensource FOSS font for coders to use, Rail Model font. I was accused of spamming and trolling by certain developers there. These were just excuses from them as underneath they had a racist attitude to my email address for the mailing list:
hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_hare -at- .....

Thus when I tried to defend against their accusations I was banned from there, no discussion nothing.


Comment #10 by: Sap on 20 May 2011, 07:12 UTC reply to this comment

Great article, many thanks

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM