Category Archives: Networking

Quick and easy sharing of a directory over HTTP in Linux

Say you want to share a folder for a friend. What better way than pointing him to an URL? Put this in your .bash_profile and login to your account. alias webshare=‘python -c “import SimpleHTTPServer;SimpleHTTPServer.test()”‘ Now cd to the directory in question a do a simple webshare command. That folder will be accessible from any browser by typing http://your_ip:8000Alternatively, you… Read More »

Ping all the hosts in /etc/hosts

Did you know you can ping all the hosts listed in the /etc/hosts file with one command? Do it with for i in `grep -v “^#” /etc/hosts | awk ‘{print $1}’`; do ping -c 1 -w 2 $i ; echo; done

Quickly install a server in Ubuntu

It doesn’t get easier than this. Open up a terminal in Ubuntu and type sudo tasksel An ncurses screen will then allow you not only to install a LAMP server in three moves but also select a Samba, Tomcat Java server, OpenSSH, VM host server, DNS server or one of the existing Ubuntu spring-offs.