Append public key to other host’s authorized_keys

This is the command I always use:

$ cat .ssh/id_rsa.pub | ssh user@hostname "cat >> .ssh/authorized_keys2"

15 December 2011 ·

Server Uptime

So I managed to upgrade my server from CentOS 5 to Ubuntu 11.10, here’s the uptime result before the upgrade:

[jerome@li10-25 ~]$ date Fri Dec 9 07:41:37 EST 2011
[jerome@li10-25 ~]$ uptime 07:41:39 up 529 days, 9:34, 1 user, load average: 0.00, 0.01, 0.00

529 days up and never had a problem. Linux power :D

11 December 2011 ·

Change Cygwin to use ZSH by default

Since Cygwin is using mintty, the default shell is bash. I found a way to use zsh by default. All you have to do is edit the Cygwin Terminal shortcut and replace target field.

From:
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -

To
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login

8 December 2011 ·

About Me

Flickr Images