Arch Linux installation process is simple notes.
Step 1 disk mirroring to write u
u disk has never been the only option, but most people might like to do.
I was operating in OS X (Yosemite), if you are using Windows, you may be able to use U disk to install Linux Burn Tool: USBWriter or UltraISO.
So, not to mention net booting, you may need a iso ...
https://www.archlinux.org/download/ there for you to download.
You may want to use ddDisk Duplicator (destroyer) will write the iso u disk.
Prior to this, if you want to, iso into .img, you can open a terminal and execute the following command:
hdiutil convert -format UDRW -o /path/to/target.img /path/to/arch.iso
OS X will automatically give you add .dmg, I believe this will not cause you trouble.
Executive diskutil list, find your u disk, and unmount:
diskutil unmountDisk / dev / diskN
Well, we can dd a
sudo dd if = / path / to / arch.img of = / dev / diskN bs = 1m
If prompted dd / dev / diskN busy, you need to make sure the device has unmount, note that not eject.
If all goes well, u can now eject the disc.
diskutil eject / dev / diskN
Step 2 before you install ...
Well, I hope you've seen this interface.
But before installation, we need to do some preparation work.
1. The establishment of partitioning and formatting
We can use cfdisk or fdisk to partition the drive.
If you feel unable to start fdisk, cfdisk is probably a better choice.
First, we can execute fdisk -l to see which device has.
Execute fdisk / dev / sda, appears Command (m or help)
Enter p View the current partition
Enter n can create a new partition, then there will be prompted to select the partition type, default primary partition.
Enter w to write
You can use the mkfs * formatting commands, such as:
mkfs.ext4 / dev / sda1
Then mount it, such as:
mount / dev / sda / mnt
2. Select the mirror
Some people skip this step, it is recommended careful selection, a little change can save you a lot of time.
In fact, just modify /etc/pacman.d/mirrorlist, like my own example of this is in addition to China all removed or watching, Fortunately, this step can use vim, so that step a lot simpler.
Step 3 Installation and Configuration
First, install the basic package
pacstrap / mnt base
If you need to use wifi, wifi-menu may help you
Generating fstab, mount the system configuration information in accordance with fstab
genfstab -U -p / mnt >> / mnt / etc / fstab
In the new system
arch-chroot / mnt
Then we need to do some configuration
Modify /etc/locale.gen, comment area will be used to remove, save the file and execute the locale-gen
Set the time
ln -sf / usr / share / zoneinfo / zone / subzone / etc / localtime
The area is written in locale.conf
echo LANG = your_locale> /etc/locale.conf
Set the name and password
echo computer_name> / etc / hostname
Some things can reboot after slowly, and some things you need in advance to prepare, such as boot loader and a number of dependencies.
We can use pacman to install GRUB
pacman -S grub
grub-install --recheck / dev / sda
grub-mkconfig -o /boot/grub/grub.cfg
A lot of people can not use occurred after the restart wifi-menu, prompt please install dialog to use wifi-menu.
If you intend to resolve this problem after the restart estimation lot of trouble, you need to use pacman to back you install dialog, but you can not use wifi, and execute the following command in advance to make a lot of simple things:
pacman -S dialog wpa_actiond ifplugd wpa_suppicant sudo zsh net-tools
Well, quit and restart!
umount / mnt
After the restart with pacman to install some networking tool but found it impossible, so after execution wifi-menu select the connection tips:
Job for netctl@****.service failed. See 'systemctl status netctl@****.service' and 'journalctl -xn' for details.
It seems that many people have encountered this problem, like in my case directly to delete / etc / netctl / **** and re-run wifi-menu.
Another case is resolved by the following command:
echo 'TimeoutDHCP = 20' >> / etc / netctl /