I once installed a VM with Unbundu in my host windows 10 system. Having downloaded a huge file of 50GB, I wanted to share this file with host windows system. This is how to achieve it.
Step 1: Go to unbuntu and download samba:
sudo apt-get install samba
Step 2: Setup password with existing account, holroyd is my account in unbundu:
smbpasswd -a holroyd
Step 3: make a fold in which you want to share your files:
mkdir ~/Desktop/Share
Step 4: open the linux config file for samba:
/etc/samba/smb.conf
scroll down to the end of the file and add lines like this:
[share]
path = /home/holroyd/share
available = yes
valid users = holroyd
read only = no
browsable = yes
public = yes
writable = yes
Save up this file.
Step 5: execute the command to make the configuration work:
sudo service smbd restart
To visit this fold from Windows:
Step 1: check your ip address in unbundu:
ifconfig -a
Step 2: access the fold like this:
\ipaddress\share fold
in my circumtance, it should be:
\\172.23.243.218\share