How to Install Uguu on Debian Latest

Uguu is a file-sharing and URL shortening service. In this tutorial, we will cover the steps to install Uguu on Debian.

Prerequisites

Step 1: Install Required Dependencies

The first step is to install the required dependencies for Uguu. Run the following command to install them:

sudo apt update
sudo apt install build-essential git imagemagick ffmpeg libmagic-dev libsqlite3-dev ruby ruby-dev

Step 2: Clone Uguu Repository

Next, clone the Uguu repository from GitHub using the following commands:

git clone https://github.com/nokonoko/Uguu.git
cd Uguu

Step 3: Install Bundler and Dependencies

Uguu uses Ruby on Rails, and we need to install Bundler and other dependencies. Run the following command to install Bundler:

gem install bundler

Next, install the required gems using Bundler:

bundle install

Step 4: Configure Uguu

Create a new database.yml:

cp config/database.yml.example config/database.yml

Change the password in the config/database.yml file to a strong one.

Generate your own secret_key_base by running:

bundle exec rake secret

Copy the generated output and put it in the config/secrets.yml file, replacing the placeholder.

Step 5: Migrate the Database

Migrate the database to create the required tables:

bundle exec rake db:migrate RAILS_ENV=production

Step 6: Start the Application Server

Start the Puma application server using the following command:

bin/puma -C config/puma.rb

Step 7: Start the Application on Boot

To start the Uguu application automatically on boot, create a systemd service file:

sudo nano /etc/systemd/system/uguu.service

Copy and paste the following content into the file:

[Unit]
Description=Uguu File Uploader
After=network.target

[Service]
User=<your_username>
Group=www-data
WorkingDirectory=/path/to/Uguu
ExecStart=/bin/bash -lc 'bin/puma -C config/puma.rb'
TimeoutSec=30
RestartSec=30
Restart=always

[Install]
WantedBy=multi-user.target

Note: Replace <your_username> with your actual username, and /path/to/Uguu with the path to the cloned Uguu directory.

Save and close the file.

Reload systemd and start the Uguu service:

sudo systemctl daemon-reload
sudo systemctl enable uguu
sudo systemctl start uguu

Check the status using:

sudo systemctl status uguu

Conclusion

You have successfully installed Uguu on Debian latest! You can now upload files and use Uguu.

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!