Handling processes / services on hibernation / wakeup in CentOS

Hibernation is a great feature on any computer. It allows for a temporary pause in execution in which the system in question can be unplugged, cleaned, modified, or moved.

But what happens when some services don’t play nice and fail to resume properly from sleep? Fortunately, Linux’s power management utilities provide the necessary functionality…

Restarting USB subsystem in CentOS

After a long uptime specific (cheap) devices or components connected to the USB ports lock up or malfunction. Unplugging and plugging them usually fixes issues, but physical access to the system (especially a remote server) is neither always possible or desirable.

In cases like this, Linux (unlike Windows) can trigger a USB subsystem restart by deactivating and reactivating the USB controller(s).

Compiling libtorrent-rasterbar and qBittorrent on CentOS 6.5 x64

I finally found the proper uTorrent (wine/Server) replacement for Linux (preferably headless) systems – qBittorrent.

Unfortunately there seems to be no repository out there providing qBittorrent for CentOS 6, so I had to compile it from source – not the easiest task I have to admit.

Quickly view PHP’s memory_limit values for all virtual servers

When one needs to quickly check the individual PHP memory_limit value for a long list of virtual servers (presumably hosted by Virtualmin), going from folder to folder and reading the contents of the etc/php.ini file is one (loooooong) way of doing things. Fortunately, there’s an easier way, with the help …

Prevent SSH from disconnecting idle sessions

If you leave PuTTY connected for long periods of time on tail -f /some/log/file you may have noticed the SSH server disconnects you after a while if there is no new input on that log file.

You could configure PuTTY to enable connection keepalive functionality, but you’d need to either do that for every session or every saved server in the list. The easier way is to enable this functionality on the servers themselves…