Friday, October 23, 2009

Use previously installed Ubuntu after installing XP or Vista

This post explains in a quick fashion how to restore your Ubuntu grub after installing any windows verstion(XP, Vista, 7(dint try but shud work)).

Steps:
1. Install the windows version you need on any partition other than the one on which ubuntu is installed.

2. When you restart the PC you will be automatically logging into the windows version, so you would have to boot using a ubuntu live cd.

3. Once in the ubuntu live cd env open a terminal( application-> accessories -> terminal).

4. Type in as given below without the quotes
"sudo grub"

5. You will log in into a grub shell
grub>

6. Type in "root (hd0,0)"
followed by "setup (hd0)"

7. Keep on trying this with other values

eg.
root (hd0,1)
setup (hd0)

root (hd0,2)
setup (hd0)

root (hd1,0)
setup (hd1)


root (hd1,1)
setup (hd1)

until you get a successful message and not
"Cannot mount selected partition"

8. Once you get the message it means the grub was restored. Type "quit"

9. You will come out of the grub shell.

10. Now restart the machine. You will see the grub at the point of booting, with the ubuntu partition.

Setting up to boot windows.

1. Boot into the ubuntu partition by selecting the ubuntu from the menu.

2. Open a terminal following process given above and type in gksudo gedit /boot/grub/menu.lst

and edit it to boot to your windows partition.

Please post comments or queries if any.

Tuesday, August 4, 2009

SCWCD certified

Long time since i wrote a post. Wouldn't have but this is a news i can't keep to myself. So finally I'm a sun certified web component developer. The preparation was pretty much long, but what really helped me is the experience in my company. This is one exam you need to give after you get a good lot of experience...

Sunday, April 19, 2009

Reliance Netconnect broadband on Ubuntu

Let me first of all make it clear that the activation of your card can be done only using windows so you need to find a windows machine and get your card activated.

Assuming you have activated your card the following are the steps to get it working on ubuntu


Open the Terminal (Application->Accessories->Terminal)

Type SU (Super User, gives administrative privilege will need it little later). Key in the password .

then,

lsusb

Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 12d1:1412 Huawei Technologies Co., Ltd.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

This thing pops Out

Note down the no just before Huawei or quallcom depending on which card you use . To my experience all cards of the same vendor will have the same id. like for Huawei itll be 12d1:1412.

next,

modprobe usbserial vendor=0xAAAA product=0xBBBB ,

Where AAAA is 12d1 and BBBB is 1412 in my case.

Then you have to edit wvdial.conf file, type,

gedit /etc/wvdial.conf

This will open wvdial.conf.

(NOTE: wvdial might not be installed , to install it .
Insert original UBUNTU CD

Go to System->Administration->software sources. add cd as a source and close . itll update itself, Then on terminal type,
sudo apt-get install wvdial .

And key in Ur password , that shall do.

NOW coming back to wvdial .conf. Copy and paste this overriding the previous setting in .

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = USB Modem
ISDN = 0
Phone = #777
New PPPD = yes
Modem = /dev/ttyUSB0
Username = 9876543210 (This is the no written in the back side and changes in every card).
Password = 9876543210 (This is the no written in the back side and changes in every card and is same as user name).
CBaud = 460800

Save it and exist .

Next,

Just enter terminal and sudo Wvdial
And your password to getconnected.

Best of Luck .