ArchLinux Installation Configuration Guide 2015-05-24

Source: Internet
Author: User
Tags locale

Because of the Linode VPS system is archlinux, want to get a local system to do testing, so it is more convenient. Then found themselves in 6 years ago to do a ArchLinux installation configuration flash, good memory of the bright. When I moved in, I didn't think ArchLinux now has a wizard installed. It is no longer applicable.

Pre-Installation Preparation

Download the installation CD

https://www.archlinux.org/download/

Start the disc and enter the system

1. Partitioning the hard drive

To view a hard disk partition using the FDISK-L command

Where/DEV/SDA is the target disk we need to install.

Cfdisk to Partition

Cfdisk/dev/sda

Choose a second

Create a swap partition and primary partition

Write to disk and exit later using Fdisk-l will find out two more disks

Format a disk with MKFS.EXT4

Mkfs.ext4/dev/sda2

Mount our master hard drive to the/MNT directory

Mount/dev/sda2/mnt

Formatting swap partitions

Mkswap/dev/sda1

Enable Swap disk

Swapon/dev/sda1

2. Installing the System

The first step is to determine if the network is smooth. Arch is a network-based installation.

Then select the local source

Vim/etc/pacman.d/mirrorlist

Install basic functionality into/MNT

PACSTRAP/MNT Base Base-devel

3. Configuration

First chroot to/mnt.

Arch-chroot/mnt

First create a new password for the root user

passwd

Set the supported character set, remove some Chinese comments, and then remove the two English en_US Vim/etc/locale.gen

After editing, execute locale.gen.

Setting the time zone

Ln–s/user/share/zoneinfo/asia/shanghai/etc/localtime

Set hostname

echo Bihell >/etc/hostname

Installing the Boot Manager

Pacman–s Grub-bios

Installation boot

Grub-install/dev/sda

Installing kernel Mirroring

Mkinitcpio–p Linux

Update GRUB Configuration

Grub-mkconfig–o/boot/grub/grub.cfg

Enable DHCP

Systemctl Enable Dhcpcd.service

Finally exit the chroot environment and generate the partition table

Exit

Genfstab/mnt >>/mnt/etc/fstab

Uninstall MNT and reboot from the hard drive.

Umount/mnt

Reboot

ArchLinux Installation Configuration Guide 2015-05-24

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.