Quick Arch Linux Install
This document walks you through a basic Archlinux installation. It is based on the 0.6 (widget) installation scripts.
- 1 Introduction
- 2 1. Partition Hard-Drive
- 3 2. Select Packages
- 4 3. Install Packages
- 5 4. Install Kernel
- 6 5. Edit Config Files
- 7 6. Install Bootloader
- 8 7. Ready to reboot
- 9 8. First steps in Arch
This is a quick walkthrough for those who don't yet know what Arch is and what it is capable of. It is written mainly for those people who already have an existing Windows Partition on their harddrive and want to set up Arch Linux without harming the Windows install.
This guide is for "normal" hardware, nothing special (such as scsi) is documented.
Windows is assumed to exist on the first partition of the harddrive, otherwise grub won't be able to find it.
0.1 Necessary things
- The Archlinux Base Installation-CD or the Full-Installation_CD.
- Either one free harddisk or free space on one partition. You have to separate this free space from an existing partition in windows with partitioning tools (such as partition magic).
0.2 Booting from the Arch-CD
- Insert the CD in your drive, reboot, and check that your BIOS will boot from the CD-ROM drive first.
- Now it should look like this:
- After the boot process is finished, type:
You will be installing from the CD first, so network drivers are not necessary.
The Main Menu will appear:
1. Partition Hard-Drive
If you have an empty Hard-Drive you may skip these steps and choose Auto-Partitioning. Please note this will erase all partions from your Hard-Drive! If you want to keep any partition on your harddrive follow the steps below:
1.1 Partition the Hard-Drive
- Select Prepare Hard-Drive.
- Choose Partition Hard-Drive.
- Select the Disc you want Arch-Linux to be installed on.
- The cfdisk-Partition Program will open and you can create the partitions. For Arch-Base-Installation there are at least two partitions needed:
* one swap partition * one data partition
- At this point the display may look like this (if you have a ntfs-partition for windows):
- Don't touch the ntfs (or vfat) partition in any way, or otherwise you may lose Windows.
- The type of the swap-partition should be set by setting the partition type to 82
- If you want to quit cfdisk without saving anything then press quit, otherwise press write.
- After using cfdisk it should look like this:
1.2 Set Mountpoints
- Select point 3: Set Filesystem Mountpoints
- Select the partition you marked as swap
- Select the other partition for the system (to mount as /)
- Select the Filesystem ext3
- Select DONE !!
This last step is very important, many people skip this step, but no actions take place until you select DONE - if you do not do this, the install will appear to work, but will not install any files
2. Select Packages
- Select CD
- Now it should look like this:
- For now you should select only base and editors.
- You want to select all packages in the categories by default
- Just press ok.
3. Install Packages
- This is rather easy: Just press install packages, say ok and everything will be copied from cd to harddisk.
4. Install Kernel
- Choose 2.6 IDE unless you know you have different hardware.
5. Edit Config Files
- Choose nano to edit the files
You have to edit the rc.conf if you want to change your keyboard layout. For example de is german.
- nano is easy to understand: Strg-o ( Ctrl-o ) saves the file, Strg-x ( Ctrl-x ) saves the file and exits nano.
- Change the line with keymap
us to keymapde
You have to edit the menu.lst*.
- Here you create your bootloader. There you can switch between windows and linux.
- You will see a file like this:
- Everything should be setup right to boot into arch, you only have to add the following lines at the end to have the ability to boot windows:
title Windows rootnoverify (hd0,0) chainloader +1
Press Strg-O, Strg-X and everything is saved.
6. Install Bootloader
- Choose grub.
- Choose the entry on top of the list.
7. Ready to reboot
- Exit the mainmenu, type reboot and the computer should reboot.
- Remove the CD
- You can choose between windows and arch, default is arch
8. First steps in Arch
- Login as root.
- Execute the command
passwdto set a password for root.
- Add a user. You can use the adduser script. Your user should be in the users, audio and optical groups.
Now it's time to fix your internet and start installing packages with Pacman. Enjoy!