ArchLinux Installation Guide

Source: Internet
Author: User
Tags locale

Use ArchLinux as an advanced Linux distribution, focusing on rolling updates and in-depth understanding of the Linux installation process.

As a novice, you first choose to install it on your company's computer using VMware. Then gradually install the dual system on the WIN10 notebook with a USB flash drive.

One, installation preparation

Download the installation image from the official website, https://www.archlinux.org/download/

The WIN10 system needs to turn off Safe mode and quick start to choose to boot via USB stick.

Second, installation steps

Go to the Installation command window

A, VMware boot is relatively simple, directly select the installation image, create a virtual machine, start to enter

b, make a UEFI boot USB drive

Tried the U-start, UltraISO tool to make none of the success, finally found Rufus successfully burned the USB drive and entered the Start Command window.

Rufus the parameters by default when burning, both DD and iOS burn mode will succeed.

Installation Guide

Https://wiki.archlinux.org/index.php/Installation_guide_ (%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87)

Partition (build, format, Mount)

Solution/,/home,/swap

Https://wiki.archlinux.org/index.php/Partitioning_ (%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87)

Established Https://wiki.archlinux.org/index.php/Fdisk_ (%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87)

Fdisk/dev/sda

Formatting

mkfs.ext4/dev//dev//dev/sda3

Mount

Mount /dev/sda2//mkdirmkdirMount /dev/ sda1/mnt/Mount /dev/sda3/mnt/home

WIN10 dual system, need to mount EFI

CD/mntmkdir boot/EFIMount /dev/sda1/mnt/boot/efi

Modify Source

Way one: download from the network


#备份
MV Mirrorlist{,.backup}
#从网络下载
wget http://docs.ihacklog.com/mirrorlist

Mode two: Direct modification

#将mirrors. ustc.edu.cn and mirrors6.ustc.edu.cn move the front

cd/etc/Pacman.dnano mirrorlist #复制一整行: Alt+6#剪贴一整行: Ctrl+k# paste:Ctrl +u# with Ctrl +y to the previous page, CTRL +V to next # Use CTRL+O to save your changes # Press CTRL+X
installing the base system
# pacstrap-i/MNT Base Base-devel
Fstab
# genfstab-u-p/mnt >>/mnt/etc/fstab
Chroot
# arch-chroot /mnt/bin/bash
Time Zone
LN -s/usr/share/zoneinfo/asia/shanghai/etc/localtime
Locale
# Nano/etc/locale.gen

To specify the type of localization you need, simply remove the comment symbol () in front of the corresponding line, and suggest the option UTF-8 to use the Chinese system :

en_US. utf-8 utf-8zh_cn. GB18030 GB18030ZH_CN. GBK GBKZH_CN. UTF-8 utf-8zh_cn GB2312

Then execute locale-gen to generate the locale message:

# Locale-gen

locale.confto create and submit your localization options:

Echo Lang=en_us. utf-8 >/etc/locale.conf
Host name

To set hostname, add it to /etc/hostname , myhostname is the hostname you need:

echo myhostname >/etc/hostname
Root Password
passwd

Create a local user

Useradd-m-G users-g wheel-s/bin/bash arch64 #创建一个普通用户, belong to users user group, specify Shell as bash, user name is Arch64

Installing and configuring the GRUB initiator

Https://wiki.archlinux.org/index.php/GRUB_ (%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87) #UEFI_. E7. B3. Bb. E7. bb.9f

(non-UEFI)
Pacman-s grub-biosgrub-install --recheck  /dev/-S os-Prober #检测其他操作系统, This is Win7grub-mkconfig-o/boot/grub/grub.cfg.
(UEFI)
Pacman-s grub-bios efibootmgr dosfstoolsgrub-install --target=x86_64-efi--efi-directory=/boot/ EFI--bootloader-ID=arch_grub--recheck--debuggrubcp /usr/share/locale/en\ @quot/lc_ Messages/grub.mo/boot/grub/locale/en.mo
Restart
Exit #退出chroot umount /mnt/{boot/efi,usr,home}umount /mntreboot

Three, post-installation work

Installing the desktop Environment

A, installing xorg
Pacman-s xorg-server xorg-xinit xorg-utils xorg-server-utils #也可以只安装xorg-server

B, install the GNOME3 desktop environment

$pacman-S Gnome

Boot from the desktop environment

Systemctl Enable Gdm.service

After installation, self-initiated network service

Systemctl Enable Dhcpcd.service

Four, summary

Kung Fu is a conscientious

Appendix: Reference Documents

Http://www.cnblogs.com/fangying7/p/3803290.html

https://my.oschina.net/codeaxe/blog/127533

Http://www.cnblogs.com/nkdanfer/p/3553533.html

ArchLinux Installation Guide

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.