How to install ArchLinux on a virtual machine

Source: Internet
Author: User
Tags arch linux

How to install ArchLinux on a virtual machine 1. insert the disc and Boot it. Select Boot from the disc to go to the Boot page (1) Select Boot Arch Linux Live CD (2) and go to the Main Menu page, perform operations by sequence number. skip [0. select Keyboard And Console Font, not set (that is, the default setting) 3. select 1.Set Clock. Do not select UTC time or localtime. select [2. prepare Hard Drive (s)] Prepare the Hard Drive www.2cto.com (1) and select [1. auto Prepare (erases the ENTIRE hard drive] (2) the system requires you to specify the/boot,/swap,/(Root) Partition size, the remaining size is/home (3) specify the file system type of each partition and then prepare the hard disk. select [3. select Source: Select CD-ROM, USBS Trick or other source] 6. select [4. select All In Selelct Packages [base]. base is the basic software package, and other software Packages are based on personal needs. 7. select [5. install Packages. Wait for a moment until the installation package ends. select [6. configure System, Editor select vi (according to your habits) (1) select [/etc/rc. conf], configure the static IP address to set ROUTES = (! Gateway) to ROUTES = (gateway), save and exit (2) select [/etc/resolv. conf, configure the dns server (3) and select/etc/locate. gen], remove all the # Before zh_CN (Simplified Chinese is supported) (4) select [/etc/pacman. d/package list, select the available source address (package repository) (5) and select [/etc/pacman. conf]. Find the following two lines and remove # [testing] www.2cto.com # Include =/etc/pacman. d/configure list and add the following two lines: [archlinuxfr] Server = http://repo.archlinux.fr/ $ Arch (6) select [Root Password] to set the root Password 9. select [7. install Bootloader: Select Grub2 and select OK To Go To The GRUB configuration file editing page. If there are other boot systems, modify the configuration, select the correct partition location, save, and then select/dev/sda to start the installation. After the installation is successful, Type reboot to restart 10. use aria2 for pacman acceleration (for Software Package download acceleration) (1) install aria2 and run pacman-S aria2 (2) to modify/etc/pacman. conf, add the following XferCommand =/usr/bin/aria2c-s 4-m 2-d/-o % u where/usr/bin/aria2c-aria2 main program-s 4- open four threads for download (you can increase the number, but the speed may not change much.)-m 2-set the number of Retries for each image to 2-o % o-Set The downloaded file is named "% u" specified by pacman. download the file specified by pacman 11. update the system pacman-db-upgrade pacman-Syu 12. add an account named "archie" (based on your preferences) (1) useradd-m-g users-G audio, lp, optical, storage, video, wheel, games, power-s/bin/bash archie (2) change its password, passwd archie 13. install sudo (allows common users to execute commands as root) (1) execute pacman-S sudo (2) execute mongodo and add % wheel ALL = (ALL) ALL 14. process System audio (1) first install alsa-utils and run pacman-S alsa-utils alsa-oss (2) Run alsaconf and set sound card options as prompted. Www.2cto.com (3) edit/etc/rc. conf add @ alsa to the system DAEMON 15. processing System Video and input device (1) Installation drive and X, run pacman-S xf86-input-mouse xf86-input-keyboard xf86-input-evdev xf86-video-your graphics driver xorg-server (2) Installation 3D support, run pacman-S mesa 16. run pacman-S ttf-dejavu ttf-bitstream-vera wqy-zenhei 17 to install the font. install the desktop (depending on your preferences) (1) execute pacman-S gnome (2) execute pacman-s tpd gnome-utils gamin gnome-tweak-tool (3) add @ resolve @ gestation to system DAEMON 18. installation of Chinese Input Method (unsuccessful, unclear why) (1) install the required input method # pacman-S scim-pinyin # pinyin Input Method # pacman-S scim-tables # Five-stroke input method (2) EDIT ~ /. Xprofile (this file is not found). The content is as follows: export XIMODIFIERS = @ im = SCIM export GTK_IM_MODULE = "scim" export QT_IM_MODULE = "scim"/usr/bin/scim-d 19. install the audio and video tool and the decoding package and run pacman-S flashplugin codecs smplayer audacious 20. install the vim editor and run pacman-S vim to edit/etc/vimrc. Add the following two lines: set fileencodings = ucs-bom, UTF-8, cp936, gb18030, big5, euc-jp, euc-kr, latin1 (encoding supported) syntax on (highlight enabled) 21. install network-manager-applet (network manager) (1) Run pacman-S network-manager-applet madwifi-utils (2) Add @ networkmanager to/etc/rc. 22. install the office software and run pacman-S libreoffice 23. install NTFS read/write tool www.2cto.com execute pacman-S ntfs-3g ntfsprogs with pacman software management Common commands pacman-S package # Install package # Delete package pacman-Syu # Upgrade all packages in the system pacman-Ss package # query package pacman-Qs package # query Installed package pacman-Sw package # download but not install package pacman-U/path/package.pkg.tar.gz # Install local package pacman-Scc # clear package cache pacman-Sf package # reinstallation package author Javawdw

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.