Archive for September, 2009

Rsync using SSH RSA auth key

Sep 23 2009 Published by under Security

rsynclogo

How to rsync files between two servers when remote server uses an RSA key for authentication.

Format:
rsync $options $host:$from $to

rsync -avz -e "ssh -i key.rsa" \
user@domain.com:/var/www /var/www/backup

The ‘-avz’ options are used for creating archive, being verbose and compressing the file transfer.

‘-e “$command”‘ specifies the shell command to use; in this case calling the SSH RSA key used for authentication

Comments Off

Resize and position Gnome Terminator

Sep 12 2009 Published by under Gnome

gnome-terminator

I am a huge fan of Gnome Terminator. Terminator is great because it allows multiple terminal instances to be run in a single window.

Since I usually run two or three separate terminal windows, I ofter find myself resizing the main window – so other istances can fit nicely. This can get very boring and time consuming when you need to do something on the fly.

After snooping around the help files, I found this nice little parameter which resizes and positions the Terminator window on my screen.

/usr/bin/terminator --geometry=1024x500+128+200

This command line can be added to Gnome-do or Gnome panel shortcuts, and it works great.

The first two parameters (1024×500) set the width and height, and the other two(128+200) set the padding from left and top of the screen.

Comments Off

Performance Optimization WordPress Plugins by W3 EDGE