Install/Update Webmin

Posted on March 31st, 2008 in Coding, Tools, Work by abdallah

I’ve always liked one-liners. Here’s one (almost) for installing the latest webmin on almost any linux out there!

[ bash Code ]
  1. #!/bin/bash
  2. EXT=".rpm"
  3. PMAN="rpm -U"
  4. if [ -e /etc/debian_version ]; then
  5. EXT=".deb"; PMAN="dpkg -i"
  6. fi
  7. wget http://webmin.com -O - | grep $EXT | grep -o ‘http://[^"]*’ | xargs wget -O webmin_latest$EXT; $PMAN webmin_latest$EXT

You could copy and past the above in a terminal session, or the following:
wget http://mt.trickos.com/dev/installwebmin.sh; sh installwebmin.sh

Network Monitor for Avant Window Navigator

Posted on March 24th, 2008 in Coding, Mood by abdallah

I’ve been using AWN for a while, but was frustrated that some basic applets are not there. So I wrote one, last night, and will try to get my head around pygtk to write others if I find the time :)

the applet I needed is the Network Monitor applet. Here’s a snapshot of my desktop

You can get the 0.0.2 tarball from here

Looks like someone at http://awn.planetblur.org picked up on this post. And I’ll need to get my act together and bundle the applet in a more decent manner! Will do that as soon as I finish the project I’m working on atm (night job!)


added some features, check the code header for more info :)

my dev ide

Posted on March 14th, 2008 in Coding, Work by abdallah

OK, so what else would one need from an IDE. It’s all there in a simple script. Here’s my django IDE :)

[ bash Code ]
  1.  
  2. gnome-terminal \
  3.         –hide-menubar \
  4.         –tab-with-profile=dev –working-directory=/home/abdallah/Projects/ -e "python manage.py runserver" -t "server" \
  5.         –tab-with-profile=dev –working-directory=/home/abdallah/Projects/ -e "python manage.py shell" -t "python shell" \
  6.         –tab-with-profile=dev –working-directory=/home/abdallah/Projects/ -t "my editor" \
  7.         –tab-with-profile=dev –working-directory=/home/abdallah/Projects/ -t ‘my shell’
  8. firefox http://localhost:8000/admin/ &
  9. firefox http://www.djangobook.com/en/ &
  10.