Windows 7 UBUNTU10.10 shared folder running under virtual machine vmware

Source: Internet
Author: User

In order to build a Linux cross-compilation environment, the author needs to install Ubuntu in the virtual machine, many packages need to be acquired through the WIN7 shared folders. There are a lot of people have questions, ask what without Ubuntu's own software manager, directly online download not just. Here to explain is that a lot of people's Internet environment does not allow direct access to the network software packages, must first pass certification software certification, the author here is such a situation, the evil of the H3C 802.1X certification. @#¥%......&* (

Believe and the author has the same situation of a few netizens, today spent a morning, completely resolved windows 7 with the virtual machine VMware run under the UBUNTU10.10 shared folder, very gratified, in view of the many such tutorials old practicality is not, I would like to take a little time to write a tutorial to treat the linuxer side dishes, prawns will consciously drift over it ...

First download VMware6.5 above version, installation after the successful installation of UBUNTU10.10, this part is relatively simple, I do not wear the keyboard, everyone can do very well. Next, start VMware and start the Ubuntu virtual machine.

Install VMware Tools and select Vm->reinstall VMware Tools on the VMware panel ... as shown in Figure 1


As you can see, the CD icon for VMware Tools already appears on the system's desktop, as shown in Figure 2

Here VMware virtual a CD image, we need to mount this image to the local/mnt directory, where we may want to create a subdirectory, open the terminal to review the Linux commands. The first thing to do is switch to root, which is a big feature of Ubuntu to prevent the configuration of Linux. The order is as follows:

Su

Next prompts to enter the password, enter the password to return to OK, as shown in Figure 3

Here is a small problem, the installation of Ubuntu, the system will only let you set a user's password, will not let you set the root password, how to do it. is still an order, as follows:

sudo passwd root

Follow the prompts to enter the new password two times and confirm it.

Re-enter the command su to obtain root permissions.

The next step is to create the subdirectory cdrom in the/mnt directory, and then mount the CD image to/mnt/cdrom, and finally switch to the/mnt/cdrom directory. The order is as follows:

Mkdir/mnt/cdrom

Mount/dev/cdrom/mnt/cdrom

Ls/mnt/cdrom

Mount success we will see the tip said: Mount: Block device/dev/sr0 write-protected, read-only Mount (PS: Personally think it should be "read-only Mount", pick a typo), as shown in Figure 4

With the LS command you can see that there are two files, as shown in Figure 5

At this point, run the command pwd, indicating the current user root directory, in this case/home/roger, as shown in Figure 6

One of them is vmwaretools-8.1.3-203739.tar.gz, which is a compression format that we need to decompress. The order is as follows:

Tar-xvzf vmwaretools-8.1.3-203739.tar.gz

Here's an explanation of the parameters behind tar, X represents decompression mode decompression, V on behalf of the decompression process visualization, Z representative to extract the file compression format, that is, GZ,F representative must indicate to extract the file file name is what, decompression process will not cut screen, too long, we look at the office.

After the decompression has entered the corresponding directory of the decompression process, using the command LS to view the current directory files, found a Vmware-tools-distrib folder, as shown in Figure 7

Use the CD vmware-tools-distrib command to enter the Vmware-tools-distrib folder, enter LS to view the files in it, as shown in Figure 8

Use./ The divmware-install.pl command executes the divmware-install.pl script file in the current directory, when the computer starts to configure according to the script, and constantly asks you to answer with the carriage return, probably presses 11 times to enter, when adjusts the screen resolution, according to your screen real The choice of the international resolution, Strange is my Ubuntu skip this step directly, carried out a compile module operation, may be different from other tutorials, no more screenshots.

After installation, log off, and then login again, the front is not wrong, it should be effective, then how to verify it. Enter the VM in the terminal and press the TAB key in a row, there will be many commands at the beginning of the VM, if you see vmware-config-tools.pl This command, the instructions are effective, as shown in Figure 9

OK, now that the VMware Tools installation is complete, you can set up the share. Choose options inside the VMware vm->settings option, as shown in Figure 10

Choose shared Folders, change the disabled back to Enabled, select the always enabled on the right, and then press add below to add the folder you want to share, if you want to set up the Win7 under the first. Finally click OK to complete the setup.

Back to the terminal, with the command Cd/mnt/hgfs can see you set up a shared folder. As shown in Figure 11

All Tutorials End

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.