ArchLinux, arch

Source: Internet
Author: User

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 useddDisk Duplicator (destroyer) writes iso to the USB flash drive.
Before that, if you want,isoChange.imgYou 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.dmgI believe this will not cause you any trouble.

Rundiskutil list, Find your USB flash drive, and unmount:

diskutil unmountDisk /dev/diskN 


Okay, we can.ddNow

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

IfddThe 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 usecfdiskOrfdiskPartition the hard disk.
If you thinkfdiskNo way to start,cfdiskIt may be a better choice.

First, we can executefdisk -lCheck which devices are available.
Runfdisk /dev/sda, AppearsCommand (m or help)

  • InputpView the current Partition
  • InputnYou can create a new partition, and then you will be prompted to select the partition type, which is the primary partition by default.
  • InputwWrite


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/mirrorlistIn my own example,ChinaRemove or watch all the other items. Fortunately, this step can be used.vimThe steps are much simpler.

 

Step 3 install and configure


First install the basic package

pacstrap /mnt base

If you want to useWifi,wifi-menuMay 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 usepacmanInstallGRUB

      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 usepacmanTo 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 restartpacmanInstall some tools but find that they cannot be connected to the Internet, so executewifi-menuAfter 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/

 

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.