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


Read More…

Install PowerShell in Debian 9

To install Microsoft PowerShell in Debian 9, run

Install GPG keys

Add repository

Install powershell

To start powershell, run


Read More…

apt-key keyserver receive failed: No dirmngr

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

To fix this, run apt install dirmngr […]

Read More…

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


Read More…

Install OpenLiteSpeed on Ubuntu/Debian

OpenLiteSpeed Change Admin Password

OpenLiteSpeed ia an Open Source version of LiteSpeed Web Server. To install OpenLiteSpeed, add repository by running

Now you have openlitespeed packages available on your server. Here is packages available on a Debian 9 server. To install OpenLiteSpeed, run

OpenLiteSpeed will be installed in folder

You can start/stop OpenLiteSpeed using command


Read More…

Ubuntu find Dependencies for a package

To find dependencies for a package, run


In above example, when you install php7.2, it install “libapache2-mod-php7.2”, that will install Apache web server. I had a server with ngtinx, when i install php7.2 package, apache get installed. You can also use

To find reverse dependency, run


Read More…

gpg: failed to start the dirmngr

When i add a key with apt-key command, i get error [email protected]:~# apt-key adv –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E Executing: /tmp/apt-key-gpghome.0BP6Ro2t54/gpg.1.sh –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.0BP6Ro2t54/S.dirmngr’ failed: No such file or directory gpg: keyserver receive failed: No dirmngr [email protected]:~# To […]

Read More…

Install Remote Desktop in Debian/Ubuntu

To install and use Linux remote server as desktop, first install lite weight desktop environment like XFCE on your server.

Install XRDP

You need to create a user to be used for desktop.

Set password for the user

Now login as this user and create .xsession file.

Exit out of […]

Read More…