In this article, you will learn How to Setup Hastebin on Debian 10. Hastebin is the easiest way to store notes and snippets and a web application with basic Pastebin and Hacker-style capabilities. Just paste the text and save it. It is not even necessary to launch a browser because from Linux or OS X you can send a text to the server with a command from the console.

Tutorial Install and Setup Hastebin on Debian 10 Linux VPS

On Linux and macOS operating systems, you can easily install the Hastebin module and save the text to the server directly from the console. In this case, the URL is automatically copied to the clipboard. In the next section, we will introduce you to Hastebin. Then we will teach you how to install Hastebin on Debian 10. Finally, we will show you how to configure Hastebin. Stay with us by continuing this tutorial.

What is Hastebin?

Hastebin is a web service that helps you save and share text and code snippets. Hastebin is an open-source service that instructs you to create a new snippet, save the current snippet, and open the existing snippets for editing. You can use the Just Text command to edit the snippet as plain text. After saving the snippet, share it by giving the URL to other users.

Hastebin server software is based on Node.js. Using the web interface, you can add and manage snippets. You can use the Hastebin command-line tool to push the snippets to the server from the terminal. Hastebin is written in Ruby. Hastebin design’s objectives are its simplicity and another goal is to set it up and use it easily.

How to Setup Hastebin on Debian 10

After getting acquainted with Hastebin, we now intend to teach you how to set it up. You must first update your system with the following command:

sudo apt update

Now you need to install Snaps on Debian 10. Snaps run on all Linux distributions from a single build and are updated automatically and roll back gracefully. Enter the following command to enable Snapd:

sudo apt install snapd

At this point you should install the snap core by using the following command:

sudo snap install core

Finally, to install Haste Server, you must enter the following command:

sudo snap install haste-server --beta

How to Configure Hastebin on Debian

After installing Hastebin, now is the time to configure Hastebin on Debian. First, change the default port 7777 to 80. To change the port, you need to edit the config.js file with your desired text editor using the following command:

nano config.js

Then replace port 7777 with port 80:

"port": "7777",
"port": "80",

Then you should save the changes and close the text editor.

To manage Hastebin execution, it is best to install PM2.To do this just enter the following command:

npm install pm2 -g

Enter the following command to start Hastebin execution:

pm2 start server.js

In this step, you must save the initial configurations by running the following command:

pm2 save

Note: After executing the above command, the configuration file will be saved in the /root/.pm2/dump.pm2 directory.

Now to startup pm2 just enter the following command:

pm2 startup

Finally, you can easily use Hastebin by opening your browser and going to HTTP: // your-server-address.


Hastebin server software is based on Node.js, and you can easily deploy a sample of your host Hastebin on your server. While you can use the web interface to add and manage snippets, Hastebin’s dedicated command-line tool allows you to push snippets to the server from the terminal. In this article, we introduced Hastebin and mentioned its design goals. Also, in the continuation of the article, how to setup Hastebin on Debian 10 was taught. If you want to install Hastebin, just use this tutorial.

Rate this post