Sorting by

×
zorruno wikki: Setting up Alt-f Firmware on Dlink DNS-320L Nas

Revision [5357]

This is an old revision of alt-f-dlinknas made by ZorrUno on 2020-04-21 00:49:46.

 

Setting up Alt-f Firmware on Dlink DNS-320L Nas


Summary

-- These are cheap 2-bay NASs
-- I have DNS-320L
-- Firmware is rubbish
-- Alt-F is an open source replacement
-- Alt-F is minimalistic, but does what is needed, has a plug-in system and is efficient

Non persistant File system

On Alt-F, by contrary, any change will be lost in the next reboot. The exception is a set of well defined files, the "Settings", that are saved in flash memory and loaded on the next reboot (or on demand), and that overrides the defaults.
To override this, there is a set of files in /Alt-F that will be pulled on boot to overlay on the existing file system. eg to change loadsave_settings

aufs.sh -n
mkdir -p /Alt-F/usr/sbin
cp /usr/sbin/loadsave_settings /Alt-F/usr/sbin/loadsave_settings

edit /Alt-F/usr/sbin/loadsave_settings and fix the error
aufs.sh -r

You then need to go into the web panel and save your changes (the save to flash memory option under system settings)

THIS WOULD NOT WORK FOR ME FOR /etc/httpd.conf specifically for some reason. it kept getting overwritten (but not completely?) so I'm guessing Alt-F was updating it on reboot after the file overlay.

I ended up modifying the bootscript file. You can tell it where this is in the web panel (services/user). Edit in the web panel directly I suggest. On reboot, after 30 secs or so my httpd config was implemented.

#!/bin/sh

# Script to execute as the root user at boot time.
# You can loose your data or make the system inaccessible
# if using the wrong commands. You have been warned!
 
exec >> /var/log/user.log 2>&1

case "$1" in
    start)
        echo "Starting $0"
        ;;
    stop)
        echo "Stopping $0"
        ;;
esac

echo "A:192.168.2.0/255.255.255.0" >> /etc/httpd.conf


The replacement Firmware I used (Archived) - ONLY for DNS-320L revA. https://drive.google.com/file/d/15bBEyWhuXV1UIV_O1EGKclKxeYK93Gcv/view?usp=sharing
Sourceforge site: https://sourceforge.net/projects/alt-f/

Notes

-- By default, the web admin panel and samba are not available across subnets, (in the web you'll just get a "403 Forbidden" error). You have to use the overlay file system changes or modify the /etc/httpd.conf and /etc/samba/smb.conf files with the bootscript.

-- By default you need to create a user, and then you can log in with SSH with this user. The web password is admin (to begin with) so change it obviously. When in SSH you can su to root, with the password admin.. then change it with passwd straight away.