Linux

Archive for the ‘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 Simpl[...]


Apt links in webpages

You can insert apt links in HTML by simply making a link to apt:package_name. For example: apt:yeahconsoleInstall YeahConsole. [...]


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[...]