How to Install Bepasty on Debian Latest

Bepasty is a simple and robust Pastebin server designed to be used in organizations for sharing secret or sensitive information in a secure way. Here is a step-by-step guide to installing Bepasty on Debian Latest operating system.

Prerequisites

You will need to have the following in place before proceeding:

Step 1: Install Required Dependencies

First of all, you should update your Debian package repository to ensure that all dependencies are up to date. Run the following command:

sudo apt update

After that, you will need to install some dependencies for Bepasty. Run the following command to install them:

sudo apt install python3-dev libffi-dev libvirt-dev libjpeg-dev libssl-dev libcairo2-dev libpq-dev build-essential python3-pip

Step 2: Install Bepasty

Once the dependencies are installed, let's proceed with Bepasty installation. Here is how you can install it:

sudo pip3 install bepasty

Step 3: Configure Bepasty

Now, let's configure Bepasty server. Create a configuration file /etc/bepasty/server.conf with the following content:

[basic]
storages = file,browser

[storage_file]
backend = bepasty.storage.filesystem.FilesystemStorage
path = /var/lib/bepasty

[django]
secret_key = <random_string>
debug = high
allowed_hosts = localhost

[logging]
file = /var/log/bepasty.log
level = INFO

Step 4: Create Directories and Files

In this step, we will create directories and files required for Bepasty to work properly. Run the following commands:

sudo mkdir /etc/bepasty
sudo mkdir /var/lib/bepasty
sudo chown -R www-data:www-data /var/lib/bepasty
sudo touch /var/log/bepasty.log
sudo chown www-data:www-data /var/log/bepasty.log

Step 5: Start Bepasty Server

The last step is to start the Bepasty server. Run the following command:

sudo bepasty-server -b 0.0.0.0:8000 /etc/bepasty/server.conf

This will start the Bepasty server on port 8000 and bind it to all available network interfaces.

Step 6: Verify that Bepasty is Working

Finally, open your web browser and navigate to http://<your-server-ip>:8000/. You should see a Bepasty login page. Congratulations, you have successfully installed and configured Bepasty on Debian Latest operating system.

Conclusion

In this tutorial, you have learned to install and configure Bepasty, a simple and robust Pastebin server on Debian Latest operating system. You can now use this server to share secret or sensitive information in a secured manner.

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!