Monitor network usage in Ubuntu

Many a times when we are using our computer for surfing the internet, or other network activities, we feel that though we have a good internet connection, but the browsing speed is not good.

It may happen so that the bandwidth is being consumed by some unwanted application or process running in the background and little or no bandwidth is left for the browser.

But how can we diagnose which application is making how much usage of the internet bandwidth?

Luckily there is a small application available for Ubuntu which does the real time monitoring of the internet bandwidth usage and displays it for you on the screen. The application is “NetHogs”.


 

For installing use the following steps:-

  • Open a new terminal window using key combination Ctrl+Alt+t
  • On the command prompt issue the command :- sudo apt-get install nethogs
  • After the installation is over, just issue the command :- sudo nethogs
  • Real time data usage of the network will be displayed in the terminal
  • To close the application use key combination Ctrl+c

Once you have the details of the applications or processes hogging you bandwidth, you can close them or selectively kill them.

 

Create WiFi Access Point On Ubuntu

Have you got a computer with a wired internet connection and a wireless LAN card available and you want to connect your wi-fi enabled devices to internet, then here is a solution to create a Wi-Fi Access point using your computer. Hence you can share your single internet connection with multiple devices, as well as have the flexibility of internet access on the go.

It is assumed that you are having the following available with you:
(a) A computer running Ubuntu operating system (we used 14.04 LTS for this setup).
(b) A wired internet connection.
(c) A wireless LAN card.

For the purpose of creating a hotspot or access point we will utilise ap-hotspot software.

First of all install ap-hotspot as follows.

(a) Open a new terminal from dash or use keyboard shortcut “ctrl+alt+t”.
(b) Issue the following commands in sequence:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

sudo apt-get install ap-hotspot

(c) After the installation is a success, issue following command to configure the hotspot or access point:

sudo apt-hotspot configure

It will detect your network connections and if all is correctly listed, it will ask you to enter an Access Point name (SSID) and access key (WI-Fi password).

(d) After above step we are ready to start our hotspot or access point. To start the hotspot issue the following command in the terminal:


sudo apt-hotspot start

(e) To stop the hotspot, issue the following command:


sudo apt-hotspot stop

Happy internet connection sharing with your wireless devices.

Internet Connection Ok But No Content Use Public DNS

Many a times we run into a very unique problem wherein we see that though we are connected properly to our internet service provider (ISP), but we are able to access a few sites only while others may not load or return a “host not found at given address” error.

Typical symptoms of above problem will be”

1. The connection to the ISP is shown as connected on your PC.
2. If you are connected through ADSL modem, you see the DSL light glowing constantly as well as the internet LED blinking, showing internet activity OK.
3. You are able to see the web page of few sites, while others may not load at all.
4. Your internet access time is very slow for certain sites.
5. Till very recently you had a perfect internet connection and suddenly you are not able to access certain sites etc.

Above may be a result of improper DNS i.e. Domain Name Server settings in your network settings.
Generally we are provided with a DNS server setting which our PC fetches from the ISP at connection start up. God forbid if the ISP’s configured DNS server goes down, then you run into the above kind of problems.

Thats too much for the explaination of the problem, but whats the solution????

All you have to do is to set up your DNS entry to a public DNS may be one hosted by Google (at 8.8.8.8) and this is how you do it:

On Windows platform:

1. Open Network Settings in Control Panel.
2. Right Click and select properties on the network adapter, through which you connect to your ISP i.e. through which you access your internet connection. It can be the wireless adapter if you connect through wi-fi or LAN/ ethernet card if you connect through UTP cable.
3. A pop up window will show you certain properties of your network adapter. Scroll down till you see an entry “TCP/IP”. Select it and click on properties button below (which gets highlighted as you select “TCP/IP”)
4. Another pop-up window will show you the IP address and DNS settings.
5. Go down to the Domain Name Server (DNS) address. Generally it will be selected as “Obtain automatically from ISP”.
6. Change it to “Use following DNS server” and punch the following values into the address field:

8.8.8.8

7. Click on OK buttons till you reach back to the network connections window.
8. Now you may check for loading of websites in your browser, and the problem should be resolved.

Happy Surfing…..