Enabling git autocomplete in Centos 5

We’ve recently started working on the Centos 5 distribution of Linux in the office. It’s all good, and git was already installed when I started work. It became a little irritating that it’s autocomplete functionality wasn’t enabled however. After a bit of searching, I came across the following blog:

http://cakebaker.42dh.com/2011/04/06/bash-autocompletion-for-git/

Great stuff. Having followed those instructions, the autocomplete in git was working fine.

Error when starting JBoss in Linux

When starting up the JBoss application server, I was getting some weird errors being logged at the start, regarding “command not found” when parsing the run.conf file.

It turned out the issue was due to the run.conf file having Windows style line endings, and it wasn’t being read correctly in Linux.

To fix this, I converted the file using dos2linux on the command line.