Category Archives: Ubuntu

Configuring Wired LAN(internet) on Ubuntu

Hi,

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)
OR
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
TO
auto eth0
iface eth0 inet dhcp

-> Change to set if using Static IP

auto eth0
iface eth0 inet static
address 192.125.1.10
gateway 192.125.1.2
netmask 255.255.255.0

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 🙂


Thanks,
R Vashi

Installing Gadgets(screenlets) in Ubuntu

Hi,

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.


Thanks
R Vashi

Configure Ethernet Connection(internet) in Ubuntu

Hi,

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.
https://help.ubuntu.com/8.04/keeping-safe/C/firewall.html


Thanks
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 https://help.ubuntu.com/community/CairoDock

Hope this helps.


Thanks
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.


Thanks
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


Troubleshooting

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.


Thanks
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