Use NFS to share file between systems if there is no windows involved, it is so easy.
Install nfs-kernel-server
and nfs-common
on the computer that has the files to be shared. These can be installed in the Software Center, or however you prefer to install packages. You can install them on the command-line with:
sudo apt-get update && sudo apt-get install nfs-kernel-server nfs-common
You need to edit the exports file that shows what to share and with whom. So run:
gksu gedit /etc/exports
For example, to give full read and write permissions, allowing any computer from 192.168.1.1 through 192.168.1.255, add this line to /etc/exports
:
/directory_to_share 192.168.1.1/24(rw,no_root_squash,async)
My daughter's export file looks like this (I am .201
--we are not using a range, just one IP):
/home 192.168.0.201(rw,sync,no_root_squash,no_subtree_check)
/srv/nfs 192.168.0.201(rw,sync,no_subtree_check)
Restart the NFS server by running:
sudo /etc/init.d/nfs-kernel-server restart
(Or reboot the computer.)
From now on after editing the /etc/exports
file, you can just run sudo exportfs -a
to apply the changes.
The showmount
command will tell you that all went well--for example, on my daughter's computer, it shows she will share these two things with my computer @ .201 (me) if requested
$ showmount -e
Export list for jamie-desktop:
/srv/nfs 192.168.0.201
/home 192.168.0.201
Then install nfs-common
on the computer that wants to mount the export shares as part of its file system.
An fstab
entry must be added to have your computers nfs-client mount another computers exports @ boot time. gksu gedit /etc/fstab
will edit the required file.
192.168.0.200:/srv/nfs /media nfs rsize=8192 and wsize=8192,noexec,nosuid
Reboot and the share is mounted in /media
.
Set up a server on the client and client on the server for two-way shares.
You can print to a shared printer with CUPS (as mentioned in this answer).
Best Answer
Share Folders in Ubuntu 11.10
Objectives: Share a folder in Ubuntu and access it from Windows
To get started, right-click on the folder you wish to share and select ‘Sharing Options’
When prompted to install Samba services, do it.
After installing Samba services, click ‘Restart session’
Then click ‘Create Share’ to complete the process.
scroll to the global section, and add the lines
press ctrl+o and ctrl+x to save, and exit nano
computer name can be ip address of ubuntu machine , to check ip of ubuntu machine , go to ubuntu machine & open terminal & type ifconfig
Type the Ubuntu computer name and the share name of the resource.
You will get a prompted to enter your credentials. Type your Ubuntu username and password and click ‘OK’
Now try again to access the shares from your Windows machine
Transfer files From Ubuntu To Windows
On Ubuntu Machine install openssh-server
after installing go to windows machine & download / install FileZilla & open it
Done Now you can easily transfer files from Windows to Ubuntu OR Ubuntu to windows