Arch Command installation

Source: Internet
Author: User
Install and download arch by using the arch command: url code http://mirrors.163.com/archlinux/ Iso/2012.12.01/archlinux-2012.12.01-dual.isowww.2cto.com made u disk installation guide: Terminal execution code ddifarchlinux-2012.12.01-dual.is. arch Command installation download arch: url code http://mirrors.163.com/archlinux/ Iso/2012.12.01/archlinux-2012.12.01-dual.iso www.2cto.com production U disk installation guide: Terminal execution code dd if = archlinux-2012.12.01-dual.iso of =/dev/sdb hard disk partition: the terminal executes the code cfdisk #/dev/sda1 -----/boot ----- 100 M #/dev/sda2 ----- swap ------ 2G #/dev/sda3 -----/--------- 6G to create/boot and/ partition file system: the terminal executes the code mkfs. ext4/dev/sda1 mkfs. ext4/dev/sda3 create a swap partition file system and activate the swap partition: the terminal executes the code mkswap/dev/sda2 & swapon/dev/sda2 to mount the file system: the terminal executes the code mount/dev/sda3/mnt mkdir/mnt/boot mount/dev/sda1/mnt/boot link network: the terminal executes the code dhclient to set the image server address of the pacman package: the terminal executes the code vi/etc/pacman. d/add content to the shortlist Server = http://mirrors.163.com/archlinux/ $ Repo/OS/$ arch download and install the basic system, compilation tool, bootstrap program, and editor from the server: the terminal executes the code pacbench/mnt base-devel syslinux vim to generate the fstab file for automatic mounting when the boot system: the terminal executes the code genfstab-p/mnt>/mnt/etc/fstab Chroot to the new system: the terminal executes the code arch-chroot/mnt to set the host name: run the code vi/etc/hostname on the terminal # add the host name in the content to modify the hosts file: run the code vi/etc/hosts on the terminal # In Add a space after the localhost value of the two rows in the column and set the time zone for the host name you just set: the terminal executes the code ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime to modify the time zone: run vim/etc/timezone on the terminal # add the Asia/Shanghai line, save it, and select local language: run code vi/etc/locale on the terminal. gen will remove the probe code prior to the following character set en_US.UTF-8 UTF-8 en_US ISO-8859-1 zh_CN.GB18030 GB18030 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 zh_CN GB2312 to generate the localization language File: terminal executes the code locale-gen to set the system default locale: the terminal executes the code vim/etc/locale. conf add locale: Terminal execute code LANG = en_US.UTF-8 create pilot linux kernel initial environment: Terminal execute code mkinitcpio-p linux check syslinux configuration file is correct: run the vim/boot/syslinux code. cfg # check APPEND root =/dev/sdax ro this line of sdax is set to the correct/partition to install syslinux start Manager: terminal execution code syslinux-install_update-iam modify the root password: terminal executes the code passwd to add a common user: Terminal executes the code useradd-d/home/admin-m admin so that admin can use the sudo command: the terminal executes the pacman-S sudo code to edit the sudo configuration file: the terminal executes the code paido to delete the code # before the following statement % wheel ALL = (ALL) ALL and add the admin to the following groups: the terminal executes the code usermod-G audio, video, wheel, users, games, optical, storage, and lp admin to exit the chroot environment: the terminal executes the code exit to unmount the root directory mounted before: terminal execution code umount/mnt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.