can I run apps on TrueNAS? What's the recommended way?

Jon Krueger

Dabbler
Joined
Jun 21, 2021
Messages
11
It would be handy for me to run a couple of small applications on the same box. It would reduce my power footprint, simplify system admin.

Is this possible? Would jails be the right way?

Thanks,

-- Jon
 

Jon Krueger

Dabbler
Joined
Jun 21, 2021
Messages
11
Seems like this how you do it:


And I want the files written by my jailed app to be available outside.
Seems like this is how you do it:


Am I headed in the right direction?

Thanks,

-- Jon
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Am I headed in the right direction?
Looks like it. Only disagreement I'd have would be to use SSH to access the server, and do your best to forget the "shell" button in the web GUI exists.
 

Jon Krueger

Dabbler
Joined
Jun 21, 2021
Messages
11
It works!!

I am now the proud owner of a TrueNAS Mini X. I found the web GUI a great help in setting up the jail and mount. My little app is now on the air. Thanks for your help!
 

Jessep

Patron
Joined
Aug 19, 2018
Messages
379

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Depends on what you want to do. If you want to be able to install arbitrary software in a Unix environment, a jail (and therefore CORE) may well be the better way to go. If you want (pretty much) point-and-click deployment of apps that are in a particular catalog, it's probably SCALE.
 

Jon Krueger

Dabbler
Joined
Jun 21, 2021
Messages
11
This is working astoundingly well and I want to know why.

The jail name is known to my router: was that mDNS?

The router DHCP gives it an IP different from the NAS: is that because the jail has its own MAC? How did the jail get its own MAC?
 

Jon Krueger

Dabbler
Joined
Jun 21, 2021
Messages
11
This in turn lets me ssh to the jail if I choose: the setup was straightforward and well documented and easy to find:


The requirement to do sshd_enable="YES" was mentioned by service start. Exactly the kind of hint that helps.

I then recalled I had another small service that needed a separate IP. I put it in the jail and it just worked.

Then from the above I realized it could use the jail name instead of IP. That just worked.

Outstanding.
 
Joined
Jul 10, 2016
Messages
521
Jails are pretty cool! When you use the VNET option, the jail creates a virtual network stack. Read up on man vnet for more information.
 
Top