How I got the Internet connection working in Ubuntu server 14.03.

I installed Ubuntu server 14.03 in a Virtual Machine and after installation the Internet connection was not working. To fix this I added the nameservers to the /etc/resolv.conf file like this. nameserver 8.8.8.8 nameserver 8.8.4.4nameserver 8.8.8.8 nameserver 8.8.4.4 After saving this file, I ran this command. sudo service resolveconf restartsudo service resolveconf restart This fixed … Read more

The iftop command. A good way to keep track of network usage on Linux.

The monitoring of your network interfaces just got a little easier with the iftop command. This command will return information about a certain network interface and will allow you to see who is hogging your bandwidth. Read more here: http://linux.die.net/man/8/iftop. This is one very useful Linux command. Start it like this if your network interface … Read more

Networking script I am working on. This prints some information about your machine.

This Perl script will print some information about your networking set-up on your Linux machine. #!/usr/bin/perl   use warnings;   $iface = "eth0";   @data = `ifconfig`;   $net = $data[1];   $kernel = `uname -r`;   printf("\n*————————————-*\n");   printf("The IP of %s is:%s\n", $iface, $net); printf("The kernel version is: %s\n", $kernel);   printf("\n*————————————-*\n");#!/usr/bin/perl use … Read more