Airtel Broadband connection on linux machine

I have a dual boot (Windows XP, openSUSE) PC.

I have my airtel broadband connection activated.
Airtel Engineer had done the setup and activation on WindowsXP.
After he left, I did a reboot to openSUSE.

Then I just followed the instructions as given in the below site.
Pasting it without changing a word


yesterday i sweated a lot for bringing up airtel braodband in linux. to save water (!) please read the instructions.
airtel router ip , subnet mask , supplied IP
generally it is
to find out this, use windows. connect to windows and wait for the “LAN in now connected” pop up
open up a command prompt and type in “ipconfig”
from the listing, look for something like this
Ethernet adapter Local Area Connection:Connection-specific DNS Suffix . :IP Address. . . . . . . . . . . . : Mask . . . . . . . . . . . : Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : => your machine’s IP (note this down)
Subnet Mask . . . . . . . . . . . : => mask (note this down)
Default Gateway . . . . . . . . . : => airtel router’s IP (note this down)
We are all set to get into linux. Follow the steps in their order
From a shell execute the commands
1. $ ifconfig eth0
this sets IP for eth0 . to know which eth link you have, execute the command “ifconfig -a” and look for the link eth
2. $ route add default gw
this sets default gateay as airtel router
3. $ vim /etc/resolv.conf
add this line
to the file’s end after commenting out all the other lines (for commenting, put a “#” at the beginning of a line)
4. $ ping
it will work
Thats it. Browse away


Note: ifconfig, route commands require superuser privileges
Type su, then enter password and do steps 1 through 3
For fourth step, superuser privilege is not required.
Type exit and call the ping command as a normal user

Within a minute I was able to browse from my openSUSE.
That was really nice.

Then I did a restart into openSUSE
Now I was not able to browse anything.
Sadly I had to repeat the above steps again to start with.

Then I looked up the Control Center to see if these settings
could be saved. Couldn’t do it successfully.

Finally I did a try as given below; it worked right away
Computer -> Control Center -> Network Settings
-> Global Options:

  • Traditional Method with ifup
  • Enable IPv6
  • Hostname to send AUTO
  • Change Default route via DHCP

-> Overview -> Edit
-> General

  • Activate device at boot time

-> Address

  • Dynamic Address DHCP

-> Hardware

  • Device name eth0

Syntax Highlight For System Verilog Files

Enable syntax highlight for sytemm verilog, verilog preprocessor files with extensions v, sv, vpp, svh, svhpp

Create a file named “.vimrc” in your home directory [*nix]

Put the following lines in that file

“File Begins here

“Note: Comments in vim script begin with double quote

“Filename : .vimrc

“Author    :  A.G.Raja

“Website  :

“Show line numbers

set nu

“Source the syntax file

so $VIMRUNTIME/syntax/verilog.vim

“Add file extensions to be highlighted

au Syntax sv runtime! syntax/verilog.vim

au Syntax svh runtime! syntax/verilog.vim

au Syntax vpp runtime! syntax/verilog.vim

au Syntax svpp runtime! syntax/verilog.vim

au Syntax svhpp runtime! syntax/verilog.vim

“End of file

Linux Desk Calculator

Terminal command to perform arithmetic operations

dc [OPTION] [file …]

-e    –expression=EXPR    evaluate expression

-f    –file=FILE                    evaluate contents of file

Basic arithmetic uses the standard + – / * symbols but entered after the digits

To print result type p

To quit dc type q


Monitor Terminals Using script Command

Open a terminal and type as below

[raja@AGRAJA ~]$ mkfifo output
[raja@AGRAJA ~]$ script -f output

Open another terminal and type as below

[raja@AGRAJA ~]$ cat output

Now return to first terminal and execute any command.

Everything on the first terminal is updated on the second terminal also.


Multiple Windows in a Terminal

Manage multiple terminals using screen utility

[raja@AGRAJA ~]$ screen -t name_of_screen
[raja@AGRAJA ~]$ screen -t name_of_screen2 screen_no

To navigate between screens:

1) CTRL+a

2.1) Type to list available screens; use arrow keys to select


2.2) Type w to list screens on the title bar for a moment.

i) CTRL+a

ii) type screen_no (it can be 0, 1, 2 … )

To scroll within a screen

1) CTRL+a

2) ESC

3) Page-Up/Page-Down


Never type ls Again

It is compelling to type “ls” every time after

1) changing directory

2) copy/remove files

3) program is run; output file is created

etc. etc. …
Here’s a script that runs on an infinite loop that

1) allows type any command as usual (no auto-complete is available)

2) automatically “ls” after every command

# save file as cdls
# chmod 755 cdls
# type "exit" to terminate
while [ 1 ]
    read shell_command


A more useful form of the script is given below

# save as cdls
# chmod 755 cdls
# cp cdls /bin  
tput cup 24 0
while [ 1 ] do
tput setb 9
tput setf 0
echo --------------------------------------------------------------------------------
ls -F --color=auto
echo [`whoami` `pwd` `date`]$
tput setb 0
tput setf 7
read cmd1
tput cup 24 0

Creating a linux man page

Structure of a Man page

Title Header (.TH)
Section Header (.SH)
Name of command (.NM)
Paragraph (.TP)
See also


.SH NAME mymanpage \- A Demo
.SH SYNOPSIS .B mymanpage [\-option ...]
.SH DESCRIPTION .PP \fImymanpage\fP is a complete application that
 does nothing useful.
.PP It was written for demo
.SH OPTIONS .PP It doesn't have any, but let's pretend, to make
 this template complete:
.TP .BI \-option If there was an option ...
.SH RESOURCES .PP mymanpage uses almost no resources.
.SH DIAGNOSTICS The program should provide info about what it does
.SH SEE ALSO The only other program we know with this little
 functionality is the hello world application.
This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published
 by the Free Software Foundation; either version 2 of the License,
 or (at your option) any later version.
.SH BUGS There were a few bugs


After saving the file, type at the terminal:

[raja@AGRAJA~]#groff -Tascii -man mymanpage.1

Installing the man page:

[raja@AGRAJA~]#gzip mymanpage.1
[raja@AGRAJA~]#cp mymanpage.1.gz /usr/share/man/man1

Test the man page:

[raja@AGRAJA~]#man mymanpage