Linux (in virtual machines) and windows file sharing methods

Source: Internet
Author: User

Linux (in virtual machines) and windows Shared Files two methods in Windows with SourceInsight and Linux collaborative coding is used to reading and writing code with SourceInsight. in Linux, similar tools are not found at the moment, I am not familiar with vi operations, and occasionally check or slightly modify the code. I feel like a project is too large to work. So I am still preparing to read and write the code in Windows, and compile and run the code in Linux. The following describes the installation and configuration process of the environment and records the notes. Environment Description: Windows 7 + SourceInsight 3.5 Ubuntu 11.04 (this is a VMware-based virtual machine, theoretically not limited to virtual machines) is mainly divided into two parts: one is the installation and configuration of Samba under Ubuntu; second, the Linux shared directory is mapped to a network drive in Windows. I. install and configure Samba in Ubuntu 11.04 1) install the samba package # sudo apt-get install samba # sudo apt-get install smbclient 2) create a shared directory (the directory name can be customized) # mkdir/home/share # chmod-R 777/home/share # If you do not change the permission, you cannot write data in windows (applicable to read-only sharing )!!! 3) modify the Samba configuration file: # cp/etc/samba/smb. conf/etc/samba/smb. conf. bak # back up the samba configuration file # gedit/etc/samba/smb. conf. find "# security = user" and change it to "security = share" # Note: remove the annotation symbol at the beginning of the line. Note: security = share indicates that anyone can log on without a password; the default security = user indicates that each user must enter a password to log on. B. add the following content at the end of the configuration file (excluding the remarks at the end of the line) [share] # shared file name, which can be customized, different from the shared directory name, comment = VMware Ubuntu Share # shared description. You can customize path =/home/share # shared directory, which should be consistent with the one created earlier, the absolute path public = yes # allow everyone to see this Directory writable = yes # allow users to write in this directory 4) restart the Samba service # sudo/etc/init. the installation and configuration of d/smbd restart Samba have been completed. 2. In Windows 7, map the shared directory in step 1 to a network drive. 1) Make sure that the network configuration of Ubuntu is OK. Check and record the IP address. Here we use 192.168.128.128 as an example. In Windows 7, run the command "cmd" to check whether the network is smooth. For example, "\ 192.168.128.128 \ share" is entered in the address bar of Windows Resource Manager to access the shared directory. 2) Right-click the [computer] icon (XP may be on the [Network Neighbor] icon), select "ing grid drive (N )... "select a proper drive letter in the drive column. Select W here. Enter \ 192.168.128.128 \ share in the folder column. Click" finish. 3) double-click [computer] to view a network drive with the drive letter W. 3. Share code. Put the code in the shared directory created above, create the SourceInsight project here, you can use SourceInsight in Windows to modify and compile the Code; compile it In Ubuntu. ========================================================== ======================================== The second method is to use the shared folder feature provided by vmware, in fact, you need to install vmware-tools. For details about how to install them, Baidu. The shared directory is/mnt/hgfs on linux; in win, you need to set it in setting-> option-> shared folders in vmware's system.

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.