SlackwareThis Forum is for the discussion of Slackware 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.
1. edit /etc/exports to add the directories you want to share*
2. # chmod +x /etc/rc.d/rc.rpc
3. # /etc/rc.d/rc.rpc start
4. # chmod +x /etc/rc.d/rc.nfsd
5. # /etc/rc.d/rc.nfsd start
Client end:
# mount -t nfs 192.168.x.x:/mnt /mnt/hd
*A simple /etc/exports file, which exports the /mnt directory:
Code:
/mnt *(rw,no_root_squash,no_subtree_check)
Yep, you make it look simple. Thanks for the 'Cut-to-the-chase' explanation. I'll modify that slightly to get my 3 linux boxes talking to each other. And even my son can have at my Videos if he figures out how to do it from Windows . Of course I won't tell him about Samba - that would make life easy for him and messy for me.
@rkselsen: I started setting that up here. I have backups on /mnt/hd normally, but /mnt/hd/Videos is a separate partition and that didn't show, so I gather I have to list each partition separately?
I gather the client needs to have /etc/rc.d/rc.rpc running?
Am I better putting nfs mounts in /etc/fstab? Let me see.....
I reckon it's best to run 2 servers here between my 3 boxes which will make backups & even remote installs a bit lazier when coupled with ssh.
@viel: Thanks for that. I've actually been using rsync for file transfer with good success which only requires a user password and no setup. Problem is, my sbc has a well-deserved hostname: I called it sparrowfart, because it's computing power is inconsequential.
I have backups on /mnt/hd normally, but /mnt/hd/Videos is a separate partition and that didn't show, so I gather I have to list each partition separately?
You could export and mount those different partitions separately or you could experiment with the "nohide" option in /etc/exports (see man exports).
Quote:
Originally Posted by business_kid
Am I better putting nfs mounts in /etc/fstab
Putting nfs mounts in fstab for automatic mount at boot is an option. Adding options like "noauto" and "user" to a line in fstab might make it easier to manually mount and umount. However, when it comes to NFS I really like the automounter which you can enable with:
in /etc/auto.master and the default distributed /etc/auto.net in Slackware you can then simply do things like:
Code:
ls /net/192.168.xxx.abc/mnt
The automounter will mount those directories when you use them and umount them when no longer needed.
A good advice is also to carefully choose your computers which get the trust to become NFS servers. If an NFS server hangs or is shutdown, all cliens having mounted directories from the NFS server will suffer. Only such a simple thing as typing "df" in a terminal window might make you lose the prompt in that window with df being hung in a "D" state.
If an NFS server hangs or is shutdown, all cliens having mounted directories from the NFS server will suffer. Only such a simple thing as typing "df" in a terminal window might make you lose the prompt in that window with df being hung in a "D" state.
I'm guessing that autofs goes some way to mitigate this?
I'm guessing that autofs goes some way to mitigate this?
What autofs does is that unused file systems will be umounted. So your client will not hang if you haven't used the file system for a while when a server goes down. However, only a simple thing like having a terminal window where you have made cd to a remote file sytem will keep that file system mounted with automount.
Well, I have the nfs bit sort of working, but I'm snookered by the power saving setup on this box. Mate is OTT with power saving; XFCE is the reverse. And the box won't stay up in Mate. long enough to do any useful transfers. I'm going to run a separate thread on the power saving if I can't sort it myself.
The one box that stays on 24/7 is my Razpi, and that ticks over at about 500 MHz and only uses ~10W when idling. It strikes me I should get some more storage on to it.
Power saving issues seem sorted. I've set up the drives in various /etc/fstabs, and get a modest but not massive improvement because the network now becomes the limiting factor. But this setup allows remote copying to/from 2 remote boxes, which is nice. It also motivated me to get the power saving sorted out.
I didn't realise the nfs scripts were not in any of the rc files, so I have them in rc.local & rc.local_shutdown.
For remote file transfers, I've found Filezilla best. Is in slackbuild. Uses SFTP protocol. You can delete remote files and directories, manage a queue, transverse the remote file system, select files you want added to the download queue, multiple simultaneous file transfers for folks with the bandwidth. I use it to push updates to the boxen on my home network and manage my web site. I switched from rpc. I suggest everyone using rpc do that.
Good to know. I'm hardly going to set it up for the time saving here though, as the volume transferred is low, but the convenience of networking it is huge for me. I'm getting another pair of mains network adapters which are fater than wifi. I can understand the sense commercially, but I'm in the slow lane.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.