Mini nas dufs
Mini NAS server - dufs
This DUFS is a mini nas server (light weight), but it works pretty well in the house.
The following is the steps to set it up, no installation even needed, just copy these files.
Copy these files to the server
File structure:
# tree /opt/dufs/
/opt/dufs/
├── assets
│ ├── favicon.ico
│ ├── index.css
│ ├── index.html
│ └── index.js
├── bin
│ └── dufs
├── config.yaml
└── data
Add service file
nano -w /etc/init.d/dufs
#!/sbin/openrc-run
description="NAS System"
name="dufs"
command="/opt/dufs/bin/dufs"
# disable this line to avoide authentication in house environment
#command_args=" -a 'admin:$6$/mWY1Jm47dW6UkQD$f6WNAMTdhIHqUII3prC11ucAJU1rWqmBDZ2LqpmbvB9Y2bOI2XOkPGnZGcaNA49zf0WpEFBNguXI5e2jvnwPR0@/:rw' /var/www/html/ -A --assets /opt/dufs/assets/"
command_args=" /var/www/html/ -A --assets /opt/dufs/assets/"
pidfile="/run/dufs.pid"
command_background=true
#directory="/opt/dufs/"
#output_log="/dev/null"
#error_log="/dev/null"
output_log="/var/log/dufs.log"
error_log="/var/log/dufs.log"
depend() {
need net
}
chmod +x /etc/init.d/dufs
Add the service and start
rc-update add dufs default
rc-service dufs start
Verify it's up
# ss -tnlp|grep dufs
LISTEN 0 1024 0.0.0.0:5000 0.0.0.0:* users:(("dufs",pid=7411,fd=9))
LISTEN 0 1024 [::]:5000 [::]:* users:(("dufs",pid=7411,fd=10))
Look at the log file
# cat /var/log/dufs.log
Listening on:
http://10.0.2.15:5000/
http://127.0.0.1:5000/
http://192.168.56.103:5000/
http://192.168.100.23:5000/
http://[::1]:5000/
http://[fd00::a00:27ff:feff:296e]:5000/
2026-09-04T10:15:42-07:00 INFO - 192.168.100.22 "GET /" 200
Bring dufs manually
The following command can bring it up manually with user admin login (password is the common one):
pkill dufs
sleep 3
nohup /opt/dufs/bin/dufs -a 'admin:$6$/mWY1Jm47dW6UkQD$f6WNAMTdhIHqUII3prC11ucAJU1rWqmBDZ2LqpmbvB9Y2bOI2XOkPGnZGcaNA49zf0WpEFBNguXI5e2jvnwPR0@/:rw' /var/www/html/ -A --assets /opt/dufs/assets/ > /var/log/dufs.log 2>&1 &