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.
Friday, October 23, 2009
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 .
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 .
Wednesday, July 9, 2008
Installing Software in Ubuntu (.bin or .sh files)
Though there are many methods for installing files in Ubuntu like System--> Administrator --> Synaptic package manager. Many a times the websites offer .bin (binary) files for softwares. Here I am at giving a short and simple step by step process for installing from binary files.
1. Download the corresponding .bin file. Place it anywhere in your hard disk.
2. Navigate to the folder through the terminal...( using cd path)
3. Start installation by typing sudo ./filename.bin
4. Your root password will be asked. (if you haven't created a root account the password is the same as your login password).
5. Installation will occur on its own.
6. After the execution is over if you type command then the program should start.
eg. To install NetBeans IDE
1. Download the IDE from NetBeans IDE
2. Navigate to the folder containing the downloaded file.
3. Type sudo ./netbeans-6.1-ml-linux.sh
4. A GUI will guide you through the rest of the installation.
5. After the installation is over if you type
netbeans
NetBeans program will start. It also appears in the Applications--> Programming list in the ......
In case of any comments or suggestions please feel free to contact me
at anillraju@gmail.com
1. Download the corresponding .bin file. Place it anywhere in your hard disk.
2. Navigate to the folder through the terminal...( using cd path)
3. Start installation by typing sudo ./filename.bin
4. Your root password will be asked. (if you haven't created a root account the password is the same as your login password).
5. Installation will occur on its own.
6. After the execution is over if you type command then the program should start.
eg. To install NetBeans IDE
1. Download the IDE from NetBeans IDE
2. Navigate to the folder containing the downloaded file.
3. Type sudo ./netbeans-6.1-ml-linux.sh
4. A GUI will guide you through the rest of the installation.
5. After the installation is over if you type
netbeans
NetBeans program will start. It also appears in the Applications--> Programming list in the ......
In case of any comments or suggestions please feel free to contact me
at anillraju@gmail.com
Saturday, June 14, 2008
ADSL 502T bridge connection for Ubuntu
For a bridge connection creation for adsl 502 router you require to make two kinds of setup
1. Router setup
2. Dialer setup
Router setup:
It is always best to start of with resetting your router. You can do this by inserting a pen into the routers backside hole which says reset. Assuming that your router has been resetted follow the steps given below to create a bridge connection.
1. After the power, adsl and lan lights are on navigate to page http://192.168.1.1/
2. Log in using username- admin
and password- admin
3. Go to the setup tab.
4. Press create a new connection
5. Select bridge connection instead of PPPoe
6. Select the auto pvc check box.
7. Save the connection.
8. Go to tools and select save all
9. Restart the router.
Dialer Setup:
Though I have tried this on ubuntu and kubuntu, this should also work for other linux installations as well.
1. Open a terminal window.
2. Type "sudo pppoeconf" and press enter.
3. There are some simple questions you have to answer.
Question
3.1 ALL DEVICES FOUND? Yes
3.2 OKAY TO MODIFY Yes
3.3 POPULAR OPTIONS Yes
3.4 ENTER USERNAME Enter your phone no. here eg. 2437xxxx
3.5 ENTER PASSWORD Enter your password here.
3.6 Some other question will also be asked press yes for all the rest.
4. To connect type "pon dsl-provider"
5. To check if connection is on type "plog"
Small tip
If you are having a connection problem and feel that the connection could break and you want it to continously reconnect then try the following in a terminal
while true; do pon dsl-provider; sleep 1m; done
Where 1m stands for 1m . If you want to change delay you can type
xm for x minutes.
xs for x seconds.
Comments, clarification and corrections if any are welcome.
1. Router setup
2. Dialer setup
Router setup:
It is always best to start of with resetting your router. You can do this by inserting a pen into the routers backside hole which says reset. Assuming that your router has been resetted follow the steps given below to create a bridge connection.
1. After the power, adsl and lan lights are on navigate to page http://192.168.1.1/
2. Log in using username- admin
and password- admin
3. Go to the setup tab.
4. Press create a new connection
5. Select bridge connection instead of PPPoe
6. Select the auto pvc check box.
7. Save the connection.
8. Go to tools and select save all
9. Restart the router.
Dialer Setup:
Though I have tried this on ubuntu and kubuntu, this should also work for other linux installations as well.
1. Open a terminal window.
2. Type "sudo pppoeconf" and press enter.
3. There are some simple questions you have to answer.
Question
3.1 ALL DEVICES FOUND? Yes
3.2 OKAY TO MODIFY Yes
3.3 POPULAR OPTIONS Yes
3.4 ENTER USERNAME Enter your phone no. here eg. 2437xxxx
3.5 ENTER PASSWORD Enter your password here.
3.6 Some other question will also be asked press yes for all the rest.
4. To connect type "pon dsl-provider"
5. To check if connection is on type "plog"
Small tip
If you are having a connection problem and feel that the connection could break and you want it to continously reconnect then try the following in a terminal
while true; do pon dsl-provider; sleep 1m; done
Where 1m stands for 1m . If you want to change delay you can type
xm for x minutes.
xs for x seconds.
Comments, clarification and corrections if any are welcome.
Tuesday, April 1, 2008
Proud owner of an ipod shuffle
Finally i'm the proud owner of an ipod shuffle awarded by the Sun Microsystems. Don't know whether to be happy because of the ishuffle or on being awarded by Sun. The code for freedom contest organised by Sun Microsystems for their open source product of NetBeans attracted entries from thousands of students from all over India bringing in a new culture of open source into the student community
All the developers who submitted a working plugin were awarded a tshirt and a certificate, significant contributors(like Shantaram, Kunal and myself) were awarded an ipod shuffle alongwith the latter, the first prize the grand prize was a laptop.
All the developers who submitted a working plugin were awarded a tshirt and a certificate, significant contributors(like Shantaram, Kunal and myself) were awarded an ipod shuffle alongwith the latter, the first prize the grand prize was a laptop.
Sunday, March 2, 2008
Sun Tech Days
We a group of three Kunal,Shantaram and myself set out on 26th at about 12 noon.Reached there by 6am on 27th got a lodging placed things there and set out for the Programme(Sun Tech Days).
Sun Tech Days is the biggest developer Tech Days of all - both in terms of the number of attendees and tracks/sessions. This was my first ever visit to a Sun Tech Days. This might sound weird as most of the people there were atleast second timers. Oh what an ambience. Believe it or not once you enter the main conference hall, it's hard to differentiate between a seven star hotel and Hyderabad International Convention Center (HICC). Starting from the entrance, conference rooms, audio/video facilities and the crew is just amazing and very helpful.


The main convention hall can accomodate upto 5000 people at a given time and it was packed for the opening keynote by Rich Green (Executive Vice President, Software, Sun Microsystems).It was a pretty funny situation with the Vice President being in a black t-shirt and most of the attendees in Blazers.
Followed by the key note the crowd dispersed of into one of the tracks 5(in all). There were three stunning sessions before lunch(Ohh that was better than one you could lay hands on in a 5 start hotel.)
There were lots of cool demos ranging from JavaFX, & jMaki(Some Chineese word don't confuse with hindi).
The evening concluded by a great performance by Euphoria - one of the most popular Rock bands in India.It was a great experience to see corporates jump and dance to showcase their other side.

Sun Tech Days Hyderabad 2008 - Day 2
We reached a little late for this day as we were preparing for the presentation we were about to give.So we missed on the key note and some part of the breakfast.
We attended two sessions before lunch. Then came the most interesting thing of my life. Our presentation about the project we are working on.The kind of response it triggered of from the audience(java gurus.).was just amazing. David Lindt gave us his card and asked us to send him our presentation and to keep up with the good work.
Stacy David Thurston (http://www.linkedin.com/in/tigerfarm)one of the pioneers of the dot com world had a private talk with us after the event when he told us that James Gosling(Father of java) meets him once in a while and had once suggested about an idea like one of our plugins..We were in 7th oh no the eighth heaven. This was followed by some other sessions which were quite interesting too.The day culminated with a fashion show.
Sun Tech Days Hyderabad 2008 - Day 3
There were 3 days of which we could select one. Obviously we choose the netbeans day.
The lectures by Roumen Strobl were not only eye opening but also was pretty much fun.
We also got to meet Amit Kumar Saha (NetBeans Community Docs Coordinator) someone we were quite aquainted with in the virtual world but got to meet him personally.Also got to meet Rohan Ranade one of the Sun guys who used to help us during the Code For Freedom Contest.
Is that all oops... i forgot the most intersting thing the gifts we got T-shirts,bags,Duke..... the list goes on...
Sun Tech Days is the biggest developer Tech Days of all - both in terms of the number of attendees and tracks/sessions. This was my first ever visit to a Sun Tech Days. This might sound weird as most of the people there were atleast second timers. Oh what an ambience. Believe it or not once you enter the main conference hall, it's hard to differentiate between a seven star hotel and Hyderabad International Convention Center (HICC). Starting from the entrance, conference rooms, audio/video facilities and the crew is just amazing and very helpful.


The main convention hall can accomodate upto 5000 people at a given time and it was packed for the opening keynote by Rich Green (Executive Vice President, Software, Sun Microsystems).It was a pretty funny situation with the Vice President being in a black t-shirt and most of the attendees in Blazers.
Followed by the key note the crowd dispersed of into one of the tracks 5(in all). There were three stunning sessions before lunch(Ohh that was better than one you could lay hands on in a 5 start hotel.)
There were lots of cool demos ranging from JavaFX, & jMaki(Some Chineese word don't confuse with hindi).
The evening concluded by a great performance by Euphoria - one of the most popular Rock bands in India.It was a great experience to see corporates jump and dance to showcase their other side.

Sun Tech Days Hyderabad 2008 - Day 2
We reached a little late for this day as we were preparing for the presentation we were about to give.So we missed on the key note and some part of the breakfast.
We attended two sessions before lunch. Then came the most interesting thing of my life. Our presentation about the project we are working on.The kind of response it triggered of from the audience(java gurus.).was just amazing. David Lindt gave us his card and asked us to send him our presentation and to keep up with the good work.
Stacy David Thurston (http://www.linkedin.com/in/tigerfarm)one of the pioneers of the dot com world had a private talk with us after the event when he told us that James Gosling(Father of java) meets him once in a while and had once suggested about an idea like one of our plugins..We were in 7th oh no the eighth heaven. This was followed by some other sessions which were quite interesting too.The day culminated with a fashion show.
Sun Tech Days Hyderabad 2008 - Day 3
There were 3 days of which we could select one. Obviously we choose the netbeans day.
The lectures by Roumen Strobl were not only eye opening but also was pretty much fun.
We also got to meet Amit Kumar Saha (NetBeans Community Docs Coordinator) someone we were quite aquainted with in the virtual world but got to meet him personally.Also got to meet Rohan Ranade one of the Sun guys who used to help us during the Code For Freedom Contest.
Is that all oops... i forgot the most intersting thing the gifts we got T-shirts,bags,Duke..... the list goes on...
Subscribe to:
Posts (Atom)