Configuring Wired LAN(internet) on Ubuntu


In this post I will explain the ways we can configure Wired LAN connection on Ubuntu. While configuring any network resource we always need the IP Address to connect to the Domain/Network System. And this IP Address we configure either manually or using DHCP option(DHCP – the Dynamic Host Configuration Protocol – allows network devices to automatically obtain a valid IP address from a server.). There are many networking utilities we can use to configure the network, Now let see Network Interface configuration Using Command-Line.

Step 1: Go to Terminal and Type the below command.

gksudo gedit /etc/network/interfaces (if you have GUI)
sudo vi /etc/network/interfaces (use vi if no GUI installed)

Step 2:
-> Change to set if using DHCP

auto eth0
iface eth0 inet manually
auto eth0
iface eth0 inet dhcp

-> Change to set if using Static IP

auto eth0
iface eth0 inet static

Step 3: Save the file.

Step 4: After you save the file, Its time to restart networking services.

sudo /etc/init.d/networking restart

Now go to Administration -> System Monitor and click on the Resources Tab and observe the Network History to see the Network connection graph.

Yepeee.. you are now connected 🙂

R Vashi


Installing Gadgets(screenlets) in Ubuntu


One good thing I liked most about Windows 7 is the Desktop Gadget Feature, Very small widgets displaying different contents like weather information, clocks etc etc. I was searching for the same thing in Ubuntu and found a term called “Screenlets”, These are small programs that float on the desktop and provide specific but useful functionality, such as telling the time, displaying a calendar, or showing the weather same like as I described for Windows 7 Gadgets.

To install the same follow the below steps.

1. Choose  System Menu -> select Administration  ->  Synaptic Package Manager.

2. Package Manager dialog box, search for the keyword “screenlets“,  this will bring down the packages “Screenlet, Screenlet-docs”,

3. Check the “Screenlets” and click on “Mark For Installation

4. Now click on Apply button to download and install the packages.

5.  Once installation finish. Quit the Package Manager.

6. Go to Application Menu -> Accessories -> Screenlets

7. Screenlets dialog will appear with all the gadgets..oops screenlet. Click on the clock screenlet and on the left side click on “Launch/Add“.

Now Screenlets are ready to decorate your desktop. ENjoy!!! UBUNTU.

R Vashi

Configure Ethernet Connection(internet) in Ubuntu


In this post I will show how to set up an ADSL connection.You need to have to an Internet Service Provider, and your Internet connection must be installed and functional. You will need to configure your username and password for the connection. You must also have an ethernet card connected to your PPPoE modem with the correct type of cable.

And before going further make sure you have the PPPoE package installed in your ubuntu version. This package is installed by default, but can be missing if the configuration has been changed.

If missing login as root admin: open terminal type apt-get install pppoeconf

Now lets see how to setup a modem.

Open Applications → Accessories → Terminal

In the terminal type: sudo pppoeconf

A text-based menu program will guide you through the next steps, which are:
1. Confirm that your Ethernet card is detected.
2. Enter your username.
3. Enter your password.
4. If you already have a PPPoE Connection configured, you will be asked if it may be modified.
5. Popular options: you are asked if you want the “noauth” and “defaultroute” options and to remove “nodetach” – choose Yes.
6. Choose Yes for Use peer DNS –
7. Choose Yes for Limited MSS problem.
8. Choose Yes for When you are asked if you want to connect at start up.
9. Finally you are asked if you want to establish the connection immediately.

4.  Once done, your connection should be working.

To start your ADSL connection on demand, in a terminal type:  sudo pon dsl-provider

To stop your ADSL connection, in a terminal type:  sudo poff dsl-provider

PS: Make sure to configure the basic firewall(Firestarter very popular), as it is recommended to protect the system from vulnerable attacks.

R Vashi

Installing DOCK toolbar in Ubuntu Linux

Hi All,

Cairo-Dock is an animated application launch bar for the desktop, comparable to the dock in Mac OS X or Rocket Dock (for Windows). Now, you can use Cairo-Dock with OpenGL (to use your graphic card!).

To Install the DOCK tool-bar, Simply follow the below steps.

Step 1: Open Terminal Window

Step 2: Type the below command

sudo apt-get install cairo-dock cairo-dock-plug-ins

Follow the instructions on the console.

After the installation, Click on

Application -> Accessories -> Cairo-Dock Open-GL

For more details

Hope this helps.

R Vashi

Install MYSQL Client and server on Ubuntu Linux

HI All,

In this article I will show how to install MYSQL client and server packages. To Install simply run the below command in Terminal.

sudo apt-get install mysql-server mysql-client

You will be prompt for the administrator password before the installation begins, Supply a valid password. And then follow the
instructions on the console, Once done the installation will prompt for the MYSQL Root password,
by default the password is blank(empty). Set a Valid ROOT user password to run MYSQL.

Once the operation is done, clear the console and type the below command to run the MYSQL.

mysql -u root -p

MYSQL will prompt for the root password, supply the same which you have set during installation.

Hope this helps.

R Vashi

Common terminal command on UBUNTU

Hi All,

In this article I will explain few very common terminal command which we can use on UBUNTU.

Adminstrative Command(will prompt for Password)
sudo command
– run command as root
apt-get – used to install, remove, upgrade and more.

Managing Files and Text

cp – Copy

ls – List

mkdir – Make a new Directory/folder

mv – Move

rm – Remove

grep – Search for Text Strings

less – Display Part of File, a more sophisticated version of more (“less is more”). It can scroll backwards and has more options than more.

more – Display Part of File in a termial, there is no need to start up an editor or word processor

tail – View the End of a File

head – Display Start of File

Change the directory

cd – Change Directory

pwd – Print Working Directory

Managing System and Program Information

cal – Calendar

date – Date


fsck – File System Check

Managing Network Connections

chkconfig – Check Activated Services

ping – Test Network Connections

ftp – file Transfer Protocol

host – Check IP of Domain

ifconfig – Configure Network Devices

netstat – Display Routing Table

route – Set Routes

telnet – Connect to telnet

traceroute – Display Route

Manage Drives and Formats

mount – Mount a Drive

umount – Unmount Drive

fdisk – Format Disk

dd – Duplicate Disk

df – Disk Free Space

Managing Rights to Files and Directories

chmod – Change Mode

su – Switch User

Managing Users and Groups

passwd – Create Password

groupadd – Add a Group

groupmod – Modify a Group

chgrp – Change Group

groupdel – Delete Group

Hope this helps.

R Vashi

Installing ANT on Ubuntu

Hi All,

Installing ANT on Ubuntu is fairly very simple. All We have to do is to open the terminal window. And simply run the below command.

sudo apt-get -u install ant

Once you run the command You will be prompted for the admin password and the installation begin.. Once Done simply type ANT in the terminal..

Hope this Helps.

R Vashi

Installing Tomcat6 in ubuntu linux

HI All,

I have recently started using Ubuntu, And it is really a very wonderful OS to work upon, I came across a very helpful article to install Tomcat on Ubuntu.

Apache Tomcat is a free and open source software implementation for JavaServlets, providing support for Java Server Pages (JSP). Many popular web-based applications use servlets. You may choose to run Tomcat with either Sun’s Java implementation or the OpenJDK implementation of Java.

Because Tomcat version 6 was included in Ubuntu 9.04, installing a working Tomcat server is reasonably straightforward. However, before we can start installing Tomcat itself, we must first install Java.

Install tomcat 6 in ubuntu — run the below command in terminal.

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

This command downloads and install the following packages

tomcat6 : Servlet and JSP engine

tomcat6-admin : Admin web applications

tomcat6-common : Common files

tomcat6-user : Tools to create user instances

tomcat6-docs : Example web applications

tomcat6-examples : Example web applications

To start, stop,  restart and get the server status

Start tomcat server

sudo /etc/init.d/tomcat6 start

Stop tomcat server

sudo /etc/init.d/tomcat6 stop

Restart tomcat server

sudo /etc/init.d/tomcat6 restart

Get tomcat server status

sudo /etc/init.d/tomcat6 status

After installation type http://localhost:8080  or http://serverip:8080/examples/servlets/ in your browser.Now you should see tomcat welcome page

* To enable admin web based features add the following lines to your /etc/tomcat6/tomcat-user.xml

<role rolename=”manager”/>
<role rolename=”admin”/>
<user name=”admin” password=”secret_password” roles=”manager,admin”/>

* you should be able to see your manage page here http://your_ip_goes_here:8080/manager/html

* log in with the name and password you just set in /etc/tomcat6/tomcat-users.xml

* ls /var/lib/tomcat6 directory.

* you should see these directories conf, logs, webapps, work

* webapps is where your servlets will go ( or at least a xml file that points to them )

* as a test download this war file

* then use the tomcat management page and select war file to deploy ( in teh deploy section) to upload this file to your server

* optionally just wget directly to the webapps folder

* tomcat should recognize the war file and expand it with everything you need

* browse to http://serverip:8080/SimpleServlet/

Change tomcat server to run on port 80

If you want to Change tomcat server to run on port 80 follow this procedure

You need to edit the /etc/tomcat6/server.xml file

nano /etc/tomcat6/server.xml

Now replace the part that says Connector port=”8080? with Connector port=”80?

Save and exit the file

Restart tomcat server with the following command

sudo /etc/init.d/tomcat6 restart


R Vashi