Uguu is a file-sharing and URL shortening service. In this tutorial, we will cover the steps to install Uguu on Debian.
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
Next, clone the Uguu repository from GitHub using the following commands:
git clone https://github.com/nokonoko/Uguu.git
cd Uguu
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
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.
Migrate the database to create the required tables:
bundle exec rake db:migrate RAILS_ENV=production
Start the Puma application server using the following command:
bin/puma -C config/puma.rb
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
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!