Thursday, April 17, 2008

Use your mobile as an external modem in ubuntu linux; with wvdial

Well ... I have to search a lot to find the way to use my Sony Ericsson w810 mobile phone as a modem and enjoy internet in Ubuntu linux. And After searching a lot, I found the solution quite easy! It's so simple. You just have to write three commands sequentially. These commands work perfectly with other mobile also, not necessarily with SE only.

At first, open a terminal and run this command and it'll show you the connected modem:

sudo wvdialconf /etc/wvdial.conf

Now, open the file wvdial.conf with gedit or mousepad(depends on whether you are running Ubuntu or Xubuntu; I use Xubuntu)

sudo mousepad /etc/wvdial.conf

You have to set the username, password, dial no. and un-comment those three lines (normally those are commented with a '#' sign at the beginning of the line. Wipe out those '#' sign). Leave other lines unharmed.

Finally, just run this command:

sudo wvdial

and you'll be online immediately! Remember not to close the terminal, minimize it while you are running other programs.

That's it :)

Sunday, April 6, 2008

Setting/Installing JAVA and PC^2 (pcsquare) in Ubuntu Live

See the HDD partitions:
sudo fdisk -l

Create a mount point and mount that partition:
sudo mkdir /mnt/F
sudo mount /dev/sda9 /mnt/F

Unzipping pc^2 zip file:
unzip -o pc2v8.zip (download the package)

Installing java:
sudo ./j2sdk-1_4_2_16-linux-i586.bin (download from Sun's site)

Setting the path variables for JAVA:
export JAVA_HOME=/mnt/F/ubuntu/j2sdk1.4.2_16
export PATH=$JAVA_HOME/bin:$PATH

Necessary configuration for java:

cd /usr/bin

sudo rm ./java
sudo rm ./java_vm
sudo rm ./javaws

sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/java ./java
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/java_vm ./java_vm
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/javaws ./javaws
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/javac ./


This will enable gcc:

sudo aptitude install build-essential

manually restarting your network:
sudo /etc/init.d/networking restart

see the interface information:
sudo mousepad /etc/network/interfaces
/etc/hosts
/etc/hostname