The reason for this sort of 2.6 is to determine as early as possible whether the VMware tools used will work correctly, and if not, uninstall and reinstall other versions of VMware.
VMware tools can be used to share code under Windows (development environment) in Debian (Code Runtime Environment).
(You can also install Samba in Debia to share code in Debian to Windows, but not in a way that looks at the code without wheezy running)
Start Running Wheezy
Connect to Debian
Installing VMware Tools First requiresbuild-essential
输入
Apt-get Install Build-essential
Y
Install the Linux kernel header again
Input
Apt-get Install linux-headers-$ (uname-r)
Y
The VMware Official manual provides a way to manually install VMware Tools, and the parts installed in Linux are available.
From the Workstation menu bar, select
Virtual machines > Installing VMware Tools
Are you sure
Input
Mount
Determine if the Linux distribution automatically mounts VMware Tools virtual CD-ROM images
If you mount a CD-ROM device, the CD-ROM device and its mount point are listed as follows:
/dev/cdrom on/mnt/cdrom type iso9660 (Ro,nosuid,nodev)
This machine is not mounted
Mkdir/mnt/cdrom
Create mount point Directory
Input
Mount/dev/cdrom/mnt/cdrom
Mount the CD-ROM drive
Input
cd /tmp
Go to working directory/TMP
Before installing VMware Tools, delete the previous Vmware-tools-distrib directory
Input
Ls/mnt/cdron
List the contents of the mount point directory and note the file name of the VMware Tools tar installer (vmwaretools-9.9.3-2759765.tar.gz)
Input
Tar-zxvf/mnt/cdrom/vmwaretools-9.9.3-2759765.tar.gz
Unzip the installer to the current directory
Input
Ls
The current directory has the unpacked packages of VMware Tools
Input
Uninstalling the CD-ROM image
Run the Setup program and configure VMware Tools.
Input
CD Vmware-tools-distrib
Switch directories
Input./vmware-install.pl–d
Start automatic installation, the installation process will wait for the user input, without input, will automatically use the default parameters
Installation Complete
Input
Ls/mnt
You'll see/mnt a Hgfs folder (if not, it doesn't work, re-installs other versions of VMware)
Shutting down a virtual machine
Selected in VMware
Shared folders, options, settings, virtual machines
You can see folders that are not currently shared
Click
Always Enable-add
Next
Select the folder you want to share (share D:\Code folder here)
Next
Complete
A successful shared folder has been added at this time
Restart Wheezy and connect to Debian
Input
Ls/mnt/hgfs
Show shared Folders code (if no shared folders are displayed, you will need to reinstall other versions of VMware)
When editing the contents of a shared folder (D:\Code) under Windows,/mnt/hgfs/code in Debian will change as well, because the two systems share the same folder.
The end of this article.
Building a local LNMP development environment (2.6)-sharing code with VMware tools