How to terminate active ssh sessions
Several months ago I have shortly described how to close non-responsive ssh session, which comes handy at times. Today I will describe how to close every active ssh session by inspecting existing...
View ArticleHow to exclude data from certain tables during PostgreSQL backup
I often want to omit data from certain tables during PostgreSQL database backup. Today I will look into this and post my findings for further reference.PostgreSQL post-9.2 versionSince PostgreSQL 9.2...
View ArticleHow to clear up pending resync on RAID array
I have already wrote a couple of posts about software RAID setup and recovery. Today I will briefly describe how to switch array to read-write state and begin resync process.This problem can be...
View ArticleHow to pretty-print disk space used by PostgreSQL databases
I wrote a simple shell script to pretty-print disk space used by PostgreSQL databases while inspecting database object size functions. You can benefit from this too by inspecting used SQL...
View ArticleHow to kill every eligible process
Today I want to mention about simple and neat trick described in kill manual page, which will allow you to quickly kill every eligible process.Execute following command to send KILL signal to every...
View ArticleHow to convert manual pages to DokuWiki
I have created simple shell script to convert manual pages to DokuWiki as I want to have them always at hand and easily interlink to them from other pages.Initial notesDistinction between original and...
View ArticleHow to use chkconfig on Debian Wheezy
I have already described chkconfig utility in CentOS - How to manage system services blog post, but today I want to mention that you can also use it to manage services on Debian Wheezy.Just install the...
View ArticleHow to manage system services on Debian Jessie
Debian Jessie is using systemd as default system and service manager. I will not argue about it, but instead I will briefly introduce the whole thing.List defined servicesPrint active services and...
View ArticleHow to copy answers to the configuration questions for Debian packages
Human memory is sometimes unreliable, so it is not always possible to answer in the same way to the configuration questions. Fortunately, this process can be automated using debconf utilities.How to...
View ArticleHow to enforce read-only mode on every connected USB storage device
Today, I will show you how to put every connected USB storage device in read-only mode using udev dynamic device management, blockdev utility and additionally systemd service unit configuration.udevThe...
View ArticleHow to crack archive password
I have recovered old backup only to learn that I do not remember password to the found archive. As a result, I checked out two command-line applications to crack passwords used to encrypt zip, 7z or...
View ArticleHow to crack archive password faster
A week ago I wrote about couple of interesting applications to crack archive password, but they were not as fast as I thought. After investigating this topic further I ended up using community-enhanced...
View ArticleHow to lock Linux console session
It is easy to lock screen when using any of the available desktop environment or even basic X Window utilities. The more interesting thing is to achieve the same functionality on text only based...
View ArticleHow to record terminal session
Maybe it is rarely needed, but recently, I found it very useful to know how to record an interactive session, so I could reference to it later or just examine it further.The whole process is very...
View ArticleHow to replace failed software RAID device
I had an unexpected incident during last week as one of the hard disks in my server failed. This device was a part of software RAID mirror, so it created an opportunity to describe the whole...
View ArticleHow to use nearest Debian mirror
Today, I will explain how to automatically choose nearest mirror based on geographic and network location using Debian mirrors HTTP redirector to solve the common problem of choosing an appropriate...
View ArticleHow to extract cover image from an e-book
I have successfully used Google Drive and Insync to organize all of the e-books that I have acquired during last years, but currently plan to upload them to personal DokuWiki instance, since I use it...
View ArticleHow to access Linux Extended File System using Windows
Sometimes it can be very useful to access Linux Extended File System using Windows to copy important data or just check out its contents. The best way to do this is to use Ext2Fsd an Extended File...
View ArticleHow to use virtual desktops on Windows
Windows 7 does not support virtual desktops out of the box. Fortunately, there is an lightweight Desktops application by Mark Russinovich included in Sysinternals utilities.Download Desktops...
View ArticleEssential Dokuwiki plugins
I am using Dokuwiki almost everyday as I love writing documentation and organizing knowledge. Due to this, I have created a list of plugins I cannot live without.Table of contentsSidebarUpgrade...
View Article