Jump to content
Mathy

TNFS and NAS?

Recommended Posts

3 minutes ago, moonlight_mile said:

Gotcha. I think what the issue is that the data folder is pointing within the container. When I get some ambition it will download docker and try to change the image to allow the data to point outside the container. 
 

 Thanks for the help. 

DUDE, IT'S A VOLUME MOUNT!

 

All you have to do is set the volume mount to point to wherever you need it to point.

 

-Thom

 

Share this post


Link to post
Share on other sites
27 minutes ago, tschak909 said:

DUDE, IT'S A VOLUME MOUNT!

 

All you have to do is set the volume mount to point to wherever you need it to point.

 

-Thom

 

I want to apologize. I had the volumes backwards. I am really sorry. I was basing the setup to the pihole setup I did and it was the same but i got confused with the mount point.


I got it running. Thanks again for your help and your contribution of this container. 
 

craig

Share this post


Link to post
Share on other sites

Looking to set a TNFS server on my NAS, runs on Xigmanas (formerly Nas4free), based on Freebsd 12.  Running on an AMD FX 8350 at 4Ghz, so x64 platform.  I can SSH into my NAS, and I can fumble my way through Unix.  Anyone give me some pointers?

Edited by wildstar87
Putting cpu details in

Share this post


Link to post
Share on other sites
On 4/24/2021 at 2:19 AM, wildstar87 said:

Looking to set a TNFS server on my NAS, runs on Xigmanas (formerly Nas4free), based on Freebsd 12.  Running on an AMD FX 8350 at 4Ghz, so x64 platform.  I can SSH into my NAS, and I can fumble my way through Unix.  Anyone give me some pointers?

tschak909 already explained building on Linux, building for a *BSD is almost the same.

 

Grab the source code (https://github.com/FujiNetWIFI/spectranet), put it on your NAS device, and then run:

make OS=BSD

in the tnfs/tnfsd/ directory inside of the downloaded spectranet repo.

 

Assuming you have all of the correct programs installed (compiler, linker, etc.) on your NAS, it will build a binary called tnfsd inside of the bin/ directory, which you can then execute on your NAS in order to serve files.

 

You can use the Python script tnfs_client.py to test your new server, assuming you have Python installed on the machine where you are testing from.  You could also use your FujiNet to test as well.

Share this post


Link to post
Share on other sites
41 minutes ago, spicyjack said:

tschak909 already explained building on Linux, building for a *BSD is almost the same.

 

Grab the source code (https://github.com/FujiNetWIFI/spectranet), put it on your NAS device, and then run:

make OS=BSD

in the tnfs/tnfsd/ directory inside of the downloaded spectranet repo.

 

Assuming you have all of the correct programs installed (compiler, linker, etc.) on your NAS, it will build a binary called tnfsd inside of the bin/ directory, which you can then execute on your NAS in order to serve files.

 

You can use the Python script tnfs_client.py to test your new server, assuming you have Python installed on the machine where you are testing from.  You could also use your FujiNet to test as well.

Thanks, I'll give this a try.  I don't think that stuff is installed however, but I will check.  I know that they try to strip out everything that isn't needed, so they can run off a USB drive, they don't even have man pages.  I might have to try installing FreeBSD on another machine to build.

Share this post


Link to post
Share on other sites
On 12/2/2020 at 4:14 PM, tschak909 said:

Yup, I built that container.

-Thom

 

Hi, I have a QNAP NAS and just recieved my FujiNet. Are you saying its possible to connect the two?  If so, is there a REALLY SIMPLE set by step guide please? 

Many thanks. 

Share this post


Link to post
Share on other sites

Does nobody understand that it's next to impossible to make step by step guides for every concievable NAS, especially since I do not have all these different bits of hardware? You'll need to do some of your own digging.

 

With that said, you'll want to use the container at docker hub. There are two versions for x86-64 and arm respectively:

https://hub.docker.com/r/tschak909/tnfsd-x64

https://hub.docker.com/r/tschak909/tnfsd-armv7l

 

The container mounts a volume at /data. You'll want to point that to whatever you wish to expose over tnfs.

The container also exposes UDP port 16384.

The dockerfile is shown here: https://hub.docker.com/layers/tschak909/tnfsd-x64/latest/images/sha256-d24f6d6f7c27c0f0e4095cb9e770c56066313bc0e3cc51eb02b8b03eb87b6a21?context=explore

 

 

-Thom 

 

Edited by tschak909
  • Like 2

Share this post


Link to post
Share on other sites

BTW. I got TNFS server running on Synology NAS but not all is working yet. I'm in process of building synology package but there is not very well documented how to do all bits. I think that I'm missing some permissions but when I start process manually as root, all things works. I'm currently out of home and will back on the end of august so will re-start work at this time.

 

[email protected]:/var/packages/tnfsd/target/bin# ./tnfsd /volume2/ISO/tnfs &
[email protected]:/var/packages/tnfsd/target/bin# Starting tnfsd version 20.1115.2 using root directory "/volume2/ISO/tnfs"
[email protected]:/var/packages/tnfsd/target/bin# netstat -ulpn|grep tnfs
udp        0      0 0.0.0.0:16384           0.0.0.0:*                           30025/./tnfsd       
[email protected]:/var/packages/tnfsd/target/bin# ps aux|grep tnfs
root     30025  0.0  0.0   1588   388 pts/6    S    16:23   0:00 ./tnfsd /volume2/ISO/tnfs


 

Edited by monsoft
  • Like 3

Share this post


Link to post
Share on other sites

A BIG thank you to @tschak909 !!  I successfully set up the TNFS server on my NAS and it is working great.  My son, who is a computer programmer (who started on an Atari 400 35 years ago), helped me with the set-up.  I used the Docker container file at https://hub.docker.com/r/tschak909/tnfsd-x64 on a Terra-Master F2-220 NAS.  Thanks to @tschak909 for the FujiNet and the Docker container.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
On 12/17/2020 at 7:16 PM, tuf said:

For anyone wanting to run tnfsd on an ATOM based Synology (in my case the 412+) I've attached the tnfsd binary.  Stick it in your /usr/local/bin on the NAS and you should be good to go.  I compiled this in docker on an Ubuntu image using OS=LINUX.

Howdy, @tuf.

 

You wouldn't happen to have a compiled 1.2 (current) version of tfnsd for Atom? My Synology doesn't support Docker, so I cannot compile it myself easily.

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, mnemo said:

Howdy, @tuf.

 

You wouldn't happen to have a compiled 1.2 (current) version of tfnsd for Atom? My Synology doesn't support Docker, so I cannot compile it myself easily.

 

Oh there's a new version?  I can give it a shot.  Stay tuned, might take me a minute - I'll try when I get home from work tonight.

 

 

Edited by tuf

Share this post


Link to post
Share on other sites
Posted (edited)
7 minutes ago, tuf said:

 

Oh there's a new version?  I can give it a shot.  Stay tuned, might take me a minute - I'll try when I get home from work tonight.

That would be great! Take your time. 🙂

 

Current version should be here: https://github.com/spectrumero/spectranet/tree/master/tnfs/tnfsd

 

EDIT: There's also optional functionality that can be enabled with define "TNFS_DIR_EXT". I don't think it's used by FujiNet.

Edited by mnemo

Share this post


Link to post
Share on other sites
14 hours ago, mnemo said:

That would be great! Take your time. 🙂

 

Current version should be here: https://github.com/spectrumero/spectranet/tree/master/tnfs/tnfsd

 

EDIT: There's also optional functionality that can be enabled with define "TNFS_DIR_EXT". I don't think it's used by FujiNet.

 

Here you go.  There's an .exe that gets produced as well, not sure what that's for but I included it.  Let me know if it works!

 

tnfsd-3-17-22.zip

Share this post


Link to post
Share on other sites
32 minutes ago, tuf said:

Here you go.  There's an .exe that gets produced as well, not sure what that's for but I included it.  Let me know if it works!

Thank you! Sadly, the Linux binary doesn't work on my Synology. I guess it's for another platform?

 

The .exe is for Windows and works.

/bin/tnfsd: cannot execute binary file: Exec format error

I can find the string "/lib64/ld-linux-x86-64.so.2" in the binary which refers to 64-bit. But the Intel Atom is 32-bit.

 

/proc/cpuinfo says:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU CE5335   @ 1.60GHz
stepping        : 2
microcode       : 0x205
cpu MHz         : 1600.126
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...