Archive for April, 2010

lighttpd dir-generator-plus.php

Friday, April 30th, 2010

I’ve patched a little bit the wonderful dir list generator from Evan Fosmark, i’ve added ability to add hidden files list which you would like to hide from being displayed.

For instance you don’t want to show the dir-generator-plus.php file and the included folder images directory; I also include footers sometimes so i prefer to them as well.

download it dir-generator-plus.php

The usage is simple, edit your lighttpd.conf file at the host area:

dir-listing.activate = "enable"

index-file.names = ( "/dir-generator.php" )

for more info about the usage of Lighttpd dir listing please visit the lighttpd wiki

easy turn on ls colors for root

Thursday, April 22nd, 2010

in order to turn on the ls colors on your debian server for root user, just edit the /root/.bashrc file and uncomment there the following lines:
export LS_OPTIONS=’–color=auto’
eval “`dircolors`”
alias ls=’ls $LS_OPTIONS’

save and apply the new settings:

source ~/.bashrc

that’s all :)