This article turns from http://blog.csdn.net/lishuhuakai/article/details/11880953
After installing Ubuntu with a VMware virtual machine, we typically install VMware tools for more powerful functions such as dragging files directly from a Windows host into Ubuntu, and enhancing Ubuntu performance, which may be difficult for beginners I'm here to explain and record!
After the Ubuntu installation is complete in the virtual machine, we click on the upper virtual Machine (M) and reinstall VMware Tools (T) Of course, if you have installed it, you can omit it.
Then the following will appear:
Then go into Ubuntu and open the Files---Devices, VMware ...
My practice is to copy all the files inside, copy them to the desktop, and then do the operation!
Open the terminal and perform the operation:
CD Desktop (go to desktop)
TAR-XVF vmwaretools-9.6.0-1294478.tar.gz (Unzip the file, note that the filename here is the name of the. gz file on your own desktop, the version differs, and the file name is different, but the suffix is. GZ, follow your own)
At this time you should have a folder on the desktop, the following execution
CD Vmware-tools-distrib (Enter extracted folder Vmware-tools-distrib, folder name according to your own)
Then you can run it:
sudo./vmware-install.pl (sudo assign permissions to install)
Then enter the password, all the way to enter the installation is finished!
After rebooting, you can drag files from the physical host to the virtual machine.
Add a few commands below to make a record!
Tar
Format: tar [options] [file directory list]
Function: Package Backup of File directory
Options:
-C Create a new archive file
-R append file to end of archive file
-X to extract files from an archive file
-O unpack the file to standard output
-V Process Output related information
-F for normal file operations
-Z Call gzip to compress the archive, and invoke gzip to complete the decompression when associated with-X
-Z Call compress to compress the archive, call compress to complete the decompression with the-X union
1. package files in a directory with tar: #tar-cvf/mnt/lgx/a1.doc
Generate a packaged file with a. tar extension
2. Unpack the package file with tar: #tar-xvf/mnt/lgx/a1.doc.tar
Typically, tar packaging is often used in conjunction with gzip (compression). Method:
First packaged in tar such as: #tar-cvf/mnt/lgx/a1.doc (generates A1.doc.tar file)
Then use gzip to compress A1.doc.tar files, such as: #gzip/mnt/lgx/a1.doc.tar (Generate a1.doc.tar.gz file)
3. Unzip the a1.doc.tar.gz file
Method 1:
#gzip-dc/mnt/lgx/a1.doc.tar.gz (Generate A1.doc.tar file)
#tar-xvf/mnt/lgx/a1.doc.tar (Generate A1.doc file)
These two commands can also use the pipe function to combine two commands:
#gzip-dc/mnt/lgx/a1.doc.tar.gz | Tar-xvf
Method 2: Use tar to provide automatic call to gzip decompression function
#tar-xzvf/mnt/lgx/a1.doc.tar.gz
After the tar is packaged, Compress command compression is also available (note: gzip is more efficient than compress compression), resulting in a. tar.z file that, when unpacking, can be decompressed with the "uncompress file name" format and then unpacked with "TAR-XVF file name". You can also call the "TAR-ZXVF file name" unpacking directly.
"Go" How to install Vmware-tools under Ubuntu?