LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2024, 06:45 AM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336

Quote:
Originally Posted by rkelsen View Post
This is the process at the server end:

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.
 
1 members found this post helpful.
Old 04-29-2024, 10:16 AM   #17
viel
Member
 
Registered: Jul 2021
Location: Arcadia
Distribution: Slackware
Posts: 50

Rep: Reputation: Disabled
I use sshfs to share files between mi openwrt with mi video files and my computers.

As easy than mount on local the remote openwrt dir.

Install sshfs , then:

Code:
sshfs -o allow_other,default_permissions root@192.168.1.1:/mnt/sea /mnt/sea_remote/
In case you don't want to set up more service.

It is an other option, and maybe work with windows.

 
Old 04-30-2024, 09:29 AM   #18
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
@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.....
Code:
192.168.xxx.abc:/mnt    /media   nfs   rw,no_root_squash,no_subtree_check    0   0

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.
 
Old 04-30-2024, 01:37 PM   #19
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 983

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Originally Posted by business_kid View Post
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 View Post
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:

Code:
chmod u+x /etc/rc.d/rc.autofs
/etc/rc.d/rc.autofs restart
With the line:

Code:
/net    /etc/auto.net
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.

regards Henrik
 
2 members found this post helpful.
Old 04-30-2024, 04:33 PM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by henca View Post
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?
 
Old 05-01-2024, 04:42 AM   #21
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 983

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Originally Posted by rkelsen View Post
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.

regards Henrik
 
Old 05-01-2024, 04:49 AM   #22
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
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.
 
Old 05-03-2024, 06:44 AM   #23
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
/Later

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.
 
Old 05-03-2024, 03:05 PM   #24
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,833

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Quote:
Originally Posted by business_kid View Post
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.
If you mean /etc/rc.d/rc.nfsd, it's started in /etc/rc.d/rc.inet2 and stopped in rc.6 (and rc.K).
 
Old 05-05-2024, 08:19 AM   #25
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Thank you for pointing that out. I thought rc.inet2 was for all the crazy daemons & exotica that nobody ever uses. It appears I was wrong.
 
Old 05-08-2024, 08:17 PM   #26
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 356
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 05-09-2024, 09:32 AM   #27
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,380

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd rejects root with RSA key but sshd -d accept it yek Linux - Software 2 08-19-2015 11:15 AM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration