2010/12/11

Cheapass Host Profile

Small project I am working on. It is java based, so you will need to install it (see the previous post on howto use the cheapass host profile on your vma)

Cheapass host profile isn't a full replacement for Host profile. Instead it allows you to create one xml with a lot of setting in it which you can the use to generate host specific configuration scripts. You can download the package from https://sites.google.com/site/tendertechie/home/chp.tar.gz?attredirects=0&d=1

When you download the tar you will need to extract it using the following command
tar -xzvf chp.tar.gz
This will create a subdirectory cheaphostprofile. Enter it by executing
cd cheaphostprofile


In the directory there a two important things. First of all the config.xml. This is an example xml of all possible "configurations" at this point. The xml is quite easy to understand. The other thing in the directory is the run script. If you run this command a script directory should be generated with a script for each esx host you specified and a runall script to run all the other scripts. Execute it by executing the following command
./run

In the backend, the cheaphostprofile is just a "wrapper" around fmpp. This is a template engine. The added value of cheaphostprofile is the preconfigured template for a script executable in a vMA. For more information about the fmpp, go to there website (lmgtfy). The template is under chp/src/autoconfig.cfg .

Installing jre on vMA

Title says it all! I needed some java on my vMA (for a purpose I'll blogging about later on). First of all getting the JRE. You can download it from
You will need the x64 rpm

I transfered the binary to my vMA via scp, but ofcourse any other method like wget for http transfers or ftp will do.

After I got it on my vMA I chmodded it
chmod +x jre-6u22-linux-x64-rpm.bin.sh
This makes it "executable"

Then I ran the executable
sudo ./jre-6u22-linux-x64-rpm.bin.sh
You will need to enter your password so you can execute the install as root (admin)

When the installation is done, you will need to configure the JAVA_HOME variable. You can do this by executing
sh -c 'echo "export JAVA_HOME=/usr/java/latest/" >> /etc/profile'

Logging out and in should then complete the installation

2010/12/08

Youtube API via Javascript and XML

Very quick post because I am no longer in the mood of writing anything, but I just wanted to share this with the world :)

Probably full of bugs and so on but I was "just" (5hours) having fun with some javascript youtube hacking. Here is the code http://users.telenet.be/narcose/yt/youtubequery.html

You can find everything you need in http://users.telenet.be/narcose/yt/ . Most interesting is probably the json response you can use to get more data out of the queries.

(Important, you will need to upload the html to a webserver because otherwise some callbacks from flash won't work as they would be redirected to local files and this is not allowed for some reason. Also, my code only seems to work in Safari/Firefox!)