chattr: command not found

Solution: Install e2fsprogs:

apt-get install e2fsprogs

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.