How to Install Stash on Debian Latest
Stash is a privacy focused cloud storage service that empowers users to store and share files securely. In this tutorial, we will explain step by step how to install Stash on Debian Latest.
Prerequisites
Before proceeding with the installation of Stash, ensure that you have the following prerequisites:
- A Debian Latest server or VPS with SSH access
- A sudo user account
Step 1: Update the System
The first step in installing Stash is to update the system. You can do this by running the following command:
sudo apt update && sudo apt upgrade -y
Step 2: Install Dependencies
Stash requires a few dependencies to function properly. To install these dependencies, run the following command:
sudo apt install -y curl wget unzip supervisor
Step 3: Download and Install Stash
Now that we have installed the required dependencies, it's time to download and install Stash. Run the following commands to download and extract the latest version of Stash:
mkdir /opt/stash
cd /opt/stash
wget https://stashapp.cc/downloads/latest/stash-linux-x64.zip
unzip stash-linux-x64.zip
Step 4: Configure and Run Stash
Next, we will create a configuration file for Stash and start the service using Supervisor. Run the following commands to create the configuration file and start the service:
echo "[program:stash]
command=/opt/stash/stash
directory=/opt/stash/
autostart=true
autorestart=true
startretries=3
stderr_logfile=/var/log/supervisor/stash.err.log
stdout_logfile=/var/log/supervisor/stash.out.log" | sudo tee /etc/supervisor/conf.d/stash.conf
sudo supervisorctl reread
sudo supervisorctl update
sudo systemctl enable supervisor.service
sudo systemctl start supervisor.service
sudo supervisorctl start stash
Step 5: Configure Firewall
By default, Debian has firewall enabled. We need to allow Stash app to work on debian, we can open the firewall using the following command:
sudo ufw allow 8123
Step 6: Access Stash Web Interface
Finally, open your web browser and navigate to http://YOUR_SERVER_IP_ADDRESS:8123. You should be prompted to create a new admin account.
Congratulations, you have successfully installed and configured Stash on Debian Latest! You can now start using Stash to store and share files securely.