Quick Arch Linux Install (正體中文)
This document walks you through a basic Archlinux installation. It is based on the 0.6 (widget) installation scripts.
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.
- The Archlinux Base Installation-CD or the Full-Installation-CD. Template:Sn
- 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).
Installation 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:
http://home.arcor.de/Langeland/1.png Default Arch boot screen
- 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:
http://home.arcor.de/Langeland/6.png Main Menu
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:
- 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:
http://home.arcor.de/Langeland/10.png Partition Layout
- 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
- Select CD
- Now it should look like this:
http://home.arcor.de/Langeland/11.png Package Categories
- For now you should select only base and editors.
- You want to select all packages in the categories by default
- Just press ok.
- This is rather easy: Just press install packages, say ok and everything will be copied from cd to harddisk.
- Choose 2.6 IDE unless you know you have different hardware.
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.
- Choose grub.
- Choose the entry on top of the list.
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
Alternative Installing Methods
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!