Arch Linux 快速安装指南 (简体中文)

From ArchWiki

Jump to: navigation, search
Image:Tango-preferences-desktop-locale.png This page was marked to be translated.
If you understand both "original" and "target" languages of this page, please help complete the translation.

Template:已过期

i18n
English
繁體中文
简体中文
Slovak
ไทย
Lietuviškai

这份文档可以教你最基本的ARCH LINUX安装。它是基于0.8版的安装脚本。

Contents

介绍

这是一个快速安装指南,主要针对的是那些根本不想知道ARCH是什么,也不想知道ARCH能做什么的。那些人多半是硬盘上已经有了WINDOWS的分区,更不想因为安装ARCH而严重影响WINDOWS的安装(或使用)。

这份指南是只能用于“正常的”硬件;没有任何例外~~ 在这里,WINDOWS被假定安装在硬盘第一分区;否则,GRUB将无法识别并找到它。

必需的东西

  • ARCH的基础安装CD或者是全安装版CD。(可以从这里获得)
  • 无论是一块未使用的硬盘,或者是一个分区上未使用的空间。你都必须在WINDOWS当中使用一个分区工具,将这快空间从那些已经存在的分区当中单独分出来。(比如PartionMagic分区魔术师)

使用ARCH的CD进行安装

  • 将CD插入到你的光驱中,重启电脑,并首先检查你的BIOS是否已经将CD-ROM设为第一启动设备
  • (如果是),那么,现在应该看到的是这样:

http://home.arcor.de/Langeland/1.png 默认的ARCH启动信息

  • 按下 Enter
  • 在启动信息完毕之后,键入:
/arch/setup

你将会从CD进行安装,所以,网络就不是必需的了。 (Main Menu)主菜单将会显示: 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 Filesystem Mountpoints设置文件系统挂载点。
  • 选择你的交换分区。
  • 选择其他分区作为系统分区(挂载为/)
  • 选择文件系统ext3
  • 选择DONE!

最后一步是非常重要的:许多人都跳过了这一步,那样的话,将不会有任何事情发生----如果你不选择DONE的话,那样即使显示了在工作,但是也不会安装任何东西

选择软件包

  • 选择CD
  • 现在,它看起来应该是这样:

http://home.arcor.de/Langeland/11.png Package Categories

  • 这样,你就可以只选择base类的包了。

安装软件包

  • 这实在太简单了:只需要选择要安装的包,点OK,接下来所有的东西都会自动从CD上复制下来

安装内核

  • 选择"Kernel 2.6.x for IDE/SCSI systems",除非你知道你有不同的硬件。

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:
eth0="dhcp"
#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 may 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; If it's missing, 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.

安装引导器

  • 选择 GRUB
  • 然后选择列表最顶端的那个

准备重启

  • 退出主菜单,键入reboot,然后电脑就会重启了。
  • 取出CD。
  • 你可以在WINDOWS和ARCH当中进行选择启动,默认是ARCH。

下面两种情况的安装办法

进入ARCH后的第一步

  • 以ROOT用户登录。
  • 执行passwd命令为ROOT账户设置一个密码。
# passwd
  • 添加一个用户,你可以使用adduser脚本,你的用户应该被加入到users,audio,optical组。
# adduser

现在,是时候修正你的网络开始使用 Pacman安装软件包了。 祝,用的高兴~~~

Personal tools