Difference between revisions of "Quick Arch Linux Install"

From ArchWiki
Jump to: navigation, search
m (added link to lithuanian version of page)
m (overall edit of grammar, punctuation, spelling)
Line 10: Line 10:
 
{{i18n_links_end}}
 
{{i18n_links_end}}
  
This document walks you through a basic Archlinux installation. It is based on the 0.6 (widget) installation scripts.
+
This document walks you through a basic Arch Linux installation. It is based on the 0.6 (widget) installation scripts.
  
 
== Introduction==
 
== Introduction==
  
This is a quick walk through 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 is a quick walk-through 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 hard drive 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.
+
This guide is for "normal" hardware; nothing special (e.g. SCSI) is documented.
  
Windows is assumed to exist on the first partition of the harddrive, otherwise grub won't be able to find it.
+
Windows is assumed to exist on the first partition of the hard drive; otherwise, GRUB won't be able to find it.
  
 
== Necessary things==
 
== Necessary things==
  
* The Archlinux Base Installation-CD or the Full-Installation-CD. {{sn|Get it from [http://www.archlinux.org/download/ here]}}
+
* The Arch Linux Base-Installation-CD or Full-Installation-CD. (Get it from [http://www.archlinux.org/download/ here].)
* 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).
+
* Either one free hard disk or free space on one partition. You have to separate this free space from an existing partition in Windows with a partitioning utility (e.g. PartitionMagic).
  
== Installation from the Arch-CD ==
+
== 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.
 
* Insert the CD in your drive, reboot, and check that your BIOS will boot from the CD-ROM drive first.
Line 48: Line 48:
 
=== Partition Hard-Drive===
 
=== 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 partitions from your Hard-Drive! If you want to keep any partition on your harddrive follow the steps below:
+
If you have an empty hard drive, you may skip these steps and choose Auto-Partitioning. Please note this will erase all partitions from your hard drive! If you want to keep any partition on your hard drive, follow the steps below:
  
* Select Prepare Hard-Drive.
+
* Select Prepare Hard Drive.
* Choose Partition Hard-Drive.
+
* Select Partition Hard Drive.
* Select the Disc you want Arch-Linux to be installed on.
+
* Select the disk 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:
+
* The cfdisk partitioning utility will open and allow you to create the partitions. For Arch base installation there are at least two partitions needed:
 
   * one swap partition
 
   * one swap partition
 
   * one data partition
 
   * one data partition
  
* At this point the display may look like this (if you have a ntfs-partition for windows):
+
* At this point the display may look like this (if you have an NTFS partition for Windows):
  
 
http://home.arcor.de/Langeland/9.png  
 
http://home.arcor.de/Langeland/9.png  
 
cfdisk
 
cfdisk
  
* Don't touch the ntfs (or vfat) partition in any way, or otherwise you may lose Windows.
+
* Don't touch the NTFS (or VFAT) partition in any way; otherwise, you may lose Windows.
* The type of the swap-partition should be set by setting the partition type to 82
+
* The type of the swap partition should be set to 82.
* If you want to quit cfdisk without saving anything then press quit, otherwise press write.
+
* If you want to quit cfdisk without saving anything, then select quit; otherwise, select write.
 
* After using cfdisk it should look like this:
 
* After using cfdisk it should look like this:
  
Line 74: Line 74:
 
* Select the partition you marked as swap
 
* Select the partition you marked as swap
 
* Select the other partition for the system (to mount as /)
 
* Select the other partition for the system (to mount as /)
* Select the Filesystem ext3
+
* Select the filesystem ext3
* Select DONE !!
+
* 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''
+
''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 it will not install any files''.
  
 
=== Select Packages===
 
=== Select Packages===
  
* Select CD
+
* Select CD.
 
* Now it should look like this:
 
* Now it should look like this:
  
Line 86: Line 86:
 
Package Categories
 
Package Categories
  
* For now you should select only base and editors.
+
* For now, you should select only base and editors.
* You want to select all packages in the categories by default
+
* You want to select all packages in the categories by default.
* Just press ok.
+
* Just press OK.
  
 
=== Install Packages===
 
=== Install Packages===
  
* This is rather easy: Just press install packages, say ok and everything will be copied from cd to harddisk.
+
* This is rather easy: Just select install packages, say OK, and everything will be copied from CD to hard disk.
  
 
=== Install Kernel===
 
=== Install Kernel===
Line 100: Line 100:
 
=== Edit Config Files===
 
=== Edit Config Files===
  
* Choose nano to edit the 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.
+
''' You have to edit the rc.conf''' if you want to change your keyboard layout. For example, de is German.
 
* If you use a router, consider using this in /etc/rc.conf:
 
* If you use a router, consider using this in /etc/rc.conf:
 
<pre>
 
<pre>
 
#Router address
 
#Router address
 
gateway="default gw 192.168.0.1"
 
gateway="default gw 192.168.0.1"
ROUTES=(gateway) #Remove ! in front of gateway
+
ROUTES=(gateway) # Remove ! in front of gateway
 
</pre>
 
</pre>
 
* In /etc/resolf.conf
 
* In /etc/resolf.conf
Line 112: Line 112:
 
nameserver 192.168.0.1
 
nameserver 192.168.0.1
 
</pre>
 
</pre>
* nano is easy to understand: Strg-o ( Ctrl-o ) saves the file, Strg-x ( Ctrl-x ) saves the file and exits nano.
+
* nano is easy to understand: Strg-O (Ctrl-O) saves the file, and Strg-X (Ctrl-X) saves the file and exits nano.
* Change the line with keymap<code>us to keymap</code>de
+
* Change the line with <code>keymap=us</code> to <code>keymap=de</code>.
 
''' You have to edit the '''menu.lst*.
 
''' You have to edit the '''menu.lst*.
* Here you create your bootloader. There you can switch between windows and linux.
+
* Here you create your bootloader. There you can switch between Windows and Linux.
 
* You will see a file like this:
 
* You will see a file like this:
  
Line 121: Line 121:
 
Menu.lst
 
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:
+
* Everything should be set up correctly to boot into Arch; you only have to add the following lines at the end to have the ability to boot Windows:
 
<pre>
 
<pre>
 
title Windows
 
title Windows
Line 128: Line 128:
 
</pre>
 
</pre>
  
Press Strg-O, Strg-X and everything is saved.
+
Press Strg-O, then Strg-X, and everything will be saved.
  
 
=== Install Bootloader===
 
=== Install Bootloader===
  
* Choose grub.
+
* Choose GRUB.
 
* Choose the entry on top of the list.
 
* Choose the entry on top of the list.
  
 
=== Ready to reboot===
 
=== Ready to reboot===
  
* Exit the main menu, type reboot and the computer should reboot.
+
* Exit the main menu, type reboot, and the computer should reboot.
* Remove the CD
+
* Remove the CD.
* You can choose between windows and arch, default is arch
+
* You can choose between Windows and Arch; default is Arch.
  
 
== Alternative Installing Methods ==
 
== Alternative Installing Methods ==
Line 147: Line 147:
 
== First steps in Arch==
 
== First steps in Arch==
  
* Login as root.
+
* Log in as root.
 
* Execute the command <code>passwd</code> to set a password for root.
 
* Execute the command <code>passwd</code> to set a password for root.
 
<pre>
 
<pre>
 
# passwd
 
# passwd
 
</pre>
 
</pre>
* Add a user. You can use the adduser script. Your user should be in the users, audio and optical groups.
+
* Add a user. You can use the adduser script. Your user should be in the users, audio, and optical groups.
 
<pre>
 
<pre>
 
# adduser
 
# adduser

Revision as of 11:07, 11 August 2007

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

This document walks you through a basic Arch Linux installation. It is based on the 0.6 (widget) installation scripts.

Introduction

This is a quick walk-through 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 hard drive and want to set up Arch Linux without harming the Windows install.

This guide is for "normal" hardware; nothing special (e.g. SCSI) is documented.

Windows is assumed to exist on the first partition of the hard drive; otherwise, GRUB won't be able to find it.

Necessary things

  • The Arch Linux Base-Installation-CD or Full-Installation-CD. (Get it from here.)
  • Either one free hard disk or free space on one partition. You have to separate this free space from an existing partition in Windows with a partitioning utility (e.g. PartitionMagic).

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:
/arch/setup

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 partitions from your hard drive! If you want to keep any partition on your hard drive, follow the steps below:

  • Select Prepare Hard Drive.
  • Select Partition Hard Drive.
  • Select the disk you want Arch Linux to be installed on.
  • The cfdisk partitioning utility will open and allow you to 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 an NTFS partition for Windows):

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

  • Don't touch the NTFS (or VFAT) partition in any way; otherwise, you may lose Windows.
  • The type of the swap partition should be set to 82.
  • If you want to quit cfdisk without saving anything, then select quit; otherwise, select 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 it 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 select install packages, say OK, and everything will be copied from CD to hard disk.

Install Kernel

  • Choose "Kernel 2.6.x for IDE/SCSI systems" 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.

  • If you use a router, consider using this in /etc/rc.conf:
#Router address
gateway="default gw 192.168.0.1"
ROUTES=(gateway) # Remove ! in front of gateway
  • In /etc/resolf.conf
nameserver 192.168.0.1
  • nano is easy to understand: Strg-O (Ctrl-O) saves the file, and Strg-X (Ctrl-X) saves the file and exits nano.
  • Change the line with keymap=us to keymap=de.

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 set up correctly 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, then Strg-X, and everything will be saved.

Install Bootloader

  • Choose GRUB.
  • Choose the entry on top of the list.

Ready to reboot

  • Exit the main menu, 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

  • Log in 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!