Archive for General

Quick&Dirty: keep ssh connections alive

A irritating problem started to occur some weeks ago: my ssh connections dropped off after some minutes of inactivity. With security in mind, this is not such a bad thing, but since I didn’t change anything neither on the server side nor on the client side, I suspect my ISP of having change some DSL line parameters…

Anyway, the following trick solved that issue; simply add the following line to your ~/.ssh/config file (or create it if necessary):

serveraliveinterval 60

This will send a keepalive message to the server each 60 seconds. I found this solution particularly suitable for my needs as I didn’t need to change the config of all my servers.

Quick&Dirty: get rid of this annoying beep

You know, that tiny little irritating beep that appears when typing the Tab or the Backspace keys too many times in the terminal… I was getting sick of hearing this damn sound since I switched back to fluxbox (under gnome, I disabled this in the preferences menu). Until I found this simple ear-saving command:

xset -b

I even miss the beep right now… but not for long!

Quick&Dirty: Exif data

I wanted to rename a bunch of pictures based on the date they were shot, but they got all the same creation date when transferring them to another PC.

Exiv2 saved my life, with the following simple command:

exiv2 -T /pic/name

which simple sets the file timestamp to the date contained in the Exif data. So great!