Install RabbitMQ on Ubuntu/Debian

To install rabbitmq on Ubuntu/Debian, run

To start RabbitMQ server, run

Debian 10

How to upgrade Debian 9 to Debian 10

To upgrade Debian 9 to Debian 10, first make sure your system is uptodate.

Edit file /etc/apt/sources.list. Find all occurance of “stretch” and replace it with “buster”.

Or use following

Now update the system

run dist-upgrade

During the upgrade, you will be asked to replace some of the configuration files. If this is a fresh server, you can always replace these files with newer version. If your server have these files modified, you should be careful as replacing these files will lose the changes you made.

Debian 10 upgrade

Reboot the server.

After reboot, you can verify server is running Debian 10 with commands

Debian 10

Installing r1soft server backup agent on Debian/Ubuntu

To install r1soft server backup agent on Ubuntu/Debian, add repository

Install agent

Install kernal headers

Install kernal modules

Verify backup agent works with

Start backup agent

Now you can add the server to R1Soft Backup Manager.

debian linux

Upgrade Debian 8 Jessie To Debian 9 Stretch

debian linux

Upgrading server on a remote location is not safe unless you have KVM access. I did many Debian 8 to Debian 9 upgrade on remote server with out probem. On one server, network card name chaned from eth0 to new enp4s0 format. I had to access the server using KVM and fix network configuration by editing /etc/network/interfaces

First you need to upgrade all software on your server to latest Debian 8

Now replace content of /etc/apt/sources.list file with following

Add

Update the software again with

It can take some time for the upgrade to finish. Once update complete, you can check with lsb_release -a command, you will see

debian upgrade

Remove unused packages with command

At this stage, server stil use old debian 8 kernal.

To boot to new Debian 9 kernal, reboot the server with

After reboot, you will see new kernal.

Now Debian 10 is available. See How to upgrade Debian 9 to Debian 10

Debian 8 jessie repo error

On a Debian 8 server, when running apt update, got following error

To fix it, run

Add following content to the file

Create

Add

apt – Problem unlinking the file auxfiles

When i get apt update on a Debian 9 server, i get following error

The problem is fixed by deleting

Install PowerShell in Debian 9

To install Microsoft PowerShell in Debian 9, run

Install GPG keys

Add repository

Install powershell

To start powershell, run

apt-key keyserver receive failed: No dirmngr

When running apt-key command, i get following error.

To fix this, run

apt install dirmngr

Install MongoDB 4 on Debian 9

You can see detailed instruction on how to install on MongoDB web site.

First add key

For Debian 8, run

For Debian 9, run

Now install mongoDB with

Once installed, you can check version with

Enable MongoDB start on boot

To start/stop mongodb