Friday, May 16, 2008 Rocks finally decent streaming radio for the iPhone

ATI Mobility Radeon 9600/9700 under Ubuntu 8.04 Hardy

To get the Advanced graphic effects working add the following to then end of your kernel /boot line in /boot/grub/menu.lst

highres=off nohz=off irqpoll

So now your kernel line should look something like this

kernel /boot/vmlinuz- root=UID=a7e7a1el-97df-4718-be2b-2cbe5e4ad1e8 ro quiet splash xforcevesa highres=off nohz=off irqpoll

Now you should have a laptop that wont freeze up when enabling advanced graphic effects.

Tuesday, May 13, 2008

How to SSH -Keygen in one command Part I.

During the course of a day I need to shell into a handful of different linux servers to perform a variety of sys admin tasks . To do this securely I use the ssh 2 protocol. Since the ssh protocol is encrypted no text is passed via clear text, which could make it easy for any bad guys to sniff or capture the packets and find out my passwords.

Using public and private keys ssh authorization and text expander I have my login down to as few as four keystrokes. The best part of this is that after creating all of my authorized_keys I can put them on my iPhone and then ssh in from anywhere without having to lookup my passwords.

In this post I will cover the creation of the authorized public_private keys and sending it to the server with one command line.

For this to work correctly you will have to enable SSH on the computer you are sending from and unblock or map your ssh port in your firewall and or router.

On your local computer create a strong dsa public private key pair using the shell command below.

local-computer$ ssh-keygen -t dsa

(Do not enter a pass phrase, just hit enter)

Now lets transfer the key to your user dir on the host machine

ssh yourusername@server_to_connect_to "echo `ssh your-computer.local cat .ssh/` >> .ssh/authorized_keys"

Obviously you want to replace yourusername@server_to_connect_to with your login@the ip address or domain name of the server you are connecting to.

For this login you will need to enter your passwords, first of the local computer and then of the server you are connecting too.

After this step you can try to connect using ssh and see if you can can log in without a password.

If you cant log in without a password check the server logs, if you see an error like this

Authentication refused: bad ownership or modes for directory

If you do you will need to change permissions on the server by issuing the following commands on the server.

server$ chmod go-w ~/

server$ chmod 700 ~/.ssh

server$ chmod 600 ~/.ssh/authorized_keys

Now try to connect again using ssh

Success!! Now issue the command again on each of the servers that you need to ssh into and you are good to go.

In part 2 We will cover using text expander on the Mac or auto-key on linux to shorten your logins down to a few keystrokes.

In part 3 We will cover using this method from your iPhone.


The Sun is Shining once again

Monday, May 12, 2008

Working from home today, severe from all the rain, the pain in my shoulder is.

Sunday, May 11, 2008

Home cooking dinner...
Home again home again! Raining again... time to watch a movie perhaps.
going to visit mom.
Happy mothers day to all you mothers!

Saturday, May 10, 2008

Blogging Applications for OS X

I am looking for the perfect blogging application for the Mac, that will make posting to a blog a natural part of my daily routine. At the moment I am typing this post in Qumana, a free application that is also available for Windblows and Linux.

It has some nice features like WYSIWYG Source View toggle, Previews, Categories and trackbacks, but It's more of a dedicated I'm going to sit down and write a blog post kind of application. I want something that I can just quickly write down a thought on something I'm working on or viewing in my browser and send it off as a post. Maybe I will give ScriptFire and Flock a spin.