There are 194 posts published with this tag. ↑ Return to tags

How to bind socket to privileged port without root

Long time ago I have described how to start service on the privileged port as a regular user, but there is a simpler way to bind socket to privileged port without root in a controlled way.

July 8, 2024 · 3 min · 601 words · Ubuntu

How to re-read partition table

Re-read partition table without machine reboot using blockdev utility which is a part of the util-linux package that contains several applications oriented towards maintenance of your system.

November 13, 2023 · 1 min · 61 words · Ubuntu · Ubuntu Impish Indri

How to simulate apt operations

Simulate apt operations to inspect dpkg actions like install, remove, and configure.

June 21, 2023 · 42 min · 8709 words · Ubuntu · Ubuntu Jammy Jellyfish

How to send magic packet

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

January 16, 2023 · 7 min · 1280 words · Ubuntu · Ubuntu Jammy Jellyfish

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.

April 17, 2022 · 6 min · 1126 words · Ubuntu · Ubuntu Jammy Jellyfish

How to improve apt download times

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

April 15, 2022 · 11 min · 2301 words · Ubuntu · Ubuntu Impish Indri

How to solve netcat mystery X

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

December 17, 2021 · 6 min · 1200 words · Ubuntu · Ubuntu Impish Indri

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 support 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 · 26 min · 5429 words · 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 · 3 min · 610 words · LVM · Ubuntu

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 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 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.

April 14, 2016 · 1 min · 146 words · Ubuntu · Ubuntu Wily Werewolf

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.

February 8, 2016 · 1 min · 163 words · Ubuntu · Ubuntu Wily Werewolf

How to download YouTube videos

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

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 · 1 min · 66 words · 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 · 2 min · 293 words · 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 be compiled beforehand.

August 17, 2015 · 2 min · 321 words · Game · 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.

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.

December 17, 2012 · 1 min · 118 words · Opinion · 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 the device, install a recovery image, return to stock rom and root Nexus 7 (Android 4.2) using Ubuntu.

November 18, 2012 · 4 min · 793 words · Android · Ubuntu

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

A couple of 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.

August 16, 2012 · 1 min · 104 words · Issue · Ubuntu

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. HOWEVER, THE SWAP ENCRYPTION CONFIGURATION PRODUCED BY THIS PROGRAM WILL BREAK HIBERNATE/RESUME ON THIS SYSTEM! NOTE: Your suspend/resume capabilities will not be affected. Do you want to proceed with encrypting your swap? [y/N]: y INFO: Setting up swap: [/dev/sdaX] * Stopping remaining crypto disks... * cryptswap1 (stopped)... [ OK ] * Starting remaining crypto disks... * cryptswap1 (starting).. * cryptswap1 (started)... [ OK ] INFO: Successfully setup encrypted swap! Changes are automatically applied to crypttab and fstab configuration files.

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): $ sudo sgdisk -b sda_gpt_backup /dev/sda Restore it in similar way:

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.

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) "x" XmbLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False KeyRelease event, serial 35, synthetic NO, window 0x6000001, root 0xb1, subw 0x0, time 137282560, (-94,112), root:(1047,135), state 0x40, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False KeyRelease event, serial 35, synthetic NO, window 0x6000001, root 0xb1, subw 0x0, time 137282563, (-94,112), root:(1047,135), state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False Second button

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 the touchpad when I tried to play on a notebook. The solution was to install a recent version from Latest official WineHQ releases.

March 5, 2012 · 1 min · 116 words · Ubuntu

Ubuntu and recent problems related to PHP

Recently I ran 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.so /usr/lib/php5/20090626/sqlite3.so /usr/share/doc/php5-sqlite As suspected there was sqlite3.so file.

February 24, 2012 · 2 min · 299 words · Issue · Ubuntu

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

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

January 28, 2012 · 12 min · 2506 words · Issue · Ubuntu

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.0°C (crit = +100.0°C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +45.0°C (high = +86.0°C, crit = +100.0°C) Core 0: +45.0°C (high = +86.0°C, crit = +100.0°C) Core 1: +44.0°C (high = +86.0°C, crit = +100.0°C)

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.

← Return to tags