This article is based on the ArchLinux (https://www.archlinux.org/) current release:2013.08.01 ISO written installation Tutorial!
Iso:http://mirrors.163.com/archlinux/iso/2013.08.01/archlinux-2013.08.01-dual.iso
1. Partitioning
Cfdisk
• Novice can not partition, if need to divide multiple zones, suggest one/home, if the memory is large, do not need swap partition. Using Cfdisk partitioning is more intuitive.
• Note "Bootable",/partition must be bootable, if you separate the/boot, then this bootable.
2. Formatting
Fdisk/dev/sda
Command (M or Help): P (enter p here to see your current partition and name), such as:
I didn't do more partitioning because I was a virtual machine. Press CTRL + C to exit Fdisk. Then enter the following command format:
Mkfs.ext4/dev/sda1
If you still have a mkfs.ext4/dev/sdax, go ahead and X is the partition name of your home.
3. Mount Partition
Mount/dev/sda1/mnt
If you still have home/home
Mkdir/mnt/home
Mount/dev/sda2/mnt/home
4. Select Mirror Site
Nano/etc/pacman.d/mirrorlist
Find with China, PageDown PageUp scroll screen, CTRL + V PAGE DOWN, ctrl+y page UP, alt+6 copy the current line, ctrl+u paste, ctrl+x exit, Save Press Y, enter.
163 site at the bottom not far, I copied 2, put on the top,.
5. Installation System
Pacstrap-i/MNT Base
Hit the default (all) Enter, all installed, encountered the need to download the Yes.
6. Generate Fstab
Genfstab-u-p/mnt >>/mnt/etc/fstab
Cat/mnt/etc/fstab
The first one is the build, the second one is to view the generated content, ctrl+x exit if you have no problem. My example:
7. Configuration system
To chroot switch to the new system first, the command is as follows:
Arch-chroot/mnt
A, configure locale, language
Edit/etc/locale.gen, all the contents of this file are commented, so add en_US on top. UTF-8 UTF-8 can be.
Nano/etc/locale.gen en_US. UTF-8 UTF-8
Then execute Localegen
Locale-gen
Then configure locale.conf
Echo Lang=en_us. UTF-8 >/etc/locale.conf
Export Lang=en_us. UTF-8
b, to the computer named
echo Myhostname >/etc/hostname
C, configure the network
Systemctl Enable Dhcpcd.service
How dynamic IP is
D, set the password
passwd
Set a password to root, two times the input to be consistent.
E. Installing grub
Pacman-s Grub Grub-install--target=i386-pc--RECHECK/DEV/SDA
Then configure the Grub
Grub-mkconfig-o/boot/grub/grub.cfg
Now I see it should be like this.
8. Uninstall MNT, restart
Exit Chroot
Exit
Uninstall MNT
Umount/mnt
Restart
Reboot
9. Install desktop environment A, install Xorg-server
Pacman-s Xorg-server xorg-server-utils Xorg-xinit
B. Install the video driver
If you don't know what your video card is, use the following command to view the following:
Lspci | grep VGA
Then perform the following command to search for the driver that matches your video card
Pacman-ss Xf86-video | Less
I am VirtualBox, so I will install a magnum, you install matching, such as you are Intel integrated on the execution:
Pacman-s Xf86-video-intel
Virtual machines are executed
Pacman-s Xf86-video-vesa
The laptop can also be loaded with a touchpad drive
Pacman-s Xf86-input-synaptics
Test the X environment is installed, you can execute the following command, in fact, do not test.
Pacman-s XORG-TWM Xorg-xclock xterm
StartX
Exit
Pkill X
C, installation Xfce4
Pacman-s Slim
Install Slim first, which is an image, login manager that can be used for Xfce4 self-booting.
Pacman-s Xfce4
Now, it's done!! Start!!!
Startxfce4
, do you dare to be ugly again? Haha, the main is the font is too ugly, we pack a few good-looking fonts!
D. Install fonts
Pacman-s Wqy-microhei Wqy-zenhei Wqy-bitmapfont
As for landscaping, all through the interface operation, system-setting can set the font, the other terminal preference can set its font.
9. Add a user
You can't always work with root, so we're going to add a regular account.
Pacman-s sudo
Useradd-m yourname
passwd yourname
Then add the user to some groups: Audio disk Locate network optical power storage video Wheel Systemd-journal
Gpassd-a yourname Wheel
I am adding power storage network wheel systemd-journal because virtual machines, basically just use terminal to learn some other languages, others do not do.
10, set Xfce4 self-start
Install vim for easy editing of files.
Pacman-s vim
Log off or restart, and then log on with a normal user.
Vim. xinitrc
Delete the # in front of EXE Startxfce4 and execute the command:
Systemctl Enable Slim.service
So the next time you start, you start xfce4 automatically.
Arch Linux Installation