How to display inotify watches and instances using dedicated application

Display inotify watches and instances using dedicated inotify-info reporting application. ...

How to list manually installed packages

List manually installed packages. ...

How to increase the maximum number of file watches that are allowed for each user

Increase the maximum number of file watches that are allowed for each user. ...

How to distinguish between rotational and non-rotational block devices

Distinguish between rotational and non-rotational block devices. ...

How to install and execute Python applications as regular user

Install and execute isolated Python applications as regular user. ...

How to bind to a non-local IP address

Ensure that HAProxy can assign a non-local IP address. ...

How to install simple to use screenshot application

Install flameshot a simple to use screenshot application. ...

How to keep specific package version

Downgrade and keep specific package version. ...

How to use Cloudflare’s PKI and TLS toolkit

Use Cloudflare’s PKI and TLS toolkit to quickly generate self-signed certificates. ...

How to disable Ubuntu APT news

Disable Ubuntu APT news about security updates, features and services. ...

February 13, 2023 · milosz · Ubuntu

How to install Forgejo using podman

Install Forgejo using podman. ...

How to configure wireless connection using command-line utility

Configure wireless connection using command-line utility. ...

How to send magic packet

Construct and send magic packet to take advantage of the Wake-on-LAN. ...

How to display NVIDIA devices using command-line

Display NVIDIA devices using nvidia-smi management command-line utility. ...

How to determine recommended NVIDIA driver

Determine recommended NVIDIA driver using Detection tool for nVidia graphics cards by Alberto Milone. ...

How to display hardware information the easy way

Display hardware information using inxi a full featured system information script. ...

December 12, 2022 · milosz · Ubuntu

How to create directory with defined ownership and permissions

Create directory with defined ownership and permissions using a simple single-step command. ...

How to remove disabled snaps

Remove disabled snaps which are not longer used. ...

How to keep custom number of snap revisions

Define a custom number of snap revisions. ...

How to inspect a path during the troubleshooting process

Inspect a path during the troubleshooting process. ...

How to bypass the OpenSSL security level

How to bypass the OpenSSL security level using curl or openssl utility to access legacy services. ...

How to install Guest Agent inside Proxmox virtual machine

Install Guest Agent inside Proxmox virtual machine. ...

How to manage monitor using DDC/CI protocol

Use ddcutil to manage monitor using DDC/CI protocol. ...

How to load kernel modules at boot

Load kernel modules at boot. ...

How to determine when package index was updated

Determine when package index was updated. ...

How to check memory subsystem from user space

Check memory subsystem from user space. ...

How to execute non-executable binary

Execute non-executable binary file. ...

How to parse and filter dpkg database

Parse and filter dpkg database to display selected fields or other specific information. ...

How to configure cursor size using command-line utility

Configure cursor size using command-line on Ubuntu 22 Jammy Jellyfish. ...

How to control Power Profiles daemon using command-line

Control Power Profiles daemon using a dedicated powerprofilesctl command-line utility. ...

How to display hardware information

Display hardware information. ...

How to install and configure Consul

Install and configure Consul. ...

How to manage wireless Logitech devices using command-line

Manage wireless Logitech devices using command-line. ...

How to permanently disable DPMS using Xorg

Permanently disable DPMS (Display Power Management Signaling) using Xorg. ...

How to flush buffers on a specific device

Flush buffers on a specific device using blockdev utility. ...

How to determine session type

Determine session type (X11, Wayland). ...

How to configure HashiCorp repository

Configure HashiCorp repository. ...

How to ensure that every Ubuntu virtual machine get its own IP address

Ensure that every Ubuntu virtual machine from the same template get its own IP address. ...

How to display CPU information

Display CPU information. ...

How to set the title for GNOME terminal emulator

Set the title for GNOME terminal emulator. ...

June 5, 2022 · milosz · Ubuntu

How to archive entire web page in a single HTML file

Use SingleFile to archive entire web page in a single HTML file. ...

How to install Ubuntu Release Upgrader on an older system

Install Ubuntu Release Upgrader on an older system. ...

How to fix pkeys are immutable error inside Vagrant on Ubuntu Jammy Jellyfish

Fix pkeys are immutable on OpenSSL error inside Vagrant on Ubuntu Jammy Jellyfish. ...

How to enumerate power sources and display battery status

Enumerate power sources and display battery status using UPower a System-wide Power Management daemon. ...

How to fix i801 SMBus interrupt storm

Today I have installed Ubuntu Jammy Jellyfish (release 22.04) on Acer Aspire One (A114-32-P991), but the i801 SMBus interrupt storm made this system unusable. ...

How to improve apt download times

Improve apt download times by using apt-fast a shell-script wrapper for apt, apt-get or aptitude. ...

How to upgrade Ubuntu 21.10 LTS to the latest development version of Ubuntu 22.04 release

Upgrade Ubuntu 21.10 LTS (Long Term Support) to the latest development version of Ubuntu 22.04 release. ...

How to convert text file in DOS format to Unix format

Convert line endings inside text file from DOS to UNIX format. ...

How to install human-friendly apt front-end

Install nala a human-friendly apt front-end using the python-apt API. ...

How to display information about NVMe storage device

Display information about NVMe storage device. ...

How to share USB device over network

Share USB device over network using usbip utility. ...

How to use DPMS to turn screen on or off

Use DPMS (Display Power Management Signaling) to turn screen on or off. ...

How to define favorite applications on Ubuntu desktop

Define favorite applications on Ubuntu desktop using command-line utility. ...

How to incorporate EDID into initrd image

Incorporate EDID (Extended Display Identification Data) into initrd (initial ramdisk) image. ...

How to define idle delay on Ubuntu desktop

Define idle delay (blank screen) on Ubuntu desktop. ...

How to identify a GNOME application that acquired an inhibitor lock

Identify a GNOME application that acquired an inhibitor lock and blocks power-off or reboot operation. ...

How to install privacy focused fork of Firefox

Install LibreWolf a fork of Firefox that is focused on privacy, security and freedom. ...

How to remove trash icon from sidebar on Ubuntu desktop

Remove trash icon from sidebar on Ubuntu desktop. ...

How to use solid color instead of picture on Ubuntu desktop

Use solid color instead of picture on Ubuntu desktop. ...

How to identify YubiKey using dynamic device manager

Identify YubiKey device using dynamic device manager to send desktop notification. ...

How to solve netcat mystery X

Funny netcat issue with additional X characters send over UDP protocol and why this is not a problem. ...

How to install GitLab on Raspberry Pi

Install GitLab on Raspberry Pi. ...

How to install mainline Linux kernel on Ubuntu-based distribution

Install mainline Linux kernel on Ubuntu-based distribution. ...

November 1, 2021 · milosz · Ubuntu

How to enable Control Group v2

Enable Control Group v2 for podman to display container’s resource usage statistics. ...

How to upgrade Ubuntu distribution using GUI

Upgrade Ubuntu distribution from 20.10 to 21.04 using GUI. ...

July 3, 2021 · milosz · Ubuntu

How to export block devices list as JSON

Export block devices list as JSON and parse using jq utility. ...

How to recover deleted photos

Recover deleted photos from SD card. ...

How to start service on the privileged port as a regular user

Start service on the privileged port as a regular user. ...

May 26, 2021 · milosz · Ubuntu

How to disable Network Manager connectivity checks

Four different ways to disable Network Manager connectivity checks. ...

April 23, 2021 · milosz · Ubuntu

How to extend RandR valid modes for an output

Using passive adapters to connect DisplayPort output to HDMI or DVI input is problematic with wide-screen monitors as these adapters supports a maximum resolution of 1920×1200 at 60Hz. This issue can be alleviated by adding a specific mode to the set of valid output modes. ...

April 14, 2021 · milosz · Ubuntu

How to deal with overlapping LVM names

Today, I will connect the secondary encrypted hard disk from the previous Ubuntu installation to copy personal data, so there will be a problem with overlapping LVM names. ...

April 7, 2021 · milosz · LVM · Ubuntu

How to use lightweight compressed cache for swap pages

Configure a lightweight compressed cache for swap pages to mitigate the performance impact of swapping on your desktop. ...

How to configure swap using zram at boot

Configure compressed swap using zram device at system boot. ...

How to use compressed RAM based block devices

Take advantage of compressed RAM based block devices to create temporary filesystems and swap disks. ...

How to create site-to-site connection using IPsec

Use the native IPsec stack to connect multiple networks over the internet. ...

How to fix multipath daemon error about missing path when using VirtualBox

Fix multipath daemon error about missing path when using VirtualBox. ...

How to display packages that are no longer required

Display packages that were installed automatically to satisfy various dependencies and are no longer required. ...

How to install Kubernetes on LXD

Install Kubernetes on LXD. Essential information to just get you started. ...

How to manage firewall rules on the LXD bridge

Manage firewall rules on the LXD bridge by yourself. ...

How to start using Docker Swarm

Start using Docker Swarm to easily manage your containers. ...

How to start Docker service at system boot

This is just a reminder to always enable docker service at system boot. ...

How to alter Ubuntu desktop configuration using terminal

Alter Ubuntu desktop configuration using gsettings utility. I will use it to change the number of seconds the desktop computer needs to be inactive before it goes to sleep. ...

How to expand swap partition after system installation

Expand encrypted swap partition after system installation. ...

How to deal with missing AppArmor profiles for microk8s on LXD

Today I will describe how to deal with missing AppArmor profiles for microk8s on LXD. ...

How to upgrade Ubuntu 18 LTS to the latest release

Upgrade Ubuntu 18 LTS to the latest Ubuntu 20 LTS (Long Term Support) release. ...

How to hibernate system using systemd

Hibernate desktop system using systemd. ...

How to disable mitigations for CPU vulnerabilities

Disable mitigations for CPU vulnerabilities. ...

How to install JetBrains using snap packages

I am using PyCharm and GoLand, both of these applications are available as snap packages. ...

September 4, 2019 · milosz · snap · Ubuntu

How to share directory over local network using NFS

Export directory over local network using NFSv4 to access data on a central server. ...

How to configure HTTP/2 in http mode on HAProxy and fix bad request problem

Enable HTTP/2 on HAProxy 1.8 and temporarily fix the bad request problem with the Nginx backend using FastCGI/uWSGI. ...

How to install HAProxy 1.8 on Ubuntu 16

Install recent HAProxy version to take advantage of the new fancy features. ...

How to fix broken uwsgi package on Ubuntu Xenial

Recently, I tried to update uwsgi package on Ubuntu Xenial, but received an error about broken package. It looks like the mentioned package was pushed to the repository before its dependencies. This issue is thoroughly described in <a href=“https://bugs.launchpad.net/ubuntu/+source/uwsgi/+bug/1719363" target=_blank” rel=“external”>#1719363 bug report. ...

How to upgrade lxd guests

It is time to mention about simple sequential or simultaneous upgrade process on lxd guests. It is adapted to Debian-like operating systems using apt as I am using these daily. ...

How to fix mdadm segfault inside lxc container

lxd is a real pleasure to use, but mdadm constantly segmentation faults inside Ubuntu guest operating system. This issue affects only Ubuntu as mdadm is not disabled by default inside these containers. It is nothing scary or dangerous, but in this specific case, repetitive segfaults needlessly raise alertness level. ...

How to disable touchpad using shortcut

I have already described how to disable the touchpad when an external mouse is connected using the udev device manager, but today I want to share a simple shell script that I am using on Dell XPS 13 to disable/enable the touchpad using a single keyboard shortcut. ...

How to update Intel graphics drivers

Recently I needed to update integrated Intel graphics drivers to gain access to more recent OpenGL extensions. Packages available by default in base system do not provide such functionality, so I used Updated and Optimized Open Graphics Drivers as it is built almost simultaneously with the latest updates. ...

How to reload wifi module on resume

Once in a while, I have a problem with Intel Corporation Dual Band Wireless-AC 7265 on Dell XPS 13 during the resume process as it just stops working and won’t connect to any network. The solution is to simply reload the kernel module. ...

How to automatically import NordVPN servers

A week ago, I illustrated a simple way to connect to the NordVPN server using Network Manager. Today I will describe a more advanced solution to automatically import NordVPN configuration using a shell script. ...

How to connect to NordVPN server using Network Manager

I am using NordVPN OpenVPN service to protect myself from prying eyes, especially now when the government defined insane data retention laws combined with unstable political situation. It is better to be safe than sorry, so I will illustrate the whole process using very simple step by step instructions. ...

How to use org-capture from system tray

It is almost two years since I have discovered an amazing org-mode. I am using it in more situations every day, so recently, I wrote a simple tray application to use org-protocol with defined org-capture templates directly from the desktop. ...

How to manage startup applications

It is quite easy to manage startup applications in Ubuntu Wily Werewolf even though this functionality is not integrated into system settings dashboard. Just follow these instructions to start applications after login. ...

How to use classic Gnome shell instead of Unity desktop

There are cases where I prefer to install and use Gnome fallback mode (Gnome Flashback in recent system versions) instead of full-blown Unity desktop. I will give you simple instructions on how to change the default session manager. ...

How to determine file system type

The more hard drives are lying around and the more you use them, then it becomes more important to know how to unambiguously determine file system type without mounting it. ...

How to disable touchpad when external mouse is connected

I unconsciously keep my thumbs on built-in touchpad, so I decided to use external mouse and automatically disable touchpad for the time mouse is connected. ...

How to schedule system reboot

It is a short entry, but an useful one, as it is important to have a basic knowledge of how to schedule system reboot or power it down automatically at specified time. ...

How to access USB devices from within VirtualBox virtual machines

I constantly forget to add myself to the proper user group to access USB devices from within VirtualBox virtual machines, so I need to write it down. ...

How to set CPU governor at system boot

Currently, I am playing with recent Ubuntu Wily Werewolf on my personal notebook. The first thing I did after system installation was to configure CPU governor and set it at system boot. ...

How to crack password using Nvidia GPU

While this is not my primary area of expertise, I have been using John the Ripper more frequently lately, so I began to wonder how to take advantage of the powerful Nvidia GPU… ...

How to download YouTube videos

I have mentioned about youtube-dl several times previously, but never really had a time to explain why I like it so much. Therefore I will describe it now. ...

How to add Sublime Text to Unity launcher

I am using Sublime Text to write this blog post. It is a great piece of software. However, it does not contain a desktop file, so you need to create it separately. ...

How to enable virtual desktops in Ubuntu

Virtual desktops also known as workspaces are disabled by default in current Ubuntu 15.04 release. I will not delve into the reasons why, but simply describe how to turn them on. ...

September 7, 2015 · milosz · Ubuntu

How to add SSH menu to Unity launcher

I am currently using the latest Ubuntu on Dell XPS 13. It works great, and using it is a real pleasure. However, after a while, I got an idea to add the SSH menu to the Unity launcher for enhanced usability. ...

August 31, 2015 · milosz · Ubuntu

How to play games using Adventure Game Studio engine

I have already bought several of point and click adventure games using Adventure Game Studio engine. Current GOG.com versions are prepared to work on Ubuntu 14.04 and Mint 17. I am using more recent Ubuntu 15.04, so the above-mentioned game engine needs to compiled beforehand. ...

How to set PowerTOP options at boot time

Today, I will show you how to set all tunable PowerTOP options at boot time using systemd service. ...

How to disable Unity HUD shortcut

I got very annoyed by the ALT shortcut opening Unity HUD. It was driving me crazy till I disabled it. ...

August 8, 2015 · milosz · Ubuntu

Unattended boot, Grub, Ubuntu and power failure.

What do these four things have in common? Ubuntu headless server will not boot after power failure as Grub will indefinitely wait for user input. The root of this problem lies inside Ubuntu default Grub configuration as Grub will simply set timeout to infinity when recordfail parameter is set. ...

How to determine whether the processor supports 64-bit instruction set

If you ever wondered how to determine whether the processor is 64-bit capable, then I have a simple and straight answer for you. ...

Ubuntu Pocket Guide and Reference

Ubuntu Pocket Guide and Reference by Keir Thomas is a great book for the beginners as it covers a wide range of topics needed for everyday Ubuntu use. I highly recommend it to anyone who wants to install or try Ubuntu. ...

Ubuntu – Nexus 7 basics

I spent all day testing custom roms on Nexus 7 but finally decided to roll back everything and use stock rom with encryption. I will describe here how to unlock device, install recovery image, return to stock rom and root Nexus 7 (Android 4.2) using Ubuntu. ...

Ubuntu Precise – Install youtube-dl package using Quantal repo

Ubuntu Precise 12.04 currently contains in repository youtube-dl version 2012.02.27-1. As of recent YouTube changes this package version is not usable anymore but there is an updated version in Ubuntu Quantal 12.10 repository. To use it you need to perform couple of steps described below. ...

How to generate QR Codes

Quick Response Codes are appearing everywhere. You can see them in museums, near the tourist attractions or all over the web. There is no doubt that QR Codes are useful as they can contain any information within reasonable limits. ...

Ubuntu – Unknown encoder libmp3lame

Couple days ago I encountered an audio conversion failed: Unknown encoder ‘libmp3lame’ error when I tried to convert YouTube videos to mp3 format using youtube-dl. ...

Ubuntu – How to use persistent encrypted partition

Simple solution using Linux Unified Key Setup. ...

Ubuntu – How to use encrypted tmp partition

The answer is to recreate encrypted tmp partition every boot with random key as you do not need to keep temporary data in memory. ...

Ubuntu – How to encrypt swap partition

Create partition for swap (/dev/sdaX in this example). Prepare and enable it using mkswap and swapon commands. If you already use swap partition then omit these steps. $ sudo mkswap /dev/sdaX Setting up swapspace version 1, size = 4194300 KiB no label, UUID=325d9718-8532-460d-afec-74e6aee9ae5f $ sudo swapon /dev/sdaX Execute ecryptfs-setup-swap script (it is part of ecryptfs-utils package): $ sudo ecryptfs-setup-swap WARNING: An encrypted swap is required to help ensure that encrypted files are not leaked to disk in an unencrypted format....

How to use VideoLAN in live mode

After I started my journey with squashfs I encountered problem with VideoLAN as I couldn’t start it. ...

How to download YouTube videos using console application

The easiest way to download YouTube videos is to use youtube-dl. ...

How to backup DOS-type partition table/GPT and LVM metadata?

DOS partition table We can use sfdisk to dump partition table in usable format and store it: $ sudo sfdisk -d /dev/sda > sda_partitions Partition table can be restored using stored backup: $ sudo sfdisk /dev/sda < sda_partitions Partition table can be easily cloned (from sda to sdz in this example): $ sudo sfdisk -d /dev/sda | sfdisk /dev/sdz GPT To backup GUID partition table use sgdisk command (from gdisk package):...

How to get disk UUID

I recently needed to know the UUID (universally unique identifier) of my bootable USB root partition. It is a better way to distinguish storage devices because device names can change depending on the connection order. ...

Boot to RAM notes

This post contains notes on this topic in the form of a concise guide. ...

How to add custom grub2 menu entry?

Edit /etc/grub.d/40_custom file to add a custom entry in grub2 menu. ...

Ubuntu – Where to download Minimal CD?

Recently I started to use Minimal CD for customized installation so I need to write down places where I can get it. ...

May 1, 2012 · milosz · Ubuntu

Dell Inspiron 14z – Shortcut buttons

Dell Inspiron 14z (N411z) has three small shortcut buttons above the keyboard. First button First one with small gears on it can be used out of the box in KDE or GNOME. xev output: KeyPress event, serial 35, synthetic NO, window 0x6000001, root 0xb1, subw 0x0, time 137282557, (-94,112), root:(1047,135), state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 35, synthetic NO, window 0x6000001, root 0xb1, subw 0x0, time 137282558, (-94,112), root:(1047,135), state 0x40, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "...

How to use recent version of Wine in Ubuntu

From time to time I use Wine to play some Good Old Games but I experienced annoying problems while using touchpad when tried to play on notebook. Solution was to install recent version from Latest official WineHQ releases. ...

March 5, 2012 · milosz · Ubuntu

Ubuntu and recent problems related to PHP

Recently I run into small problems related to PHP. Problem A – sqlite.so The first one was a PHP warning: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP tried to load sqlite.so from /etc/php5/conf.d/sqlite.ini (php5-sqlite package). $ dpkg -L php5-sqlite /. /etc /etc/php5 /etc/php5/conf.d /etc/php5/conf.d/sqlite3.ini /etc/php5/conf.d/pdo_sqlite.ini /etc/php5/conf.d/sqlite.ini /usr /usr/share /usr/share/doc /usr/lib /usr/lib/php5 /usr/lib/php5/20090626 /usr/lib/php5/20090626/pdo_sqlite....

Dell N411z – "GLX" missing on display ":0.0"

I use Dell Inspiron N411z with Intel HD Graphics 3000 and recently I run into problems with 3D support. I suppose it happened after I installed something but don’t remember exactly what. ...

CTRL + F = xterm

Funny thing happened today. I got really surprised that using CTRL + F keyboard short-cut executed xterm. Then I realized that I installed xbindkeys recently…

How to access sensor data

Install lm-sensors package: $ sudo apt-get install lm-sensors Execute sensors-detect command as root: $ sudo sensors-detect It will determine needed modules and at the end it will ask for your permission to automatically add them to the /etc/modprobe file. If you answered yes then load them using command: $ sudo service module-init-tools start Now you can use sensors command: $ sensors acpitz-virtual-0 Adapter: Virtual device temp1: +44.0°C (crit = +100.0°C) temp2: +44....

How to install deb package in Ubuntu?

If you downloaded deb package and wonder how to install it then just look at the snippet posted below. ...

ASUS 1005HA – ACPI and CPU fan failure

I am using ASUS 1005HA for light web browsing, but recently I experienced CPU fan failure. It’s hard to get a new fan when most people celebrate Christmas. Hopefully, there is a solution that will give me some time. ...

Which Ubuntu release are you using?

The easiest way to check Ubuntu release is to use lsb_release command. ...

Installing LibreOffice in Ubuntu

Install LibreOffice in Ubuntu. ...