Difference between revisions of "Quick Arch Linux Install"

From ArchWiki
Jump to: navigation, search
(fixed i18n)
(Installation from the Arch CD)
Line 29: Line 29:
  
 
* 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.
* Now it should look like this:
+
* It will present you with a menu. For the installation, choose the "Boot ArchLive" option. It will go through the process to set up the live system. Give it a minute.
 +
*Now it should look like this:
  
 
http://home.arcor.de/Langeland/1.png
 
http://home.arcor.de/Langeland/1.png
Default Arch boot screen
+
Default Arch Live screen
  
* Press <code>Enter</code>
+
To start the installation, type:
* After the boot process is finished, type:
+
 
<pre>
 
<pre>
 
/arch/setup
 
/arch/setup
 
</pre>
 
</pre>
  
You will be installing from the CD first, so network drivers are not necessary.
+
If you got the net install (FTP) image, or wish to get the latest packages from the servers, choose net install. This is the preferred method. If you have the Core image, you can optionally install the packages on the CD with the CD install option. If you use the net install, try to choose a server near to you physically. (Ex. ftp://cs.uwaterloo.com is closest for people in the Greater Toronto Area.)
  
 
The Main Menu will appear:
 
The Main Menu will appear:
Line 46: Line 46:
 
http://home.arcor.de/Langeland/6.png  
 
http://home.arcor.de/Langeland/6.png  
 
Main Menu
 
Main Menu
 +
 +
For the net install, you need to configure the network. If you have a DHCP server connected to your computer with an Ethernet cord, odds are the auto-configure will work automatically. You can also use ctrl-alt-F2 to set up the network connection from the command line, using ctrl-alt-F1 to go back to the installation script.
 +
 +
If you are installing from the CD, there is no need to configure the network now.
  
 
=== 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 hard drive, 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 (Like saving a Windows install), follow the steps below:
  
 
* Select Prepare Hard Drive.
 
* Select Prepare Hard Drive.
 
* Select Partition Hard Drive.
 
* Select Partition Hard Drive.
* Select the disk you want Arch Linux to be installed on.
+
* 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:
 
* 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 an NTFS partition for Windows):
+
* At this point the display may look like this (if you have an NTFS partition for Windows XP. Vista or Windows 7 may have 2 NTFS partitions.):
  
 
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; otherwise, you may lose Windows.
+
* Don't touch the NTFS partition/s in any way; otherwise, you may lose Windows.
* The type of the swap partition should be set to 82.
+
* The type of the swap partition should be set to 82. Swap space is generally recommended to be twice the amount of RAM you have, but you can use less.
* If you want to quit cfdisk without saving anything, then select quit; otherwise, select write.
+
* You must have at least one primary partition and a swap space is recommended. A safer setup is to have one primary partition of 100MB and all other partitions for Arch Linux can be logical partitions. The primary partition must be marked bootable.
* After using cfdisk it should look like this:
+
* If you want to quit cfdisk without saving anything, then select quit; otherwise, select write. Use quit if you accidentally change a setting on a Windows partition.
 
+
* Remember which partitions you want to use for what. Note the partition's number to the right. (ex. sda1, sda2, etc.)
http://home.arcor.de/Langeland/10.png
+
Partition Layout
+
  
 
=== Set Mountpoints===
 
=== Set Mountpoints===
 
* Select point 3: Set Filesystem Mountpoints
 
* Select point 3: Set Filesystem Mountpoints
* Select the partition you marked as swap
+
* Select the partition you wish to use as '/' and use set it to mount to '/' (no quotes). The most common choice for file system is ext4, but any will work.
* Select the other partition for the system (to mount as /)
+
* If you have a partitions to use as '/boot', set '/boot' (again, no quotes) as the mount point and ext2 is the recommended file system.
* Select the filesystem ext3
+
* Select the partition to use as swap space, and choose the mount point of swap. No file system need be specified.
 
* 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 it 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''.
Line 81: Line 83:
 
=== Select Packages===
 
=== Select Packages===
  
* Select CD.
+
* Select Choose Packages (Or something similar - it is selected automatically after setting mount points.
 
* Now it should look like this:
 
* Now it should look like this:
  
http://home.arcor.de/Langeland/11.png
+
* For now, you should select only base. All packages already marked should not be unmarked unless you know you wont need them. Anything else you need not already marked should be installed later unless you need it for the setup.
Package Categories
+
 
+
* For now, you should select only base.
+
  
 
=== Install Packages===
 
=== Install Packages===
  
* This is rather easy: Just select install packages, say OK, and everything will be copied from CD to hard disk.
+
* This is rather easy: Just select install packages, say OK, and everything will be copied from CD/the server you selected to hard disk.
 
+
=== Install Kernel===
+
 
+
* Choose "Kernel 2.6.x for IDE/SCSI systems" unless you know you have different hardware.
+
  
 
=== Edit Config Files===
 
=== Edit Config Files===
  
* Choose nano to edit the files.
+
* Choose nano to edit the files unless you already know Vi. Nano's commands are listed at the bottom and you use the arrow keys to move the cursor.
 
''' 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:
+
* Set a host name in the HOSTNAME= field. (ex. HOSTNAME='Taco')
<pre>
+
eth0="dhcp"
+
</pre>
+
<pre>
+
#Router address
+
gateway="default gw 192.168.0.1"
+
ROUTES=(gateway) # Remove ! in front of gateway
+
</pre>
+
* In /etc/resolv.conf
+
<pre>
+
nameserver 192.168.0.1
+
 
</pre>
 
</pre>
* nano is easy to understand: Strg-O (Ctrl-O) saves the file, and Strg-X (Ctrl-X) saves the file and exits nano.
+
* nano is easy to understand: (Ctrl-X) saves the file and exits nano.
* Change the line with <code>keymap=us</code> to <code>keymap=de</code>.
+
  
''' You may have to edit the '''menu.lst*.
+
=== Install GRUB ===
* Here you create your bootloader. There you can switch between Windows and Linux.
+
When you are done editing the config files, choose the 'Install Bootloader' option from the main menu.
 +
* Choose to install GRUB unless you will setup a bootloader yourself. If you don't install a new bootloader, only Windows will boot.
 
* You will see a file like this:
 
* You will see a file like this:
  
Line 124: Line 108:
 
Menu.lst
 
Menu.lst
  
* Everything should be set up correctly to boot into Arch; If it's missing, 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 To dual boot, uncomment the following section at the end (remove the # symbol from the beginning of the line:
  
 
<pre>
 
<pre>
title Windows
+
#title Windows
 
rootnoverify (hd0,0)
 
rootnoverify (hd0,0)
 
chainloader +1
 
chainloader +1
 
</pre>
 
</pre>
  
Press Strg-O, then Strg-X, and everything will be saved.
+
Save it and quit nano.
 
+
=== Install Bootloader===
+
 
+
* Choose GRUB.
+
* 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.
+
* Choose done at the main menu, type reboot, and the computer should reboot.
* Remove the CD.
+
* Remove the CD before it tries to boot from it again.
* You can choose between Windows and Arch; default is Arch.
+
* You should be able tp choose between Windows and Arch; default is Arch. The timeout is 5 seconds.
  
 
== Alternative Installing Methods ==
 
== Alternative Installing Methods ==

Revision as of 23:42, 10 November 2009

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Quick Arch Linux Install#)
Template:I18n links start

Template:I18n entry 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.8 (Don't Panic) 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.
  • It will present you with a menu. For the installation, choose the "Boot ArchLive" option. It will go through the process to set up the live system. Give it a minute.
  • Now it should look like this:

http://home.arcor.de/Langeland/1.png Default Arch Live screen

To start the installation, type:

/arch/setup

If you got the net install (FTP) image, or wish to get the latest packages from the servers, choose net install. This is the preferred method. If you have the Core image, you can optionally install the packages on the CD with the CD install option. If you use the net install, try to choose a server near to you physically. (Ex. ftp://cs.uwaterloo.com is closest for people in the Greater Toronto Area.)

The Main Menu will appear:

http://home.arcor.de/Langeland/6.png Main Menu

For the net install, you need to configure the network. If you have a DHCP server connected to your computer with an Ethernet cord, odds are the auto-configure will work automatically. You can also use ctrl-alt-F2 to set up the network connection from the command line, using ctrl-alt-F1 to go back to the installation script.

If you are installing from the CD, there is no need to configure the network now.

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 (Like saving a Windows install), 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 XP. Vista or Windows 7 may have 2 NTFS partitions.):

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

  • Don't touch the NTFS partition/s in any way; otherwise, you may lose Windows.
  • The type of the swap partition should be set to 82. Swap space is generally recommended to be twice the amount of RAM you have, but you can use less.
  • You must have at least one primary partition and a swap space is recommended. A safer setup is to have one primary partition of 100MB and all other partitions for Arch Linux can be logical partitions. The primary partition must be marked bootable.
  • If you want to quit cfdisk without saving anything, then select quit; otherwise, select write. Use quit if you accidentally change a setting on a Windows partition.
  • Remember which partitions you want to use for what. Note the partition's number to the right. (ex. sda1, sda2, etc.)

Set Mountpoints

  • Select point 3: Set Filesystem Mountpoints
  • Select the partition you wish to use as '/' and use set it to mount to '/' (no quotes). The most common choice for file system is ext4, but any will work.
  • If you have a partitions to use as '/boot', set '/boot' (again, no quotes) as the mount point and ext2 is the recommended file system.
  • Select the partition to use as swap space, and choose the mount point of swap. No file system need be specified.
  • 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 Choose Packages (Or something similar - it is selected automatically after setting mount points.
  • Now it should look like this:
  • For now, you should select only base. All packages already marked should not be unmarked unless you know you wont need them. Anything else you need not already marked should be installed later unless you need it for the setup.

Install Packages

  • This is rather easy: Just select install packages, say OK, and everything will be copied from CD/the server you selected to hard disk.

Edit Config Files

  • Choose nano to edit the files unless you already know Vi. Nano's commands are listed at the bottom and you use the arrow keys to move the cursor.

You have to edit the rc.conf if you want to change your keyboard layout. For example, de is German.

  • Set a host name in the HOSTNAME= field. (ex. HOSTNAME='Taco')

</pre>

  • nano is easy to understand: (Ctrl-X) saves the file and exits nano.

Install GRUB

When you are done editing the config files, choose the 'Install Bootloader' option from the main menu.

  • Choose to install GRUB unless you will setup a bootloader yourself. If you don't install a new bootloader, only Windows will boot.
  • 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 To dual boot, uncomment the following section at the end (remove the # symbol from the beginning of the line:
#title Windows
rootnoverify (hd0,0)
chainloader +1

Save it and quit nano.

Ready to reboot

  • Choose done at the main menu, type reboot, and the computer should reboot.
  • Remove the CD before it tries to boot from it again.
  • You should be able tp choose between Windows and Arch; default is Arch. The timeout is 5 seconds.

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!