![]() |
|
DSL as File Server - Printable Version +- Damn Small Linux Forums (https://damnsmalllinux.org/forums) +-- Forum: Damn Small Linux Forum (https://damnsmalllinux.org/forums/forumdisplay.php?fid=1) +--- Forum: Help Section (https://damnsmalllinux.org/forums/forumdisplay.php?fid=4) +--- Thread: DSL as File Server (/showthread.php?tid=320) |
DSL as File Server - DamsonPie - 11-19-2026 I am using DSL on a PC as a file server and I have spent some time trying to get its to-be-shared directory to mount on Debian-type clients. All the fstab and exports files seemed correct by comparing them with other servers I have running Debian and Raspberry Pi. which I can mount OK. nfs-common and nfs-kernel-server are installed. Following the advice on this page : https://www.systutorials.com/how-to-set-up-and-configure-nfs-server-and-clients/ ... I installed systemctl on the DSL server and it told me that serving and mounting were inactive (dead) : Code: [root@EZ-DSL:~] # systemctl status nfs-server
nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service, enabled)
Active: inactive (dead)Code: [root@EZ-DSL:~] # systemctl status nfs-mountd
nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service, static)
Active: inactive (dead)I then manually started these two services on the server and was then able to mount DSL files on the client : Code: [root@EZ-DSL:~] # systemctl start nfs-server
[root@EZ-DSL:~] # systemctl start nfs-mountdDo I have to manually start these services this every time I boot the DSL server? Or am I missing something? RE: DSL as File Server - grindstone - 11-20-2026 OK, after installing nfs-common and nfs-kernel-server, at least the portmapper shows in the Runit Service Manager. This may indeed be all that we need. If you look under /etc/sv/ you will find an rpcbind directory containing the requisite check, run, and finish files along with a supervise directory containing PID, status, etc. DSL (antiX) handled it, so no need to create those files. I didn't have an exports file ready so it didn't autostart nfsd at installation. Also 99% complete with a set of runit files should we need them, but investigating my test system. Again, this is doing nothing but installing the two packages and opening the service manager. When I checked under Add, nothing NFS-related remained. To answer my own questions for posterity, a couple variables are different as follows: ## Notes on the /etc/default variables - RPCNFSDCOUNT=8 — number of nfsd kernel threads; read directly by the run script. - RPCNFSDPRIORITY=0 — nice level applied to the server; inherited by the nfsd kernel threads. - RPCMOUNTDOPTS="--manage-gids" — passed verbatim to rpc.mountd -F; composes fine with -F. - RPCNFSDOPTS — not present in bookworm's default file. Kept for forward compatibility with other Debian releases. - STATDOPTS (nfs-common) — empty here means statd defaults - NEED_IDMAPD, NEED_GSSD, NEED_SVCGSSD — concern daemons this service set does not run (idmapd is obsolete under the keyutils-based ID mapper; gssd/svcgssd are only needed for Kerberized NFS). Irrelevant unless you use Kerberos exports. - To disable NFSv4 serving, add --no-nfs-version 4 to RPCMOUNTDOPTS in /etc/default/nfs-kernel-server (per that file's own comment). The only question is, if you check the rpcbind checkbox in the service manager, does yours start/run right? If you read about how antiX uses runit, you see that antiX w/ runit isn't 100% pure runit, but leaves some things in SysV init. Sure-enough, I found the rest of the NFS stuff under /etc/init.d. Oy. nfs-common and nfs-kernel-server are SysV controlled and rpcbind is a runit service. If yours works, that's how to control things. DSL inherited this "hybrid". First thing I've worked on in DSL that's this way. Thanks for patience. This indeed is a weird one and we may have an opportunity to improve it, courtesy of you raising the issue. More to come. BTW, I now have a set of files that can be used with runit that follow antiX house style and Debian canonical forms and logic. Have some questions for upstream to ensure that they do not fight. RE: DSL as File Server - DamsonPie - 11-23-2026 Sorry I'm a bit slow responding. Getting my head round init stuff. antixcc.sh redirects to dslcc.sh [my "lse" is alias for "ls -ahl""] :- Code: root@EZ-DSL:/usr/local/bin] # lse |grep dsl
lrwxrwxrwx 1 root root 8 Jun 16 2024 antixcc.sh -> dslcc.sh
-rwxr-xr-x 1 root root 51K Sep 12 2024 dslcc.sh
-rwxr-xr-x 1 root root 3.4K Jun 11 2024 dsl-usb-maker.sh.... and dslcc.sh contains nothing about nfs :- Code: root@EZ-DSL:/usr/local/bin] # cat dslcc.sh |grep nfs
[root@EZ-DSL:/usr/local/bin] #There is nothing about nfs in /etc/sv .. nor is there a "service" directory in /var :- Code: [root@EZ-DSL:/etc] # lse /etc/sv |grep nfs
[root@EZ-DSL:/etc] # lse /var/
total 48K
drwxr-xr-x 12 root root 4.0K Feb 6 2026 .
drwxr-xr-x 17 root root 4.0K Feb 6 2026 ..
drwxr-xr-x 2 root root 4.0K Jul 14 2023 backups
drwxr-xr-x 7 root root 4.0K May 29 2024 cache
drwxr-xr-x 3 root root 4.0K Dec 28 2023 games
drwxr-xr-x 41 root root 4.0K Feb 8 2026 lib
drwxrwsr-x 2 root staff 4.0K Jul 14 2023 local
lrwxrwxrwx 1 root root 9 Feb 6 2026 lock -> /run/lock
drwxr-xr-x 9 root root 4.0K Nov 23 16:45 log
drwxrwsr-x 2 root mail 4.0K Feb 6 2026 mail
drwxr-xr-x 2 root root 4.0K Aug 26 2023 opt
lrwxrwxrwx 1 root root 4 Aug 26 2023 run -> /run
drwxr-xr-x 4 root root 4.0K Aug 26 2023 spool
drwxrwxrwt 2 root root 4.0K Oct 23 15:23 tmp
[root@EZ-DSL:/etc] #There is no nfs option in the GUI : Control Center -> System -> Choose Startup Services The contents of /etc/default/nfs-common and nfs-kernel-server are :- (I've removed some comment lines) Code: [root@EZ-DSL:/etc/default] # cat ./nfs-common
# .... Valid alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=
# Options for rpc.statd.
# ...
STATDOPTS=
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=
[root@EZ-DSL:/etc/default] # cat ./nfs-kernel-server
# Number of servers to start up
RPCNFSDCOUNT=8
# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0
# Options for rpc.mountd.
...
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS="--manage-gids"
# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""
# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=""
[root@EZ-DSL:/etc/default] #Thanks for any help. RE: DSL as File Server - grindstone - 11-24-2026 Thanks. Any chance you're running live/persistent? Did you update & upgrade? Not indicting, just trying to get a handle on a baseline that we might both have. My "daily runner" DSL has individual files for the (distinct/individual) control centers -- the only goal was to show the GUI that controls the Runit system (antiX has the only one to my knowledge). The differentiation must have happened later in the lifecycles than what you are running. So, the thing to know is, the situation you're in--that we're all in with NFS being controlled by two init systems--this never happens except in antiX which is trying to transition/enable support for many of them ![]() At this instant, I have file sizes ( in /usr/local/bin ): 55115 antixcc.sh 51483 dslcc.sh w/o symlinks. Did you start with the DSL File Restore and then do the yunno sudo apt-get update && sudo apt-get upgrade (or would it be possible to do same?) I have a way to manage everything from one control center (the Runit GUI) but it's not officially antiX-sanctioned, which is my goal. In the end, it's possible that it may not be, in which case it will be provided with appropriate info. For now, please understand that I am attempting to elevate your (quite reasonable) issue to change my "workaround" to become a "fix". Thanks to you for Your patience in this odd scenario. In the mean time, rpcbind you will find under the runit service manager as a checkbox on/off affiair, nfs-kernel-server and nfs-common are separately (!!!) controlled by: /etc/init.d/nfs-common start/stop/restart Yes. I know. That's why I'm working on it. Thanks to you for raising the issue! |