Setting up TNFS on a Raspberry Pi - FujiNetWIFI/fujinet-firmware GitHub Wiki
Easy
Steve Boswell (@a8bit) has produced a pre-made Raspberry Pi image, which automatically sets up a TNFS server. Simply follow the instructions here: https://atari8bit.net/projects/software/fujinet-tnfs-server-image/
Advanced
- Install raspbian lite
- Run raspi-config
- Set your hostname.
- Set gpu memory to 16MB
- Enable SSH if wanted
- Set locale/timezone
- Enable/set WiFi in raspi-config if needed.
- exit raspi-config
- sudo -i
- apt-get install git
- apt-get install samba samba-common-bin
- git clone https://github.com/FujiNetWIFI/spectranet.git
- cd spectranet
- cd tnfs/tnfsd
- make OS=LINUX DEBUG=Y
- sudo cp bin/tnfsd /usr/local/sbin
- useradd -m tnfs
- mkdir -p /tnfs
- chown tnfs:tnfs /tnfs
- create file /etc/systemd/system/tnfsd.service and add into it:
[Unit]
Description=TNFS Server
After=remote-fs.target
After=syslog.target
[Service]
User=tnfs
Group=tnfs
ExecStart=/usr/local/sbin/tnfsd /tnfs
[Install]
WantedBy=multi-user.target
- edit /etc/samba/smb.conf and add to bottom:
[tnfs]
path = /tnfs
writeable = Yes
create mask = 0777
directory mask = 0777
public = yes
force user = tnfs
force group = tnfs
- systemctl daemon-reload
- systemctl enable tnfsd
- systemctl start tnfsd
- systemctl restart smbd
- verify that you can access the share on your tnfs from the desired hostname