---
title: "How to Install Wastebin on Debian Latest - CloudBlast"
description: "How to Install Wastebin on Debian Latest"
url: "https://cloudblast.io/article/How-to-Install-Wastebin-on-Debian-Latest"
language: "en-US"
---

BLOG

# How to Install Wastebin on Debian Latest

5€ FREE BALANCE when you register

Register to cloudblast and get 5€ cloud credit to deploy your VPS's

[Claim Free 5€](https://console.cloudblast.io/auth/login?ref=2)

-   [Back](https://cloudblast.io/)
-   [All Articles](https://cloudblast.io/blog)

2024-09-04

### How to Install Wastebin on Debian Latest

tutorials

[Add as a preferred source on Google](https://www.google.com/preferences/source?q=cloudblast.io)

Wastebin is an open-source paste tool, allowing quick and easy text sharing. It is a great alternative to pastebin or gist, with the added convenience of being self-hosted. This tutorial will guide you through the installation of Wastebin on Debian Latest.

**Prerequisites**

-   A server running the latest version of Debian
-   Root access to the server

**Step 1: Install Dependencies**

Before we can install Wastebin, we need to install a few dependencies. Open the Terminal and enter the following command:

> sudo apt-get install nodejs npm nginx sqlite3

This will install Node.js, NPM, Nginx, and SQLite3.

**Step 2: Clone Wastebin**

Next, we need to clone the Wastebin repository to our server:

> git clone https://github.com/matze/wastebin.git

This will create a directory called 'wastebin' in your home directory.

**Step 3: Configure Nginx**

Now we need to configure our Nginx server to serve the Wastebin application. Open the default Nginx configuration file in a text editor:

> sudo nano /etc/nginx/sites-available/default

In that file, add the following configuration above the default server block:

> server {
> listen 80;
> server\_name mywastebin.example.com;
> return 301 https://mywastebin.example.com$request\_uri;
> }
> server {
> listen 443 ssl;
> server\_name mywastebin.example.com;
> ssl\_certificate /path/to/your/cert.pem;
> ssl\_certificate\_key /path/to/your/key.pem;
> location / {
> proxy\_pass http://localhost:3000/;
> proxy\_http\_version 1.1;
> proxy\_set\_header Upgrade $http\_upgrade;
> proxy\_set\_header Connection 'upgrade';
> proxy\_set\_header Host $host;
> proxy\_cache\_bypass $http\_upgrade;
> }
> }

Replace `mywastebin.example.com` with your own domain name. You should also point your domain to your server's IP address.

**Step 4: Build and Run Wastebin**

Now we need to build and run the Wastebin application. First, navigate to the `wastebin` directory:

> cd wastebin

Next, install the necessary npm modules:

> npm install

Now we can build the application:

> npm run build

And finally, start the application:

> npm start

**Step 5: Create an Admin Account**

In order to use Wastebin, you need an admin account. To create one, navigate to the `/register` page on your Wastebin instance. Fill out the registration form and submit it. You should now have an admin account that you can use to create and manage pastes.

Congratulations! You have successfully installed and configured Wastebin on your Debian Latest server.

Share

## Continue Reading

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
