How to Install Sharry on Fedora Server Latest

Sharry is a simple and lightweight file sharing server written in Scala. In this tutorial, we will learn how to install Sharry from GitHub on a Fedora Server Latest.

Prerequisites

Before installing Sharry, you need to have the following:

Step 1: Install Dependencies

The first step is to install the dependencies that Sharry requires. Open the terminal and run the following command:

sudo dnf install java-11-openjdk-devel git -y

This command installs Java 11 OpenJDK and Git.

Step 2: Clone the Repository

Next, clone the Sharry repository from GitHub to your Fedora server using the following command:

sudo git clone https://github.com/eikek/sharry.git /opt/sharry

Step 3: Configure Sharry

Navigate to the Sharry directory using the following command:

cd /opt/sharry

Copy the example configuration file to the configuration directory using the following command:

sudo cp conf/example.conf /etc/sharry/application.conf

Now, edit the configuration file using your preferred text editor:

sudo vi /etc/sharry/application.conf

Update the configuration file with your preferences. For example, you can set the HTTP server port and the data directory location.

sharry {
  server {
    http {
      port = 8080
    }
  }
  data {
    directory = "/var/sharry"
  }
}

Step 4: Build Sharry

In this step, you will build Sharry using the SBT build tool. Switch to the Sharry directory and run the following command:

sbt clean stage

This command cleans the previous build and builds a new distribution for Sharry.

Step 5: Run Sharry

To start Sharry, navigate to the target directory and run the following command:

cd target/universal/stage/bin
sudo ./sharry

You should see the following output:

[info] Main - Starting Sharry Server
[info] a.e.s.Slf4jLogger - Slf4jLogger started
[info] o.s.b.SpringApplication - Starting application...
...
[info] o.s.b.a.e.web.EndpointLinksResolver - Exposing 3 endpoint(s) beneath base path '/actuator'

Step 6: Access Sharry

Once Sharry is running, you can access it in your web browser at the following URL:

http://your_server_ip:8080

You should see the Sharry login page.

Conclusion

In this tutorial, we have learned how to install Sharry on a Fedora Server Latest. Sharry is a simple and lightweight file sharing server that can be used to share files securely.

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!