How to Install Filestash on Alpine Linux Latest

These instructions will guide you through the process of installing Filestash on Alpine Linux Latest.

Prerequisites

Steps

  1. Update the package list and upgrade the installed packages to their latest versions:

    sudo apk update && sudo apk upgrade
    
  2. Install the required dependencies:

    sudo apk add bash curl git libc6-compat libgcc libintl nginx nodejs openssl python3 python3-dev tar unzip
    
  3. Create a new user for running Filestash:

    sudo adduser -D filestash
    
  4. Switch to the new user:

    su - filestash
    
  5. Clone the Filestash repository:

    git clone https://github.com/mickael-kerjean/filestash.git
    
  6. Navigate to the Filestash directory:

    cd filestash
    
  7. Install the required Node modules:

    npm install --only=prod
    
  8. Generate a self-signed SSL certificate:

    openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem
    
  9. Start the server:

    npm start
    
  10. Open 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).

  11. Create an admin user and set up Filestash as desired.

That's it! You have now installed Filestash on Alpine Linux Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!