DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if it was a hard process to get my Debian box to act as a NFS on my home LAN? I have one main machine that has many files on a directory which I would like to dish out to other machines in my LAN.
I tried searching around but was not able to find a guide or steps needed. When I searched APT, I find the following .deb's:
Code:
nfs-common - NFS support files common to client and server
nfs-kernel-server - Kernel NFS server support
nfs-user-server - User space NFS server
nfsboot - Allow clients to boot over the network
nfsbooted - Prepares your image for nfs boot
I don't see a normal NFS"d" dameon package so I don't know which to install.
It's real easy to set up nfs, assuming all systems share the same user numbers. I used the following (really old) web page:http://www.aboutdebian.com/lan.htm
Basically, SAMBA is a pain to set up, but nfs is a breeze. On the server side, you do little more than:
1) "apt-get install nfs-kernel-server"
and
2) create the file /etc/exports and make an entry for each directory you want to share.
Each entry will look something like this:
/export/docs 192.168.1.*(rw)
First is the path, then whitespace, then the allowed client addresses and then options in parentheses (with no space in between!).
On the client side, you'll want to make manual entries into /etc/fstab. An entry will look something like:
192.168.1.5:/export/docs /export/docs nfs auto 0 0
First is the server name or IP address, then a colon, then the share's path on the server. Second is the mount point--I almost always make the mount point identical to the server's path so symbolic links work the same on both the clients and the server. Then comes the file system type (nfs), options (like automatically mounting on boot) and then...some numbers I always put on the end to make it work.
Thanks - I am trying this right now. Do I need to install anything for NFS on the client side or can any linux machine with a LAN connections work as long as I add the entry in /etc/fstab?
OK - Thanks. Now you added a wild card just to allow every machine on that subnet, correct? And also I can change /export/docs for /home/user if I wish to share a home directory, right?
Yes, although it's probably better to share /home entirely if you're going to do it at all. Personally, I do NOT like sharing /home. There's some software which doesn't appreciate being run on multiple computers at the same time with the same user, like Firefox (or at least, Firefox used to be like that). Also, I like having different font, icon size, and window sizes on different computers. This is important when some computers are running at 2048x1536 and others are at 800x600!
Basically, I like to create an entirely "new" directory for shared data which doesn't mean anything to the OS or to any software by default.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.