Archive for category GNU/Linux

Buying a new windows laptop? Then this is worth a reading.

If you are going to buy a new windows laptop, then you might be interested in reading this.

In this post I will just touch the normal and common problems we face with windows laptops and the remedies I followed.

Here we go.

A. Once your laptop’s initial config is done(setting up the users for the first time use), DO NOT connect to internet or DO NOT install any software.

B. Restart your lappy, and set the BIOS admin password(May be you will have to press DEL button while your lappy boots). This will be helpful for protection from H/W tampering and misuse.

C. Always try to use the Genuine Windows. And keep it regularly updated.

D. Try to insure your laptop. Security from theft.

E. Some of the games are still supporting Windows XP. So you might wanna download this in case you are gaming fan.

F. Partitioning the drives. ***This is the most common issue***
All windows lappys mostly come with a single MAJOR partition which will be used for both Windows and personal usage.

But its always recommended to have a separate partition for your personal stuff. Which will give you the freedom of completely formatting the windows partition if required.

So here is what we can do to create a new partition for our personal usage keeping the windows intact.

Right Click on My Computer > Properties > System Protection > Protection Settings (Click on Windows partition and click configure button)

Then take below two steps
1. Turn off system protection
2. Disk space usage > Max usage > Keep it around 80GB
3. Apply – OK

4. Run > diskmgmt.msc
5. Right click on windows partition > Shrink volume
6. Enter the new partition size you want to create in the amount of space to shrink. (Remaining space will be kept for windows partition, so be careful while choosing this value. I always recommend to have around 100+GB for Windows 7. So you might need to keep the “Total size after shrink” to equal or 112640MB ~110GB)
7. Shrink.
8. Now check your disk partition table. It should be having the freespace you want.
9. You can play around with that like what ever way you like.

10. LAST but important*********
Revert the first 3 steps we did to original. Keep the max disk space usage to 80GB. That should be fine.

Here is my new partition table layout.


Here we end with having our partition table and genuine windows as well as Linux.

Good luck.
See you again.

Thanks for your time. Comments are welcome.


, , ,

Leave a comment

Using a GSM Cellphone as a GPRS Modem

hi all,

we know that .. in todays our pals are facing much problem in connecting to internet in Linux using modems.The following will let you learn how to connect to internet using your GSM mobile and the GPRS connectivity.

Before starting i will tell you my system configuration

— Intel 2.66 AM64T on Intel 915 GVW, 512MB RAM, 160 GB HDD

— Ubuntu Edgy 6.10 + Gnome

— Sony Ericsson K320i

So here we goes….

Step 1:

First connect your mobile to your system through the USB connectivity.

And chose the option “phone mode” (If its available)

Step 2:

Now its time to configure your mobile, Open a terminal and login into root account there.

$ sudo su

# wvdialconf

ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — OK
ttyACM0<*1>: ATQ0 V1 E1 Z — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<*1>: Modem Identifier: ATI — Sony Ericsson K320
ttyACM0<*1>: Speed 4800: AT — OK
ttyACM0<*1>: Speed 9600: AT — OK
ttyACM0<*1>: Speed 19200: AT — OK
ttyACM0<*1>: Speed 38400: AT — OK
ttyACM0<*1>: Speed 57600: AT — OK
ttyACM0<*1>: Speed 115200: AT — OK
ttyACM0<*1>: Speed 230400: AT — OK
ttyACM0<*1>: Speed 460800: AT — OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyACM1<*1>: ATQ0 V1 E1 — OK
ttyACM1<*1>: ATQ0 V1 E1 Z — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM1<*1>: Modem Identifier: ATI — Sony Ericsson K320
ttyACM1<*1>: Speed 4800: AT — OK
ttyACM1<*1>: Speed 9600: AT — OK
ttyACM1<*1>: Speed 19200: AT — OK
ttyACM1<*1>: Speed 38400: AT — OK
ttyACM1<*1>: Speed 57600: AT — OK
ttyACM1<*1>: Speed 115200: AT — OK
ttyACM1<*1>: Speed 230400: AT — OK
ttyACM1<*1>: Speed 460800: AT — OK
ttyACM1<*1>: Max speed is 460800; that should be safe.
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”
ttyACM1<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

Step 3:

We will be getting the similar output as above…. when we wvdialconf

So after we need to identify at which port (or the device) the modem is identified. That can be found out by identifying the line

“ttyACM1<*1>: Modem Identifier: ATI — Sony Ericsson K320”

and now open the file /etc/wvdial.conf

# gedit /etc/wvdia.conf

It will be looking like

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = USB Modem
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>
New PPPD = yes

So in the above code we need to make some changes as per your mobile. Since the mobile is pointing to modem = /dev/ttyACM0, where as the wvdialconf returned /dev/ttyACM1 as the modem as shown above. So change the line “Modem = /dev/ttyACM0” in the /etc/wvdial.conf to¬† “Modem = /dev/ttyACM1.

And we cant just keep the other fields empty, so just dial your service customer care center and find out the dial up number for your GPRS-Internet connection. And ask for any username and password (if they exists for your GPRS service). Fill that fields in the /etc/wvdial.conf accordingly.

If you are not having any username and passwd … wvdial will not allow you leave those fields empty, so just fill them with your own data like

Username = bob

Password = crank

And be sure to keep the following line, if you are not having any username and password.

Stupid Mode = 1

Once you are sure that you, configured your wvdial fine. You can dial-up your GSM modem by following.


and you will be given your IP address and the server IP address displayed. You can hang the connection by just pressing the CTRL+C.

Hope you got it well.



Installing NS2 on Ubuntu Dapper LTS

Before proceeding to install NS2 and its packages, please ensure that you have already installed the following packages
gcc,gdb,g++, and make.

if not install them as like bellow

(NOTE: Since there is the differences between the ascii notations in browser and the gedit, some cahrecters like “- -” are represtented as “-” in the browser. So if you have faced any problem you can download the entire script here).

Pre-Install Configuration
Add the sufficient repositories


sudo cp /etc/apt/sources.list /etc/apt/sources.list_old

sudo cp sources.list /etc/apt/sources.list

sudo apt-get update

sudo apt-get install build-essentials

Installing NS-2.30 and other companents

Create a directoy named ns or ns2install

mkdir ns2install
cd ns2install

sudo su

apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev stow

ln -s /usr/include/tcl8.4 /usr/include/tk8.4

ln -s /usr/include/tcl8.4/tcl-private/generic/* /usr/include/tcl8.4/

ln -s /usr/lib/tcl8.4/http2.4 /usr/lib/tcl8.4/http2.3

echo “/usr/local/lib” >> /etc/

Next we need to download all the components required


Once all the components are downloaded, Proceed with configuring them

Installing OTcl ………………..

tar -xzvf otcl-1.12.tar.gz
cd otcl-1.12
./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
mkdir -p /usr/local/stow/otcl-1.12/bin
mkdir -p /usr/local/stow/otcl-1.12/lib
mkdir -p /usr/local/stow/otcl-1.12/include
make install
cd /usr/local/stow/
stow otcl-1.12

Installing TCLCL …………………..

tar -xzvf tclcl-src-1.18.tar.gz
cd tclcl-1.18
./configure –prefix=/usr/local/stow/tclcl-1.18 –with-tk=/usr
mkdir -p /usr/local/stow/tclcl-1.18/include
mkdir -p /usr/local/stow/tclcl-1.18/bin
mkdir -p /usr/local/stow/tclcl-1.18/lib
make install
cd /usr/local/stow/
stow tclcl-1.18

Installing NS 2.30 ….. tis would be taking a bit longer time … than all the other components

tar -xzvf ns-src-2.30.tar.gz
cd ns-2.30
./configure –prefix=/usr/local/stow/ns-2.30 –with-tk=/usr
make test
mkdir -p /usr/local/stow/ns-2.30/bin
mkdir -p /usr/local/stow/ns-2.30/man/man1
make install
cd /usr/local/stow
stow ns-2.30

Installing NAM and required libraries…

apt-get install libxmu-dev

tar -xzvf nam-src-1.12.tar.gz
cd nam-1.12
./configure –prefix=/usr/local/stow/nam-1.12 –with-tk=/usr
mkdir -p /usr/local/stow/nam-1.12/bin
make install
cd /usr/local/stow
stow nam-1.12

apt-get install perl-tk xgraph graphviz

Thats all …. NS2 is done … can now start with the tutorials




An Example to test NS-2.30 on your system

download a simple file from here

and open a terminal, type

ns ns-simple.tcl

then the NAM (Network animator) automatically opens up.


Waiting for your coments…..



IRC …The Real World

Do you ever think about your first program written in your first computer language?

Let me take consider that a child who learns C language will start his first program with this “Hello World !”



printf(“Hello World !“);


Is this …???

But have you ever think …… in any of the languages this is the first program you will ever learn it n`t it?

There lies the real thing… the ancient days of computers there are not that much no of people who learns computers and those who have knowledge about computers and their programing.

So how do they share their knowledge … they chat on-line…but in those days there are nothing yahoo messengers or any thing…but there is something like IRC.

Why to use IRC rather than Chat rooms

IRC includes a lot many no of of servers and channels. Some channels are official and the others are not. And there are lot many servers few of them are…,, like wise there are a lot many no of servers. And freenode is being prefer by a lot many no of communities as their official channels.

Practical usage of IRC

We need something like IRC client to use IRC. It just like yahoo messenger is needed to chat in y! network. So there are a lot many number of clients like .. mIRC,XChat,gaim etc. The preferred client is xchat (if you are using windows you can download it from here otherwise for GNU/Linux machines just type “sudo apt-get install xchat”)

first open of xchat ..

There is no need for the user account in IRC. Just give your nickname (nick), real name, server (you can edit a server list by clicking “Edit” shown in above pic. Generally the channels (for the sake of IRC lemme call the chat rooms as channels) starts with a “#” like ….

a channel “#c” will be involving the discussions about c-language

So some example official channels are #ubuntu, #fedora, #c++ etc.

There are also some specialised channels like

#ubuntu-in (Ubuntu activities in India)

#ubuntu-ap (Ubuntu activities in AP)

For example take server as “Freenode” and press connect.

Once you press the connect you will have the look like bellow

So you can fill that join channel by your own channel … or you can also have a look over all the channels that are available. I will join the channel #ubuntu and press OK, then
The right side list is the “nicks” of all the people who logged in the channel #ubuntu. And the text bar you can see at the bottom is to type the text that you want to send.

More usage in IRC

Some of the channels like #fedora,#java says that you must be recognised to enter the channel. This means to register your nick such that it will not be used by any other. To register your NICK .. first you should confirm whether the NICK is already registered or not … we can get it by typing

/msg nickserv info sandy16

>nickserv< info
-NickServ- Nickname: Sandy16
-NickServ- Registered: 28 weeks 6 days (5h 3m 24s) ago
-NickServ- Last Seen: 5 hours 23 minutes 40 seconds ago
-NickServ- Last Seen Address: n=sandy@
-NickServ- Last Seen Quit Msg: “Leaving”
-NickServ- Nickname Options: Secure, AllowMemos, MemoNotify, MemoSignon

Lets try the info command for the nick “sandy16aa”

/msg nickserv info sandy16aa

>nickserv< info
-NickServ- The nickname [sandy16aa] is not registered

So if we want our nick to be registered, first set your nick to the nick you want and type the following command

/msg nickserv register yourpassword

So the message will be displayed once you register

Q. Do i need to register every time i login?

No, once you register your nick enough. From the next time you need if you need to identify your nick then

/msg nickserv IDENTIFY yourpassword

So once you type this .. you will be displayed a message saying you are now recognized.

Q. Do i need to type this much long command every time i need to identify?

No, you can set the automatic login to the user at the very first picture of this discussion, click the Edit button there. You will see the well defined options. Hope you will understand.

Q.Can I join another channel while a channel being opened?

Yes. Just type the command of joining a channel

/join #fedora


/j #fedora

You can even set the list of channels separated by “,” in the Edit menu of the very first pic. So when ever you login these channels are automatically joined.

Q. Whats if I dont have a IRC client and i am unable to install any client.

That will be not a problem, when you don’t have an IRC client.Because there are plenty of IRC portals in the web. It means that they will be connected to IRC using the browser. Some of them are fallowing..



But the second link runs using JRE, the client system need to have the Java Run-time Environment, this can be downloaded from here.

A Last reminder …..

The IRC has a specific regulations … so please follow them to get a good results of its usage.

Guide lines for IRC

So hope you would join explore the world of sharing knowledge … i,we, every one call it as IRC.

Waiting for feed back


1 Comment

Why do we go with GNU/Linux…

Hi this is Sandeep. I am an Ubuntu Tuxian. As this is my first blog i wanna share some of my feeling with you people.

First of all let me start with a quote “Human Knowledge belongs to world ” . I know lot many of you people will agree with me. Is n`t it?

Whats if Sir Isaac Newton has copyrighted his works on the gravity principle he made….i am really afraid to say whether there would be any person like Albert Einstein or some body. Really….I a person had ever hide their knowledge how is the world going to survive any more…

There started a revolution against those who put the barrier against the humans and their knowledge…..its started by….Richard M Stalman (RMS) and named a free software foundation so here starts the game…