VMware Virtual machine Installation ArchLinux system Full process record __linux

Source: Internet
Author: User
Tags arch linux
1. Create VMware virtual machines
2. Select x86-64 Start
3. Fdisk/dev/sda


Divided into 2 districts, one sda1, Sda2 10G, 40G, respectively.

Initialize SDA2 to EXT4 format
Mkfs.ext4/dev/sda2


Format sda1 to swap
Mkswap/dev/sda1
Swapon/dev/sda1


Mount Sda2 to mnt, i.e. sda2 as system root partition
Mount/dev/sda2/mnt


4. Modify the source, must put the domestic source first
Vi/etc/pacman.d/mirrorlist


Write the following three domestic sources:
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch


Save exit.


Pacman-syy


5. Pacstrap/mnt Base Base-devel

6. Genfstab-p/mnt >>/mnt/etc/fstab


7.
Execute command: Arch-chroot/mnt/bin/bash (someone on the internet said to do so, otherwise you will not be able to successfully install the desktop)

Exit exits
Arch-chroot/mnt re-enter.
Prompt becomes: sh-4.2 #


8. Initialize Memory
Mkinitcpio-p Linux


Nano/etc/hostname Set machine name
David_archlinux,


9. Pacman-s net-tools//Network


Pacman-s Grub-bios//install Grub
Grub-install--RECHECK/DEV/SDA
Grub-mkconfig-o/boot/grub/grub.cfg
The top three lines must be executed, otherwise no grub reboot will be in.


Pacman-s alsa-utils Linux-headers

10.
Graphics driver
Pacman-s Xf86-video-vesa # Universal Graphics driver, does not provide any 2d and 3D acceleration features
Pacman-s Xf86-video-intel # Intel
Pacman-s Xf86-video-nouveau # Nvidia
Pacman-s Nouveau-dri
# pacman-s Xf86-video-ati # ATI
#
# Virtual machine: Pcaman-s Xf86-video-vesa

11.
Vi/etc/pacman.conf


Add the following:
[ARCHLINUXCN]
#The Chinese Arch Linux communities packages.
Siglevel = Optional Trustall
Server = http://repo.archlinuxcn.org/$arch


#pacman-sy


12.
(This should be can not be installed)
Install Yaourt
#pacman-S Yaourt


Exit
Umount/mnt
Reboot


Go to the Grub interface


If you do not connect to the network after reboot, enable DHCP
Systemctl Enable DHCPCD
Systemctl Start DHCPCD


14. Install Xorg
Pacman-s xorg-server xorg-xinit xorg-utils xorg-server-utils Mesa


15. Notebook Touch Pad Support
Pacman-s Xf86-input-synaptics


16. Test x work is normal
Pacman-s XORG-TWM Xorg-xclock xterm




17.
Now you can start X with StartX to see the rough graphical interface.
StartX




18.
Install Desktop (XFCE4):
Pacman-s Xfce4


Start Xfce4 use: Startxfce4


19.
sudo paceman-s open-vm-tools
sudo systemctl enable Vmware-vmblock-fuse
Vmware-user-suid-wrapper


If the above is not effective, then follow the following 2 should be OK.
Xf86-input-vmmouse,xf86-video-vmware


Install VM Tools, or the window screen is too small to change depending on the size of the virtual machine window.

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.