Arch Linux Installation Record

Source: Internet
Author: User
Tags arch linux

Arch Linux Installation Record

Basically refer to the beginner's guide on the wiki, using the arch 2014.6.1 ISO installation

Set up a network wired network

Arch Linux turns on DHCP by default.

Static IP

First turn off DHCP: systemctl stop dhcpcd.service , find the NIC name ip link (example enp2s0f0), set the network card

set enp2s0f0 up //激活网卡>>> ip addr add ip_addr/maskbits dev enp2s0f0 //设置ip地址和掩码>>> ip route add default via router_ip_addr //添加路由

Last Change DNS server address

>>> nano /etc/resolv.confnameserver dns_ip1nameserver dns_ip2
Wireless network
>>> IW dev//identify unlimited network cards>>> Wifi-menu WLP3S0//Connection network card>>> IP Link Set wlp3s0 up//invalid use of the above command>>> IP link Show wlp3s0//Ibid>>> DMESG | grep firmware//has no output, which means that there is no NIC Fireware>>> iw dev wlp3s0 Scan | grep SSID//>>> Wpa_ Supplicant-b-I wlp3s0-c < (wpa_passphrase SSID PSK)//Connection Wifi>>> dhcpcd wlp3s0//Open Start DHCP another connection mode >>> wpa_cli >>> add_network// Returns a number Ans>>> set_network ans SSID  "SSID" >>> set_network ans key_mgmt none>>> set_network ans wep_ Key0  "pwd for SSID"//WEP encryption >>> set_network ans PSK  "pwd for SSID"//PSK encryption does not need to set KEY_MGMT statement >>> enable_network Span class= "Hljs-number" >0>>> quit       
Broadband Connection PPPoE

First install rp-pppoe the package and run pppoe-setup the set up broadband connection, start and close with the following command

>>> systemctl start adsl>>> systemctl stop adsl

The following command can set the power on automatic dialing

>>> systemctl enable adsl>>> systemctl disable adsl
Partition

First Use FDISK (GPT partition table using Cgdisk) to partition the disk, the general divide can be divided into root, home, swap several areas, swap partition to change the type to 82 (swap partition). The partition is then formatted with the MKFS command.

>>> fdisk /dev/sda分区操作>>> mkfs.ext4 /dev/sdaX //格式化成ext4分区>>> mkswap /dev/sdaX //格式化交换分区>>> swapon /dev/sdaX //启用交换分区
Loading partitions

By partitioning the root mount into the /mnt directory, you can then install the system in, and /mnt if there home are boot partitions, you can mount go to the mnt corresponding directory in the

>>> mount /dev/sda1 /mnt>>> mkdir /mnt/home //其他分区可以按照这两条命令做>>> mount /dev/sda2 /mnt/home //还有这条
modifying mirrors

Before installing the system, you need to modify the /etc/pacman.d/mirrorlist file, speed up the download speed, the file in the Chinese mirror entry to the beginning.

Installation system
base base-devel
Generate Fstab

fstabis mount used when the system is partitioned

/mnt/etc/fstab
Chroot to the new system and configure the system
>>> arch-chroot /mnt /bin/bash //chroot到新系统
Locale

A lot of software will be used, modify the /etc/locale.gen inside have zh and Us-utf8 line in front of the comments removed, and then

>>> locale-gen>>> echo LANG=en_US.UTF-8 > /etc/locale.conf>>> export LANG=en_US.UTF-8
Time zone and clock settings
>>> ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime>>> hwclock --systohc --utc
Set the computer name
/etc/hostname

/etc/hostsjoin you in the yourhostname .

Set the network settings password
>>> passwd
Set bootloader

Optional syslinux or grub , if UEFI motherboards are available gummiboot ,grub

>>> pacman -S grub os-prober dosfstools efibootmgr //多系统要os-prober,UEFI要安装efibootmgr和dosfdtools>>> grub-install --target=i386-pc --recheck /dev/sda //将grub安装到硬盘上,UEFI选项为 "--target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck">>> grub-mkconfig -o /boot/grub/grub.cfg //生成grub配置文件
End Installation
>>> exit>>> umount -R /mnt>>> reboot
Other

Here the basic system has been installed, you can restart the computer using root the account and the password just set to log in, then you can install the desktop and other software.

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.