Can someone help me get started uisng Unix file sharing?
OK, I believe it's called NFS? I need to create some shared files between computers on a network...
I'd also like to ask another question... If I've got a computer with a NFS share, can I go to another Unix/Linux/BSD machine and mount that share remotely (eg. over the internet)? |
You could start by putting "nfs howto" into google, and following the first link returned. It is not difficult to set up, and will do what you want.
|
Re: Can someone help me get started uisng Unix file sharing?
Quote:
First of all ensure you have NFS support. Ubuntu includes this from the shelf, but in Gentoo you will need to emerge it: Code:
emerge -avt nfs-utils friends are enabled by default. In Gentoo you will also need to take a glance at the kernel to see if it was build with NFS enabled, it should look like this: Code:
runlevel0@soviet ~ $ cat /usr/src/linux/.config | grep NFS If you are running Ubuntu, ensure first of all that the NFS server is not running: Code:
/etc/init.d/nfs status Server Once you are sure every thing is in it's place open your favorite editor (Vim, of course) and create/edit the file /etc/exports Code:
# /etc/exports: NFS file systems being exported. See exports(5). Quote:
Code:
modprobe nfs Now start the NFS daemon: Code:
/etc/init.d/nfs start Clients On the client side, the only thing you have to do is putting an entry into /etc/fstab such as this: Code:
192.168.0.1:/srv/portage /usr/portage nfs noauto,rw,rsize=8192,wsize=8192,nolock,_netdev 0 0 Quote:
_netdev tells mount not to try to mount it if the server is not available, this avoids delays at boot time. nolock avoids exclusive locks, specially important for better performance on networks with more than two machines noauto this makes that the NFS is not mounted at boot, you need to mount it yourself. You can skip this option if you want. rsize=8192,wsize=8192 a little tweak which improves performance rw mount read-write, this is up to you. Now read the NFS and the mount man pages to get more info and tune your system to your likings. Quote:
|
How would I use an ssh tunnel? Because I'm probably going to be somewhere where I know my computer's IP but not my laptop's
|
All times are GMT -5. The time now is 10:55 AM. |