PurritoBin is a simple, self-hosted, anti-social pastebin. It's open-source, and anyone can use it. This tutorial will guide you through the installation process of PurritoBin on NixOS Latest.
Open the Terminal on your NixOS Latest machine.
Clone the PurritoBin repository from GitHub:
git clone https://github.com/PurritoBin/PurritoBin.git
This will create a new PurritoBin
directory containing the project files.
Navigate to the cloned repository:
cd PurritoBin
Next, you need to install the required dependencies. In NixOS, dependencies are managed using the default.nix
file, so we'll use that:
nix-shell
This will start a new shell session with the required dependencies installed.
Copy the sample configuration file to config.toml
:
cp config.sample.toml config.toml
Edit the configuration file as needed. You can set the port number, the URL, and various other options.
Finally, start the PurritoBin server:
cargo run --release
This will start the server on the port you've specified in the configuration file.
Visit the URL of your PurritoBin instance in your web browser. It should be accessible at http://localhost:<port>
.
Congratulations! You've successfully installed PurritoBin on NixOS Latest.
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!