Sharing files between one linux system to other is easy :- All you need is the ip address of the system where you are accessing . I use NFS for sharing
IN YOUR SOURCE SYSTEM . ( system which shares files )
1. install nfs .
sudo apt-get install nfs-kernel-server .
2. open the nfs-exports file .
sudo vim /etc/exports
( this is the file which defines the shares )
just add a line like this one where /home/share_folder is the one folder on your system which you want to share with hostname1,hostname2 . The 'ro' says readonly and 'rw' says readwrite .
/home/share_folder hostname1(rw,sync) hostname2(ro,sync)
IN YOUR DESTINATION SYSTEM . ( system which uses the remote shared files )
just mount the network share onto your local folder and start using it !!
mount source_ip_address:/home/share_folder /mnt/nfs-mount
Now , the contents of folder in source system is available in destination system .
If your destination system is windows , go to mycomputer->tools->map a network drive. Then enter the \\source_ip\shared_folder . A network drive should be created. ( I havenot used this in windows though yet , You can try with samba doing the same )
If the windows share doesnot work , please refer to link
'http://2tap.com/2007/04/22/
sharing-files-between-a-windows-guest-and-
ubuntu-host-using-vmware-and-samba/'
it explains about sharing files between virtual windows and linux , but same thing will work in normal case too.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment