ArchLinux-Installation Tutorial

Source: Internet
Author: User
Tags locale set time

Step 1 Writes the image to the U-disk


The U-disk is never the only option, but most people may prefer to do so.

I'm working on OS X (Yosemite), and if you're using Windows, you might be able to use image Writer for Windows or UltraISO.

So, without mentioning net booting, you may need an ISO ...
Https://www.archlinux.org/download/will have the right download method for you.

You may want to dd write the ISO to the U disk using Disk Duplicator (Destroyer).
Before that, if you want to turn it ,iso into .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 to you .dmg , believing it won't cause you any trouble.

Execute diskutil list , find your U-disk, and unmount:


Okay, we can do dd it.

sudo dd if=/path/to/arch.img of=/dev/diskN bs=1m

If dd prompted/dev/diskn is busy, you need to confirm that the device has been unmount, note is not eject.


If all goes well, you can now eject the U-disk.

diskutil eject /dev/diskN

Step 2 before installing ...

Well, hopefully you've seen this interface.

But before we install, we need to do some preparatory work.

1. Creating partitions and formatting

We can use cfdisk or fdisk partition the hard drive.
If you don't know fdisk what to do, cfdisk it might be a better choice.

First we can perform fdisk -l a look at what devices are available.
Execute fdisk /dev/sda , appearCommand (m or help)

    • Enter p to view the current partition
    • Enter n to create a new partition, followed by a prompt to select the partition type, default to primary partition.
    • Input w to write


Formatting can use mkfs.* commands, such as:

mkfs.ext4 /dev/sda1

Then mount it, for example:

mount /dev/sda /mnt

2. Select Mirror

Some people will skip this step, suggest careful choice, a little change may save you a lot of time.
In fact, just a change /etc/pacman.d/mirrorlist , like my own example is all except China to remove or stare, fortunately this step can be used vim , so that the steps are much simpler.

Step 3 Installation and configuration


Install the basic package first

pacstrap /mnt base

If you need WiFi, wifi-menu you may be able to help.

Generates Fstab, which is configured to mount according to the information in the Fstab

genfstab -U -p /mnt >> /mnt/etc/fstab   

Enter the new system

arch-chroot /mnt


Then we need to do some configuration

    • Modify /etc/locale.gen to remove comments from the area used, save the file and execute locale-gen
    • Set time

        ln-sf/usr/share/zoneinfo/zone/subzone/etc/localtime  
    • Writes a zone to locale.conf

        echo lang=your_locale >/etc/locale.conf  
    • Set name and password

        echo computer_name >/etc/hostnamepasswd  
    • Some things can be reboot slowly, and some things need to be prepared in advance, such as boot loader and some dependencies.

      • We can use Pacman install GRUB

          pacman-s grubgrub-install--recheck/dev /sdagrub-mkconfig-o/boot/grub/grub.cfg  
      • Many people can't use wifi-menu after a reboot Install dialog to use Wifi-menu .
        If you want to fix this problem after restarting, you need to use Pacman to install dialog for you, but you can't use WiFi, and the following command will make things a lot easier to do in advance:

          pacman-s Dialog wpa_actiond ifplugd wpa_suppicant sudo zsh net-tools  



Okay, quit, restart!

exitumount /mntreboot

At last

After restarting with pacman the installation of some tools but found unable to connect to the Internet, then perform a wifi-menu select connection after the prompt:

Job for [email Protected]****.service failed. See ' systemctl status [e-mail Protected]****.service ' and ' journalctl-xn ' for details.

It seems that a lot of people have also encountered this problem, like my situation is directly deleted /etc/netctl/**** and re-executed wifi-menu .
There is also a situation where the following commands are resolved:

echo ‘TimeoutDHCP=20‘ >> /etc/netctl/

ArchLinux-Installation Tutorial

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.