How to Install Filestash on Alpine Linux Latest
These instructions will guide you through the process of installing Filestash on Alpine Linux Latest.
Prerequisites
- A computer running Alpine Linux Latest
- Root privileges or a user with sudo access
Steps
Update the package list and upgrade the installed packages to their latest versions:
sudo apk update && sudo apk upgradeInstall the required dependencies:
sudo apk add bash curl git libc6-compat libgcc libintl nginx nodejs openssl python3 python3-dev tar unzipCreate a new user for running Filestash:
sudo adduser -D filestashSwitch to the new user:
su - filestashClone the Filestash repository:
git clone https://github.com/mickael-kerjean/filestash.gitNavigate to the Filestash directory:
cd filestashInstall the required Node modules:
npm install --only=prodGenerate a self-signed SSL certificate:
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pemStart the server:
npm startOpen your web browser and navigate to
https://localhost:8334. You will be prompted with a warning that the connection is not secure; this is expected because we generated a self-signed SSL certificate in step 8. Proceed to the website (unsafe).Create an admin user and set up Filestash as desired.
That's it! You have now installed Filestash on Alpine Linux Latest.