Junk Food for the Brain

Open Source and Awesomesauce :)

Installing Python 2.7.2 on Centos 5.2

| Comments

Centos / RHEL5 come with Python v2.4.3, which was relased in 2006 and is as ancient as you can get nowdays. Even other application build scripts require Python >= 2.5 for building, e.g node.js & Spidermonkey 1.8.5. :|

This is my attempt at building a base Python distro that sits in /opt/python-2.7.2. My goal is to minimize depending on the installed system developement libraries; As in Enterprise-y environments, ‘polluting’ the standard OS image will result in a visit from the XKCD GOTO Raptor.

How to Program Better in Python

| Comments

If you have learnt Python to a certain degree, and can whip up quite a few scripts with it, you will be wondering where to go next.

You have this feeling that yeah, you can program, but you may be doing things the wrong way. Scouring through the Web for Python Tips & Tricks might do, but after haphazardly learning the language, you’re finally ready for a more structured approach.

That’s how I am currently feeling, which is when I found this book: Pro Python

It starts off at Advanced Basics in Chapter 2 and progresses on. I just got this book, and am slowly progressing through Chapter 2.

How to Use a Different SSH Key for a Host

| Comments

There are times when you need to use just one different SSH Key for a particular host. And you’re not allowed to add your own public key into the host’s authorized_keys file due to system limitations / policies etc.

This is where the ssh config file comes in handy.

How to Change Passwords in Linux Using a Shell Script

| Comments

There are times when you would need to change the local user password for a whole bunch of Linux machines at one go. If they weren’t using the a directory service like NIS or LDAP, you’d be in for a lot of pain.

Fortunately, the passwd command comes with a handy option that allows this relatively insecure method.