Linux Mint: system hacks for advanced users

Back to the home page

Below you'll find some advanced hacks for Linux Mint, only meant for users with a lot of Linux experience. Not for beginners!

Enable the frozen Guest session (guest account) and customize it to your liking

1. Present by default in a cleanly installed Linux Mint 19: an idiot-proof guest account that automatically reverts to the default settings upon reboot (or upon logout).

This frozen guest account runs in kiosk mode (full confinement), so all changes in the guest session are being deleted at reboot or logout. It's a nice and handy feature of display manager LightDM.

Unfortunately its confinement currently isn't as complete as it should be, in combination with the systemd of Linux Mint 19 (which is a bug). So it has been disabled by default. If you're willing to take that incomplete confinement onto the bargain, you can enable it as follows:

a. Menu button - Administration - Login Window

Tab Users: Allow guest sessions: switch it on.

b. The guest session has default settings which might not suit you. You can adapt the default settings of the guest account by means of a trick: you can create a "skeleton" account with the right settings, and then configure the Guest session to copy those settings from the "skeleton" account.

This is how you do that:

c. Create a new user account, called Hospitality. You can do that by launching "Users and Groups" from the menu. This new account should be a normal user account with no special privileges.

Note: the "Full Name" of this new user should begin with a capital letter! Not the "Username", because user names have to be all lowercase. But in "Users and Groups" the new "Full Name" should begin with a capital letter, because otherwise a malfunction might occur.

Ensure that a password is required for logging into this new user account. It's best to set the same password as the one for the account of the system administrator (your personal account), because only the system administrator should be able to log into it.

d. Log out and then log into the new user account Hospitality, and configure it the way you want the Guest session to become. For example with a nicer wallpaper instead of Mint's default eternal night, and with different settings for Firefox and Libre Office.

In the next step you'll ensure that the Guest session will copy all of its settings from the new account Hospitality. You can change those settings later on as well: later changes will also land automatically in the Guest session.

e. Log out from the Hospitality account and log into the account of the system administrator (your personal account).

f. Launch a terminal window.
(You can launch a terminal window like this: *Click*)

g. Then in the terminal (use copy/paste to avoid typing errors):

sudo ln -v -s /home/hospitality /etc/guest-session/skel

Press Enter.

(note that hospitality doesn't begin with a capital letter in the command)

h. Log out from your account and log into the Guest session. Now it should have the same settings as the new user account Hospitality.

The only disadvantage is, that you now have an extra "useless" user account in the login window.

Do you want to make new changes later on? That's simple: later changes in the Hospitality account, will also land automatically in the Guest session.

Use Conky to monitor your system

2. Conky is a very useful and versatile tool for checking what's going on in your system. You can find a how-to with screenshots on this page.

Automatic shutdown when closing laptop lid (all desktop environments)

3. It's useful when closing the laptop lid invokes an automatic shutdown, even when Power Manager doesn't allow for that option in your desktop environment. In all desktops that can be achieved like this:

a. Copy/paste the following command line into the terminal:

xed admin:///etc/systemd/logind.conf

Press Enter.

b. In that text configuration file, find the following line:


in some cases this line looks a bit different, namely: #HandleLidSwitch=suspend

Delete it and replace it by this line:


Save the modified text file and close it.

c. Reboot your computer. Closing the laptop lid should now evoke an automatic shutdown of your computer.

Note: on some laptops an undesirable side effect might occur, namely a CPU that becomes very hot, causing its cooling fan to start blowing full speed all the time.

In that case I advise to undo this hack.

Disable IPv6 (when you can't establish internet connection)

4. Some old modems and routers can't deal properly with modern IPv6. This might cause a bad unstable connection or even a complete failure to establish any connection at all. In that case, disable IPv6 like this:

Menu - Preferences - Network Connections

Click on the name of your current connection - click the button Edit...
Tab IPv6 Settings - Method: change it into Ignore

Click the button Save... and then click the button Close

Disconnect and reconnect, or simply reboot your computer.

Problems with Libre Office? Install a newer Libre Office

5. If you experience problems with your current version of Libre Office, you can install a later version of Libre Office with a PPA.

This is how to do it (item 8, right column).

How to manually install a non-free driver for your Nvidia video card

6. Do you have a graphics card from Nvidia, which is so new that the proprietary restricted driver version in the software repositories of Mint is too old? Then you can proceed like this.

(continued in the column on the right)
This website is being sponsored by Google Ads.

Are you using an ad blocker? Then you're also blocking my earnings from advertisements....

If you wish to support my website, you can configure your ad blocker to make an exception for this website.

Thanks in advance....

Install the latest iwlwifi driver for your Intel wireless card

7. In certain circumstances you may need a newer iwlwifi driver for your Intel wireless card, than the one that's available by default. For that, you can proceed as follows:

a. Download the right zipped driver file for your wireless chipset version and kernel version:

Don't do anything with it. Only download it and don't even click on it.

b. Launch a terminal window.
(You can launch a terminal window like this: *Click*)

c. Now move the old driver to the root folder, in order to disable it. For that, use copy/paste to transport this magical incantation to the terminal:

sudo mv -v /lib/firmware/iwlwifi-* /

Press Enter. When prompted, type your password. Your password will remain entirely invisible, not even dots will show, this is normal.
Press Enter again.

d. Then unpack the downloaded file like this:

cd Downloads && tar -xvzf ~/Downloads/iwlwifi*.tgz

e. Now go to the folder with the unpacked driver, like this:

cd iwlwifi (use the Tab key to complete it automatically)

For example, for an Intel Centrino Wireless-N 105 driver, pressing Enter after the automatic completion should yield the following result:


f. Then from that iwlwifi folder, move the new driver to the right location:

sudo mv -v iwlwifi-*.ucode /lib/firmware

g. Reboot your computer, in order to load the new driver. Your wireless Intel card should now run on the new driver.

h. Finally, pin the package linux-firmware to its current version, in order to prevent potential future problems by updates:

sudo apt-mark hold linux-firmware

Install a brand-new unsupported kernel

8. Sometimes, when you have a very new computer, you have a problem: the drivers in the Linux kernel of Linux Mint, aren't recent enough. In that case, you can do the following:

a. First of all, you can try whether a newer officially supported kernel suffices:
From the menu, launch Update Manager. In the toolbar of Update Manager: View - Linux kernels
Install the very latest kernel in the list.

Then reboot your computer.

b. If that kernel still isn't new enough, you can install an even newer and wholly unsupported kernel by means of a non-official (and therefore less safe) software source: the canonical-kernel-team PPA.

Note that the newer kernel you're about to install is unsupported in your version of Linux Mint, so there's an increased risk of malfunctions and errors. This should therefore only be done as emergency measure.

The method is as follows:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Then in the terminal (use copy/paste to avoid typing errors):

sudo add-apt-repository ppa:canonical-kernel-team

Press Enter. Type your password; your password will remain entirely invisible, you won't even see dots, that's normal. Press Enter again.

With this, you add the software source to your sources list.

c. Then in the terminal (use copy/paste):

sudo apt-get update

Press Enter. With this, you inform your system about the contents of the newly added software source.

d. From the menu, launch Update Manager. In the toolbar of Update Manager: View - Linux kernels
Install the very latest kernel in the list.

Then reboot your computer.

e. After this reboot your computer should run on the latest kernel. Check it by means of the following terminal command:

uname -r

Press Enter.

Even more risky: a bleeding edge kernel from the cowboys

8.1. Do you want to try an even newer unsupported kernel than the already risky "ordinary" unsupported kernel from Canonical Kernel Team? Then you can get a bleeding edge high-risk kernel from the cowboys, or the unstable branch of Canonical Kernel Team. In this way:

sudo add-apt-repository ppa:canonical-kernel-team/unstable

sudo apt-get update

Launch Update Manager and use its kernel tool.

Reboot and pray for the best. Yeehaw!

Quicker updates for Firefox

9. Updates for your web browser Firefox come from Mint's own repository, not straight from the Ubuntu sources. In some cases, this might mean a delay of several days before you get the latest Firefox.

If you don't want to wait, you can instruct your Mint to prefer the Ubuntu version of Firefox. Like this:

a. Launch a terminal window.
(You can launch a terminal window like this: *Click*)

b. Then in the terminal (use copy/paste to avoid typing errors):

sudo touch /etc/apt/preferences.d/firefox-ubuntu

Followed by:

xed admin:///etc/apt/preferences.d/firefox-ubuntu

Press Enter.

c. In that empty text file, copy/paste the following blue text:

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: 800

d. Save the modified text file and close it.

e. Launch Update Manager, refresh it and install the updates for Firefox (if any).

f. Close Firefox and launch it again.

Lost localization in the Ubuntu Firefox?

9.1. When you have a non-English Firefox, the Ubuntu Firefox that you've just installed might have lost its localization and turned fully English. This is how to fix that:

In the address bar of Firefox, type:


Press Enter and then click to accept the risk.

Then right-click anywhere on that page - New - String

Give the new string this name:


Leave the value empty; this forces Firefox to follow the system locale.

Click OK.

Close Firefox and restart it.

Want more tips?

Do you want more tips and tweaks for Linux Mint? There's a lot more of them on this website!

To the content of this website applies a Creative Commons license.

Back to the home page