VirtualBox Installation ArchLinux Guide __linux

Source: Internet
Author: User
Tags locale
first, base installation

Partition

Cfdisk, the simplest partition is divided into a single zone/dev/sda1 and set to boot

Formatting

Mkfs.ext4/dev/sda1

Mount partitions, edit mirrors, install systems

Mount/dev/sda1/mnt
echo >/etc/pacman.d/mirrorlist
Nano/etc/pacman.d/mirrorlist

Server = Http://mirrors.ustc.edu.cn/archlinux/repo/os/repo/os/arch (USTC source)
Pacstrap-i/MNT Base

Generate Fstab

Genfstab-u-p/mnt >>/mnt/etc/fstab
Cat/mnt/etc/fstab (view the generated content)

Configuring the System

We need to switch chroot to the new system first.

Arch-chroot/mnt

Configure locale, edit/etc/locale.gen, all content of this file is annotated, so add en_US to the top. UTF-8 UTF-8 can be.

Nano/etc/locale.gen
en_US. UTF-8 UTF-8

Then execute the Localegen

Locale-gen

Then configure locale.conf

Echo Lang=en_us. UTF-8 >/etc/locale.conf
Export Lang=en_us. UTF-8

To name a computer

echo Myhostname >/etc/hostname

Configure the network to start the DHCP service

Systemctl Enable Dhcpcd.service

Set Password

passwd

Installing GRUB

Pacman-s Grub
Grub-install–recheck/dev/sda
Grub-mkconfig-o/boot/grub/grub.cfg

Uninstall MNT, reboot

Exit
Umount/mnt
Reboot Second, the installation of graphical interface

Install Xorg-server

Pacman-s xorg

Install video Driver

If you don't know what your video card is, use the following command to view the following:

Lspci|grep VGA

Then execute the following command to search for a match to your graphics driver

Pacman-ss Xf86-video | Less

Mine is VirtualBox, so I'm using Xf86-video-vesa here.

Pacman-s Xf86-video-vesa

If the notebook is installed, you can install the touch template driver

Pacman-s Xf86-input-synaptics

Test the X environment is installed, you can execute the following command, in fact, do not test.

Pacman-s XORG-TWM Xorg-xclock xterm
StartX
Exit
Pkill X

Install Xfce4, install LIGHTDM Manager

Pacman-s Xfce4 LIGHTDM Lightdm-gtk-greeter
Systemctl Enable Lightdm.service

Install Chinese fonts

Pacman-s Wqy-microhei Tty-dejavu

As for beautification, all is through the interface operation, system-setting can set the font, the other terminal preference can set it to use the font.

In VirtualBox virtual machines typically require installation of enhanced tools

Pacman-s virtualbox-guest-utils

Loading modules

Modprobe-a vboxguest vboxsf Vboxvideo

To automatically load these modules after the reboot is set

Vi/etc/modules-load.d/vbox.conf (added in file)

Vboxguest
vboxsf
Vboxvideo

Add a user to the system

Pacman-s sudo
Useradd-m-G users-g wheel-s/bin/bash Youruser
passwd Youruser (Set password)
Visudo (Remove the # Number of wheel all= before)

%wheel all= (All)

Install Chinese Input Method Fcitx

Pacman-s Fcitx-im Fcitx-configtool Fcitx-sunpinyin

Restart Login

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.