How to relay outgoing postfix emails via another mail server (e.g. your ISP)
Here’s a simple and clear guide for gmail, which also definitely works with other relay hosts. I’ve used it to configure my ISP’s mail relay (they block outgoing port 25) on a Debian Squeeze laptop.
View ArticleHow to easily install any PyPi/easy_install python module on Debian
Imagine you need to install pycassa (which uses easy_install). Here are the 2 (at maximum) very simple steps to have it properly debianized and installed on your Debian/Ubuntu:if you don’t have the...
View ArticleHow to fix: Nokia Ovi Suite could not connect to the Nokia account server
I’ve been getting this message for a long while, when trying to log into Ovi from within my Ovi Suite:Nokia Ovi Suite could not connect to the Nokia account server. Make sure the internet connection is...
View ArticleHow to truncate git history (sample script included)
Under a few assumptions (most importantly – you do not have any non-merged branches,), it is very easy to throw away git repository commits older than an arbitrarily-chosen commit.Here’s a sample...
View ArticleHow to remotely convert live 1xHDD/LVM Linux server to 2xHDD RAID1/LVM...
Assumptions:current HDD is /dev/sda, it has a GPT (with bios_grub being /dev/sda1), separate /boot partition (/dev/sda2), and a physical LVM volume (/dev/sda3), where LVM holds all the remaining...
View ArticleDebian: how to whitelist IP addresses in tumgrey-SPF
SPF is nice for protecting your mail server from spam, but sometimes there is a need to bypass SPF checking. For example, if you rely on 3rd party servers to do spam protection for you Current setup:MX...
View ArticleSaving and restoring the list of packages installed on a Debian system using...
The usual, or even classical way is to create the list of installed packages with sudo dpkg --get-selections > package_list, and then restore when/if necessary with cat package_list | xargs sudo...
View ArticleHow to update a multisite Drupal 6/7 installation using Drush
There are quite a lot of posts on how to do this, but my differs a tiny little bit, so I’m saving it for my own future reference, and also for the benefits of the wider audience.I am updating a...
View ArticleHow to fix Offline Uncorrectable sector outside of a partition
A few days ago my smartd daemon (from the smartmontools package) notified me about a +1 increase in Current_Pending_Sector (197) and Offline_Uncorrectable (198) SMART attributes. The 2.5″ Fujitsu...
View ArticleMy smartd.conf, explained
After fixing offline uncorrectable sector warning email, I have taken a closer look at my /etc/smartd.conf, and now it looks like this: DEFAULT -d sat -H -f -p -t -W 0,40,45 -n standby -S on -m...
View ArticleHow to fix: Xiaomi Mi Band stopped tracking steps and sleep
A few days ago, my Mi Band stopped properly tracking sleep and counting steps. Here is a full list of symptoms:synchronization appears to work correctly;total count of steps is updated, but when you...
View ArticleMidnight Commander (mc): convenient hard links creation from user menu
Midnight Commander is a convenient two-panel file manager with tons of features.You can create hard links and symbolic links using C-x l and C-x s keyboard shortcuts. However, these two shortcuts...
View ArticleHow to fix: mod_proxy’s ProxyPass directive does not work
So… You had finally built a nice LXC container for your web-facing application, and even configured Apache (Debian package version 2.14.18-1 in my case) to serve some static/web-only components. From...
View ArticleHow to: convert your VPS root filesystem to btrfs (using rescue boot)
I’m moving from (a kind of…) a dedicated server to a VPS, to decrease my frightful anticipation of hardware failures. Honestly though, that server had been freezing up and restarting spontaneously for...
View ArticleHow to: export only notes to PDF from LibreOffice Impress 5
If you have a PDf printer installed (most Linux distributions, and Windows 10), just do File -> Print, then under the Print sub-header choose Notes from the Document drop-down (see picture). Make...
View ArticleHow to: easily add swap partition to a live system on btrfs
Recently I had a need to add a swap file to my Debian installation. However, I am now using btrfs, and – as with any other COW filesystem – it is not possible to simply create a swap file and use it....
View ArticleEvernote web-interface beta: how to fix: saved searches are crossed out and...
Another symptom is a message along the lines ofthe notebook you are searching in has been moved or renamed since the saved search was created(which is not true).I had this problem, and found a...
View ArticleHow to: install Windows 7 on a recent laptop/PC from a bootable USB drive
If you had ever seen the not-so-descriptive error message A required CD/DVD drive device driver is missing, then you have been trying to install Windows 7 (possibly using a bootable flash drive) on a...
View ArticleHow to: enable metadata duplication on an existing btrfs filesystem
Just one command: sudo btrfs balance start -v -mconvert=dup /toplevel/ where /toplevel/ is your mountpoint of the btrfs root, -v is there for verbosity (not too verbose, don’t worry), and -mconvert=dup...
View ArticleHow to merge Windows 10 “system reserved” and Recovery partitions
My initial reason for merging these two partitions was the need to have two more partitions on the disk – and with 3 primary partitions already in place (system reserved, windows 10 itself, and...
View Article