Quick Arch Linux Install (正體中文)

From ArchWiki
Revision as of 15:41, 5 December 2005 by (remove spam)
Jump to navigation Jump to search

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Quick Arch Linux Install (正體中文)#)

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

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.

Necessary things

  • 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

  • Press Enter
  • 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

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:

  • 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):

http://home.arcor.de/Langeland/9.png cfdisk

  • 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

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

Select Packages

  • 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.

Install Packages

  • This is rather easy: Just press install packages, say ok and everything will be copied from cd to harddisk.

Install Kernel

  • 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 keymapus 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:

http://home.arcor.de/Langeland/13.png Menu.lst

  • 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.

Install Bootloader

  • 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 passwd to set a password for root.
# passwd
  • Add a user. You can use the adduser script. Your user should be in the users, audio and optical groups.
# adduser

Now it's time to fix your internet and start installing packages with Pacman. Enjoy!