Month: June 2020

Error in LMDE “cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries nor crypto modules” (SOLVED)

When updating the system, if it was necessary to rebuild initramfs (usually necessary after every Linux kernel update), a warning appeared in LMDE and other Linux distributions. This is not a critical warning and not an error – in fact, this is information about incorrect system configuration. Example of this notification:

cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
    nor crypto modules. If that's on purpose, you may want to uninstall the
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
    integration and avoid this warning.

The message in the screenshot says, “that the initramfs image may not contain cryptsetup executables, nor crypto modules. If this is intended, then you can remove the cryptsetup-initramfs package to disable the integration of cryptsetup and initramfs and so that this warning disappears. "

Now cryptsetup and its dependencies are added to the initramfs image only when a device is found that needs to be unlocked at the initramfs stage.

Depending on your plans, there are two options:

  • if you don’t know if in the future you will create encrypted partitions or partitions that should be unlocked at the initramfs stage, then just do nothing and do not change – ignore this informational message, it is harmless
  • if you definitely won’t create encrypted partitions, then delete cryptsetup-initramfs package

So, if you would not create encrypted partitions and do not plan to do this, then you can remove the cryptsetup-initramfs package:

sudo apt remove cryptsetup-initramfs
sudo apt autoremove

By the way, you can reinstall the cryptsetup-initramfs package later if you need it.

How to configure Linux LMDE login without entering a password

LMDE is the Linux Mint Debian Edition. As with all Linux Mint, during installation, you can select the option “automatic login”, that is, login to Linux without entering a user and password.

If during installation you did not select this option, and then changed your mind and decided to configure login without a password in LMDE, then this instruction will step-by-step explain how to enable automatic login to the system. If you are the only user of your computer, then automatic login (as is done on Windows) will make using the OS a little more convenient.

LMDE uses the LightDM display manager. To automatically enter LightDM, open the configuration text file /etc/lightdm/lightdm.conf:

sudo xed /etc/lightdm/lightdm.conf

Find the [Seat:*] section there, and in this section two commented lines:


Uncomment them (remove the # character at the beginning of the line), and after autologin-user, enter the name of the user to be automatically logged in, for example, if this is the root user, then the lines look like this:


If you don’t know or forgot your Linux system username, you can find out by executing the command in the terminal:


If the lightdm.conf file is completely absent, then create it:

sudo xed /etc/lightdm/lightdm.conf

Copy to this file:


Pay attention to the autologin-user directive and the username that comes after it is mial. Of course, you need to replace this name with your own system username.

Now open the file /etc/pam.d/lightdm-autologin:

sudo xed /etc/pam.d/lightdm-autologin

Find the line there:

auth      required user != root quiet_success

and replace it with:

auth      required user != anything quiet_success

Reboot – after this, an automatic login should be performed without entering a password.

If it doesn’t work, to check whether the settings from the configuration file lightdm.conf are applied, run the command:

/usr/sbin/lightdm --show-config

How to install VirtualBox Guest Additions in Linux LMDE

LMDE is the Linux Mint Debian Edition, i.e. Linux Mint based on Debian.

VirtualBox Guest Additions are kernel modules (drivers) that are needed if you run Linux LMDE in a VirtualBox virtual machine.

Thanks to guest additions it is possible:

  • enable a shared clipboard between the real operating system and the guest OS
  • enable file drag and drop between host and guest OS
  • expand the guest OS screen to a larger size or use the guest OS in full screen mode, as well as enable display integration.

Guest Additions are not available in the standard Linux LMDE repositories (Linux Mint Debian Edition).

There are two installation options:

  • install Guest Additions from the disk that comes with VirtualBox
  • add a third-party repository

I prefer the first option, so let’s consider it.

Start by fully upgrading and rebooting the system:

sudo apt update && sudo apt full-upgrade -y

Install the dependencies needed to compile the kernel module:

sudo apt install build-essential module-assistant

Configure the system to build kernel modules:

sudo m-a prepare

Connect the disk with Guest Add-ons, for this, in the VirtualBox menu of the virtual machine, select «Devices» → «Insert Guest Additions CD image»:

Return to the system again and do type in console:

cd /media/*/VBox*
sudo sh

Wait for the installation to finish, pay attention that everything goes without errors.

After the installation is complete, reboot again for the changes to take effect:


In the VirtualBox menu, turn on “Shared Clipboard” and other functions that you need: