after installing Ubuntu with VMware virtual machines, in order to achieve more powerful features such as dragging files directly from the Windows host into Ubuntu and enhancing Ubuntu performance, we typically install VMware tools, This may be a bit difficult for the novice, and I'm here to do some explaining and recording.
when Ubuntu is installed in the virtual machine, we click on the top virtual machine (M)--> reinstall VMware Tools (T) Of course, if you have already installed, you can omit.
Then the following will appear:
and then into Ubuntu, open the Files-> Devices-> VMware ...
My approach is to copy all the files inside, copy to the desktop, and then do the operation.
Open the terminal and perform the action:
CD Desktop (go to desktop)
tar-xvf vmwaretools-9.6.0-1294478.tar.gz (extract file, note that the filename here is the name of the. gz file on your desktop, the version is different, the file name is the same, but the suffix is. GZ, according to its own)
there should be one more folder on your desktop .
CD Vmware-tools-distrib (into the Unpacked folder Vmware-tools-distrib, folder name according to your own)
and then you can run it:
sudo./vmware-install.pl (sudo assign permission installation)
then enter the password, all the way to return, the installation is finished.
here is a few additional commands to make a record.
Tar
Format: tar [options] [file directory list]
Function: Package A backup of the file directory
Options:
-C to create a new archive file
-R appending files to the end of the archive file
-X Extract files from archive
-O unlocking files to standard output
Output related information during-v processing
-F for normal file operations
-Z invokes gzip to compress archive file, call gzip to complete uncompressed when associated with-X
-Z calls compress to compress the archive, and call compress when it is associated with-X to complete the decompression
1. Use tar to package files in a directory: #tar-cvf/mnt/lgx/a1.doc
Generate a packaged file with the. 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 package with tar, such as: #tar-cvf/mnt/lgx/a1.doc (produce 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. Extract a1.doc.tar.gz files
Method 1:
#gzip-dc/mnt/lgx/a1.doc.tar.gz (produce A1.doc.tar file)
#tar-xvf/mnt/lgx/a1.doc.tar (produce A1.doc file)
This two-time command can also use the piping function to bring two commands into one:
#gzip-dc/mnt/lgx/a1.doc.tar.gz | TAR-XVF
Method 2: Use the automatic invoke Gzip decompression feature provided by Tar
#tar-xzvf/mnt/lgx/a1.doc.tar.gz
After the tar is packaged, can also be compressed using the Compress command (note: gzip is more effective than compress compression), resulting in a. tar.z file, in the unpacking, you can use the "uncompress filename" format, and then unpack with "TAR-XVF filename". You can also invoke the "TAR-ZXVF filename" solution directly.