UWOT.EU

Firefox freeze/is not responding

After some years of using Firefox (currently version 38.0.5) with Session Restore enabled (the browser saves all the tabs from the previous session and reload them at the next start-up) it started to act weird and freeze for around 10 seconds 3 or 4 times a day.This very annoying behavior is caused by the presence of multiple useless Session Restore files.To delete those files open a new tab and type “about:support” in the address bar, then in the “Application Basics” area click on the “Open Directory” button placed next to “Profile Directory”. …

Posted on

Nginx, PHP-FPM caching done right

The whole web is full of pseudo guides on how to properly - that is the key word here - configure Nginx to perform caching alongside with PHP-FPM, but every single one of them fails to mention some minor steps resulting in a borked half functioning implementation. For example, not a single one mention the necessity to edit /etc/php.ini and set session.use_cookies to 0. Too bad that without doing so caching with WordPress in combination with certain plugins or themes (for example MainWP or Enfold theme) is completely not working; the following headers get added to every HTTP response: …

Posted on

Pacman email updates notification

Pacman as long as I know does not provide any method for sending an email notification when there are updates available.SSH into the Arch box just to find out if there are updates available is really annoying so I wrote a simple bash script to do the dirty work on my behalf.To schedule the cron job to run everyday at 1 am edit the following files:The script works exactly like yum-cron does: if there are updates available and email is being sent, else it does nothing.

Posted on

Defragment EXT4 file system

EXT4 is usually pretty good at keeping files fragmentation at minimum, but, sometimes, especially if dealing with really huge files, some fragmentation may actually occur.Luckily EXT4 supports online defragmentation, command fsck displays, among other things, fragmentation percentage:Then sit tight, prepare to wait some time and run what follows to defrag the volume:

Posted on

Yum email updates notification

Yum provides a very useful package called “yum-cron”, its most publicized feature is the ability to enable yum to run nightly cron scheduled packages upgrades.I honestly don’t really think it is a good idea at all to let the system manage updates by himself but yum-cron can be used for another bunch of tasks, the most interesting one being: send an email if there are updates available.Configuration is actually pretty simple. …

Posted on

Email server: Dovecot and Postfix

.:. Postfix configuration Install the required softwares: $ yum install postfix postgrey dovecot fail2ban spamassassin spamass-milter-postfix opendkim Create TLS certificate, key and CA authority (replace “mail.domain.tld” with valid domain name): $ mkdir /etc/postfix/ssl $ cd /etc/postfix/ssl $ openssl genrsa -aes256 -out mail.domain.tld.key 4096 $ chmod 600 mail.domain.tld.key $ openssl req -sha256 -new -key mail.domain.tld.key -out mail.domain.tld.csr $ openssl x509 -sha256 -req -days 1825 -in mail.domain.tld.csr -signkey mail.domain.tld.key -out mail.domain.tld.crt $ openssl rsa -in mail. …

Posted on

KVM and PCI (VGA) passthrough

First off, I failed so there will not be any kind of walk-through or guide.Hardware/software setup is sub-optimal and is for sure part of the problem for at least three reasons:1. as primary display adapter I use an Nvidia GTX 750ti;2. I use Nvidia proprietary driver because nouveau support for newest graphic cards isn’t good (this is an understatement to say the least);3. it isn’t completely clear if Intel Z97 chipset supports VT-D or not and if it does on what level it does. …

Posted on

Fedora 21 and MTP

In order to be able to mount a MTP device (in my case it is a Oneplus One) in thunar file manager the following packages are needed: simple-mtpfs libmtp fuse fuse-libs gvfs-mtp. After installing the previous listed packages restart the system.Once installed the device can me be mounted with “simple-mtpfs directory”, unmounted with “fusermount -u directory” or mounted with thunar/gigolo/etc.

Posted on