ArchLinux, arch
Step 1 Write the image to the USB flash drive
USB flash drives are never the only choice, but most people may like it.
I operate on OS X (Yosemite). If you are using windows, you may be able to use Image Writer for Windows or UltraISO.
Therefore, if you do not mention net booting, you may need an iso...
Https://www.archlinux.org/download/ will have a method suitable for your download.
You may want to usedd
Disk Duplicator (destroyer) writes iso to the USB flash drive.
Before that, if you want,iso
Change.img
You can open the terminal and execute the following command:
hdiutil convert -format UDRW -o /path/to/target.img /path/to/arch.iso
OS X will automatically add.dmg
I believe this will not cause you any trouble.
Rundiskutil list
, Find your USB flash drive, and unmount:
diskutil unmountDisk /dev/diskN
Okay, we can.dd
Now
sudo dd if=/path/to/arch.img of=/dev/diskN bs=1m
Ifdd
The prompt/dev/diskN is very busy. Make sure the device is unmounted. Note that it is not an eject.
If everything goes well, you can now mount the USB flash drive eject.
diskutil eject /dev/diskN
Step 2 before installation...
Okay. I hope you can see this page.
But before installation, we need to make some preparations.
1. Create partitions and format
We can usecfdisk
Orfdisk
Partition the hard disk.
If you thinkfdisk
No way to start,cfdisk
It may be a better choice.
First, we can executefdisk -l
Check which devices are available.
Runfdisk /dev/sda
, AppearsCommand (m or help)
- Input
p
View the current Partition
- Input
n
You can create a new partition, and then you will be prompted to select the partition type, which is the primary partition by default.
- Input
w
Write
Formatting can be usedmkfs.*
Command, such:
mkfs.ext4 /dev/sda1
Mount the file, for example:
mount /dev/sda /mnt
2. Select mirror.
Some people will skip this step. It is recommended to make a careful selection. A slight change may save you a lot of time.
Actually, just modify it./etc/pacman.d/mirrorlist
In my own example,ChinaRemove or watch all the other items. Fortunately, this step can be used.vim
The steps are much simpler.
Step 3 install and configure
First install the basic package
pacstrap /mnt base
If you want to useWifi,wifi-menu
May help you
GenerateFstab, The system will configure the mounting according to the information in fstab
genfstab -U -p /mnt >> /mnt/etc/fstab
Enter New System
arch-chroot /mnt
Then we need to make some configuration
- Modify
/etc/locale.gen
, Remove the comments of the region in use, save the file, and executelocale-gen
Set Time
ln -sf /usr/share/zoneinfo/zone/subzone /etc/localtime
Write regionLocale. confMedium
echo LANG=your_locale > /etc/locale.conf
Set name and password
echo computer_name > /etc/hostnamepasswd
Some things can be reboot and later, while some things need to be prepared in advance, suchBoot loaderAnd some dependencies.
We can usepacman
InstallGRUB
pacman -S grubgrub-install --recheck /dev/sdagrub-mkconfig -o /boot/grub/grub.cfg
Many people may be unable to use it after restart.wifi-menu
, PromptPlease install dialog to use wifi-menu.
If you want to solve this problem after restarting, it is estimated that it is very troublesome, you need to usepacman
To installDialogBut you cannot use wifi, and executing the following command in advance will make things much easier:
pacman -S dialog wpa_actiond ifplugd wpa_suppicant sudo zsh net-tools
OK. Exit and restart!
exitumount /mntreboot
Last
Use it after restartpacman
Install some tools but find that they cannot be connected to the Internet, so executewifi-menu
After the connection is selected, the following message is displayed:
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 my case is to delete it directly./etc/netctl/****
And re-Executewifi-menu
.
The following command is also used to solve the problem:
echo 'TimeoutDHCP=20' >> /etc/netctl/