Generate SSH Keys…

Recently I needed to do password less login for services to be automated. I could make scripts run in cron jobs, which could run in the middle of the night.

Any good operating systems, like a Linux, Mac OSX, freeBSD etc will have ssh built in.

To generate the ssh key file is a simple process. Then you just need to copy the generated file to the destination machine.

Step One:
Generate the SSH keyfile

When you generate the key, it will ask you to type a password for the ssh key. Most people like I do not type a password/paraphrase due to you need to add this later into a script.

I change the encryption bit from the default 2048 to 4096. You can add more encryption but remember the more you add, sometimes it takes longer to log in as the host machine needs to process the keyfiles.

Once this is done you need to copy the file to the remote/destination machine.

Step Two
Copy the newly created keygen file to the remote/destination machine.

Once your public ssh key has been copied across, you now can use passwordless logins across your machines. Enjoy…

OS X 10.8 Mountain Lion…

apple logo
Apple Logo

I decided to update my macbook air 11″ with 2gb of ram to OS X 10.8 mountain lion. So far the impression is, that it is faster in speed than 10.7 lion.  I have not made any use of the new features like notifications. Which is supposed to intergrate social media into Mountain lion. I found all software I use could run on Mountain lion. I did have to update a few of these to a later version, but that was just some time, it took for this to happen via the App store.

Xcode command line tools…

apple logo
Apple Logo

Seems there is a issue when you install the xcode developers tools from the Apple app store, it does install the command line tools, if you want to run apps like homebrew etc. You do not need the command line tools to install homebrew, but you do need the command line tools.

To install the command line xcode tools. You need to start up xcode, the go file > preferences > downloads and the click on install Command line tools. Its that simple. Just sit back, wait for about 100mb to download and install.

XQuartz is the new X11…

xquartz logo
Xquartz Logo

With my upgrade to 10.8 OS X Mountain Lion, one of the downside I found as a Unix System Administrator is that Apple have decided not to package X11 into the operating system anymore. I require X11 to run X apps to my OS X desktop. After some google searching X11 is now a seperate package. You need to download the XQuartz package from here http://xquartz.macosforge.org/landing/ Once downloaded, just install and reboot your Mountain Lion machine and reboot.

Mac Wyse 60 Terminal Emulation…

Recently I have had to go back to Wyse 60 terminal emulation. I needed Wyse 60 terminal emulation due to legacy applications that have no other option but to be accessed. I could spend a fair few dollars on a commercial Wyse 60 terminal emulator. But in the spirit of free and open source, there is a free Wyse 60 terminal emulator out there for use.

You can download the Wyse 60 source from the following site.

http://code.google.com/p/wy60/

You can also directly download the source code from…

http://code.google.com/p/wy60/downloads/detail?name=wy60-2.0.9.tar.gz&can=2&q=

Once you have the source code downloaded, you can upack the source code.

# tar -xvfz wy60-2.0.9.tar.gz

Now we can compile the source code and install the executable.

# cd wy60-2.0.9
# ./configure
# make
# make install

Once you have compiled an installed the code. To activate the Wyse 60 emulation you type.

# wy60

Once this is run, you screen is now in Wyse 60 emulation, and you are able to ssh etc like any other screen, but in Wyse 60 emulation.
Or Under Ubuntu 10.04, you can just add this as a package.

Ubuntu 10.04

# apt-get install wy60

This is simpler than compiling the code.