Installing Filestash on Debian 10 (Buster)
Filestash is a modern web client for SFTP, S3, FTP, WebDAV, Git… but one of the main obstacles you may encounter is that the official documentation only covers installation via docker. As I didn’t want to use docker, I created a script to install Filestash directly on Debian and make it run as a service with systemctl.
Requirements
We shall use a clean Debian installation.
We will need to install Golang 1.13 :
root@localhost:~# curl --resolve golang.org -sL https://golang.org/dl/go1.13.15.src.tar.gz | tar xzf - && mv go /usr/local
Depending of the port (default being 8334) we have to allow it by the firewall. There are several ways to do this, but here is what we should do with UFW:
root@localhost:~# ufw allow 8334
Installation
We will just need to run the following command :
root@localhost:~# curl -s https://gist.githubusercontent.com/sehnryr/5970bd6665097f652f34e7161ffdadfc/raw/ad93d5764efe2883d7a54e9c3a73516a24627329/filestash-debian-script.sh | sh
The installation of all the components will take 10 minutes. For more detail about the script check out my pull request here : https://github.com/mickael-kerjean/filestash/pull/415.
Starting Filestash
Once the installation is done, we can start Filestash with systemctl :
root@localhost:~# systemctl start filestash
We can now access Filestash on port 8334. From now on, we shall refer to the official documentation to configure Filestash : https://www.filestash.app/docs/configuration/.