Installing ArchLinux notes on a virtual machine

Source: Internet
Author: User

Pre-Installation Confessions:

If you want to use ArchLinux, just put a play on the virtual machine first. The virtual machine is using VMware and downloading the free personal version is available.

The version of Arch Linux is 2016.4.1 kernel 4.4.5

On the virtual machine set up a 20G disk, 1G of memory, other default.

1 Preparation before installation:

According to the wiki installation help, the main is to complete the hard disk partition table settings and partitions.

On the MBR and GPT partition table, I use MBR, although older, but the problem may be a little less.

1.1 Before partitioning, you can use the

$ lsblk

Take a look at the current disk status.

1.2 Partitioning tools are available in many ways, I use parted.

$ parted

Go to the parted tool and enter help to continue to see what is available and how to use it.

I am using a single partition method, directly a partition, followed by the root directory/mount to the above, do not use swap.

1.3 Formatting a newly created partition

Look again at the disk status, you can see the partition after a new device, SDA1, this partition is formatted as EXT4 type.

$ mkfs.ext4/dev/sda1

1.4 Modifying the Pacman server image

Use the Nano Editor to modify:

# nano/etc/pacman.d/mirrorlist

Modify the inside of the mirror, select the inside of the Chinese area of the image can be.

2 Installing the System

2.1 Attach the new partition to the MNT.

Mount /dev/sda1/mnt

If you have additional partitions to mount, you need to create a new folder under/mnt/and then mount the partition under the file.

2.2 Installing the base system

Mount the partition, the following is to install the system into the partition, using the following command

# pacstrap  -i/mnt base Base-devel

Wait for the installation, which need to confirm some of the installation content, press ENTER to select the default.

Generate Fstab after installation

# genfstab-u-p/mnt >>/mnt/etc/fstab

2.4 Configuring the Base system

Switch the root directory and enter the new system:

# arch-chroot /mnt/bin/bash

2.5 Configuration language

Configure the language environment you use

# Nano/etc/locale.gen

Modify some languages, just remove the comments. and then generate.

# Locale-gen

2.6 Set a host name and a user name and root password

Set a host name

echo shm-pc >>/etc/hostname

Add a user

# useradd-m-G users-s/bin/passwd shm  #为shm添加密码

Change the root password

passwd

2.7 Network Configuration

# Systemctl Enable DHCPCD

3 bootloader Installation

after configuring the system and then installing the installation of a system boot, I am using Grub

# pacman-s Grub os-prober# Grub-install --recheck/dev/sda1# Grub-mkconfig-o/boot/grub/ Grub.cfg

4 Complete the initial installation

4.1 Exiting the current system

# exit

4.2 Unmount the partition and restart

umount -r/mnt/   # Uninstall new Partition # reboot    # restart

5 Installing the Image interface

5.1 Installing the Graphics driver

grep VGA     -S xf86-video-Vesa 

I'm using the first generic driver package:xf86-video-vesa

5.2 Installing the X Window System

5.3 Installing the desktop environment

More like Gnome's style.

# Pacman-s Gnome Gnome-extra

5.4 Configuring Desktop startup mode

Using GDM, and then directly enable GDM to service

# Systemctl Enable Gdm.service

That's basically it, the other software needs to be installed.

Reference:

http://bbs.archlinuxcn.org/viewtopic.php?id=1037

Installing ArchLinux notes on a virtual machine

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.