How to install Sharry on Ubuntu Server latest
Sharry is an open-source file-sharing server that allows users to securely and easily share files with others. In this tutorial, we'll walk you through the process of installing Sharry on Ubuntu Server latest.
Prerequisites
Before you start, you must have:
- A Ubuntu Server latest installation.
- A user account with sudo privileges.
- A network connection.
Installation Steps
Here are the steps to follow to install Sharry on your Ubuntu Server:
Step 1: Install Java Runtime Environment (JRE)
Sharry requires JRE to run on your Ubuntu Server. To install it, use the following command:
sudo apt install openjdk-11-jdk-headless
Verify that you have installed the JRE by running this command:
java -version
At this point, you should be able to see the Java version that you just installed.
Step 2: Download and extract Sharry
Now we need to download the latest version of Sharry from the GitHub repository. Here's how to do it:
- Navigate to the Sharry GitHub page (https://github.com/eikek/sharry).
- Click on the "Code" button and select "Download ZIP" to download the source code.
- Extract the downloaded file.
unzip sharry-master.zip
Step 3: Set up a Sharry service
You can run Sharry in standalone mode or as a service. In this tutorial, we'll set up Sharry as a service.
- Create a new user, named
sharry.
sudo adduser sharry
- Copy the extracted
sharry-masterfolder to the/optdirectory and change the ownership to thesharryuser.
sudo mv sharry-master /opt
sudo chown -R sharry:sharry /opt/sharry-master
- Install
systemdservice.
sudo systemctl enable /opt/sharry-master/init/sharry.service
sudo systemctl start sharry.service
Step 4: Check that the installation worked
To check whether the installation was successful, open http://localhost:8080 in your web browser. If it worked, you should see the Sharry login page.
Congratulations, you have successfully installed Sharry on your Ubuntu Server! You can now share files with others securely and easily.