mirror of https://github.com/stashapp/stash.git
Page:
Installing on FreeNAS TrueNAS
Pages
API
Advanced Configuration Options
Authentication Required When Accessing Stash From the Internet
Backup & Restore Database
Custom CSS snippets
Exclude file configuration
FAQ
Galleries
Home
Importing via CSV using gql iterate
Installing on FreeNAS TrueNAS
Installing on Synology NAS
JSON Specification
Manually Editing the Stash Sqlite3 database
Modern Dark
Plugins & Scripts
Reverse proxy
Roadmap
Scrapers
Scraping configuration
Theme Black Hole
Theme Light Pulsar
Theme Night
Theme Plex
Theme Pulsar
Themes
Troubleshooting video playback issues
Unraid Support
1
Installing on FreeNAS TrueNAS
WithoutPants edited this page 2021-06-04 12:32:38 +10:00
Table of Contents
Caveats and assumptions
- the method documented here has only been given cursory testing, so there may be compatibility problems
- this method assumes that stash will be run within a previously created iocage jail - the process to create and configure the jail is not included here
- if the jail is in NAT mode, ensure that port 9999 is forwarded to your TrueNAS host
- the alternative to this method is to compile from source, which is a more involved process and not documented here
Linux compatibility
In order for the stash-linux
binary to work in a FreeBSD system, Linux compatibility must be enabled both in the system and the jail. To enable Linux compatibility:
- navigate to
System -> Tunables
in the TrueNAS Web UI - click
Add
and enter the following:
- Variable:
linux_enable
- Value:
YES
- Type:
rc.conf
- Click submit.
- In a shell in your iocage jail, edit
/etc/rc.conf
to add:
enable_linux="YES"
- Reboot the system.
ffmpeg/ffprobe
ffmpeg
can be downloaded using pkg install ffmpeg
. For some reason, stash is unable to find the ffmpeg
and ffprobe
binaries even after installing them. To work around this, create symbolic links to the binaries in $HOME/.stash
:
ln -s /usr/local/bin/ffmpeg ~/.stash/ffmpeg
ln -s /usr/local/bin/ffprobe ~/.stash/ffprobe
Downloading and running
Download stash-linux
for your chosen release. Make sure to enable execution with: chmod +x stash-linux
Run with: ./stash-linux
(assuming the binary is in the current directory)