Install VMware Tools inside the ArchLinux

Source: Internet
Author: User

Learning Linux with a virtual machine is really handy, but it's a big problem with the host's file sharing, and VMWARE tools is a great way to solve the problem, but in arch it's not as easy to install as most Linux, after checking a lot of posts and trying countless times, finally installing successfully, Now the process of a simple record, hoping to be troubled by the problem of friends have some help! The working environment is as follows:
Linux:archlinux 2.6.25
VMware 6.03VMWARE Linux TOOLS can be downloaded at the following URL: http://www.vmware.cn/Soft/1053.htmlDownload vmware Workstation 6.0.3 VMware Tools Daquan Keyword: VMWARE,WORKSTATION,VMCN, streamlined, Green Edition introduction:
VMware Workstation 6.0.3 VMware Tools Daquan, with streamlined green edition. To reduce the volume of the Green edition, VMware Tools contains only Windows.iso, which can be downloaded from VMware Tools for other systems. : http://www.vmware.cn/Soft/ShowSoftDown.asp?UrlID=4&SoftID=10531, preparatory work
Create the following directory: (in the middle-input)
Mkdir-p/ETC/VMWARE-TOOLS/INIT.D
Cd/etc/vmware-tools
mkdir RC0.D
mkdir rc1.d
mkdir rc2.d
mkdir RC3.D
mkdir rc4.d
mkdir RC5.D
mkdir RC6.D Create a connection
Ln-s/etc/rc.d/network/etc/vmware-tools/init.d/network Modify Version.h file
Path in/usr/src/linux-2.6.25-arch/include/linux/ Version.h Note: Linux-2.6.25-arch This directory name may be different depending on the kernel version of your system, you can go to the parent directory to view, or use the uname command to view the system version to determine the directory name Version.h add a line of content: #define Uts_release "2.6.25-arch" version.h content becomes:
#define Linux_version_code 132627
#define Kernel_version (A,b,c) (((a) <<) + ((b) << 8) + (c))
#define Uts_release "2.6.25-arch" 2, start the installation program
Go to the VMware menu, select Install VMware Tools, if the virtual machine's optical drive is not automatically read Linux.iso, you can manually set the path Eg:e:\vmware\linux.iso enter ArchLinux, as the root user to do the following
CD/
Mount-t iso9660/dev/cdrom/mnt
Cp/mnt/cdrom/vmwaretools-6.0.3-45731.tar.gz/tmp
Umount/dev/cdrom unzip the VMware Tools tar file in/tmp and install it. Cd/tmp
Tar zxf vmware-linux-tools.tar.gz
CD Vmware-linux-tools
CD ~/vmware-tools-distrib
The./vmware-install.pl installation will be done automatically, followed by the following tips: from Archwiki, very simple is not translated, according to the problem shown on the screen to fill in the path and type Yes to continue "in which directory does you Want to install the binary files?:/opt/vmware-tools/bin
"What's the directory that contains the init directories ...?":/etc/vmware-tools
For the rest of the accept default locations and say yes when a directory creation is needed.
When the installer asks your to run vmware-config-tools.pl answer ' No ' appears with the words enjoy done, the installation is completed successfully above the installation section! 3. Configure VMware Tools
This Part I do not quite understand, according to gourd painting Dipper has the following steps: Run the configuration script run/opt/vmware-tools/bin/vmware-config-tools.pl This script asks ' What's the location of the Directory of C header files that match your running kernel? [/usr/src/linux/include] '. The answer is as follows:/usr/src/linux-2.6.25-arch/include script will compile some things, basically follow the prompts to choose Yes, to the xorg section, prompted to choose an X screen resolution. You need to have Xorg installed in your system to make the X configuration work properly. The installation of xorg can be seen in the previous post, simply as follows:
Pacman-s xorg-server xorg-xkb-utils Xorg-xauth xorg-server-utils xorg-xinit
Pacman-s Xf86-video-vesa Xf86-input-mouse Xf86-input-keyboard
Pacman-s HWD
Hwd-x
MV/ETC/X11/XORG.CONF.HWD/ETC/X11/XORG.CONF Installation
Pacman-s Xf86-video-vmware Xf86-input-vmmouse Modify the configuration file edit/etc/x11/xorg.conf
Find
section "InputDevice"
Identifier "Mouse1" is changed to the following:
Driver "Vmmouse"
Option "Device" "/dev/psaux" NOTE: Here I changed the USB mouse This section, I use the U-port mouse in the/etc/rc.conf in the early modules= this line and then disable Pcnet32 The module then enables the VMware module, similar to the following: modules= (!pcnet32 vmblock vmxnet vmmemctl Vmhgfs) to ensure that the date and time can be synchronized with the host, the VMWARE-GUESTD program must be running. This program can be opened at boot time by the following steps: CD/ETC/RC.D
Ln-s/etc/vmware-tools/init.d/vmware-tools Vmware-tools then looks for daemons= in rc.conf and adds Vmware-tools to the extra, In order to be able to copy/paste can work between x and the host, you must turn on the ' Vmware-user ' program. Add the following line to your configuration file,. xinitrc or. xsession (where any of your programs can start when x starts): path in/etc/x11/xinit, add/opt/vmware-tools/bin/at XINITRC last Vmware-user & Save Exit reboot, then all functions should be working properly. Note: Sometimes the Vmware-tools function becomes unusable after startup, and my solution is to reconfigure it: Run/opt/vmware-tools/bin/vmware-config-tools.pl basic Select No then go through the process just fine, Hope to have a master can guide!

Install VMware Tools inside the ArchLinux

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.