How to Install Sharry on Linux Mint
Sharry is an open-source web-based file sharing platform that allows users to securely upload and share files. In this tutorial, we'll provide step-by-step instructions on how to install Sharry on Linux Mint.
Prerequisites
Before proceeding with the installation, you’ll need:
- A server with Linux Mint installed and configured with a non-root user with sudo privileges.
- A web server installed on the server. We'll be using Apache in this tutorial.
- Java SE Runtime Environment installed on your system.
Install Sharry
- Install Git by running the following commands in the terminal:
sudo apt update
sudo apt install git
- Clone the Sharry repository from GitHub:
cd /opt
sudo git clone https://github.com/eikek/sharry.git
- Enter the Sharry directory and run the following command to build the application:
cd sharry
sudo ./sbt.sh universal:packageZipTarball
- Extract the Sharry package to the /opt directory:
sudo tar -zxvf target/universal/*.tgz -C /opt/
sudo mv /opt/sharry-* /opt/sharry
- Create a new user to run Sharry:
sudo adduser --system sharry
- Set permissions for the Sharry directory:
sudo chown -R sharry:sharry /opt/sharry
sudo chmod -R 755 /opt/sharry
- Create a new systemd service file for Sharry by running the following command:
sudo nano /lib/systemd/system/sharry.service
- Add the following lines to the file:
[Unit]
Description=Sharry file sharing
[Service]
User=sharry
WorkingDirectory=/opt/sharry
ExecStart=/opt/sharry/bin/sharry
Restart=on-failure
[Install]
WantedBy=multi-user.target
Save and close the file.
Enable and start the Sharry service:
sudo systemctl daemon-reload
sudo systemctl enable sharry.service
sudo systemctl start sharry.service
- Open up your web browser and type in your server's IP address followed by :8080 (i.e., http://your_server_ip:8080). You should now be able to access the Sharry web interface.
Congratulations! You have successfully installed Sharry on your Linux Mint server. Now you can securely upload and share files with ease.