Here are the steps to connect Broadband USB Modem with Ubuntu.
I have Reliance Netconnect , I followed these steps it worked for me.
1.
Open /etc/apt/sources.list
add following lines over there
deb-src http://ppa.launchpad.net/wader/ppa/ubuntu hardy main
deb http://ppa.launchpad.net/wader/ppa/ubuntu hardy main
2.
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
sudo apt-get update
sudo apt-get install usb-modeswitch
3.
attach your Datacard
now run
lsusb
You should able to see your datacard in that list, I got following entry over there
Bus 007 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:140b Huawei Technologies Co., Ltd.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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
that bold line is in list is my datacard information
12d1 is vendor id and 140b is product id
4.
Now run following command to get detail of usb_modeswitch
usb_modeswitch --help
I ran following command
sudo usb_modeswitch -v 0x12d1 -p 0x140b -d 1
this detach usb storage driver
Then run:
sudo usb_modeswitch -v 0x12d1 -p 0x140b -H 1
this enable usb modem mode
5.
following entry should be in /etc/wvdial.conf .
[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 = [10 digit number]
Password = [10 digit number]
Baud = 460800
5. Now run
sudo wvdial
This command will connect INTERNET by your modem
Thursday, November 5, 2009
Saturday, October 17, 2009
Problem to running jnlp file
I phased problem to running jnlp file. I was getting following error in ubuntu OS.
netx: Launch Error: Could not launch JNLP file. (java.lang.reflect.InvocationTargetException null) (java.lang.SecurityException Changing the SecurityManager is not allowed.)
.............
........
I found the solution for this problem. to access that jnlp file use sudo privilege and use -nosecurity option .
Like
sudo javaws -nosecurity ContestAppletProd.jnlp
You can put this details in javaws file. Here is the step
find javaws by:
which javaws
my javaws file looks like this.
#!/bin/sh
/usr/lib/jvm/java-6-openjdk/bin/javaws $1
replaced second line with following line:
#!/bin/sh
sudo /usr/lib/jvm/java-6-openjdk/bin/javaws -nosecurity $1
Now i just have to use following command:
javaws ContestAppletProd.jnlp
netx: Launch Error: Could not launch JNLP file. (java.lang.reflect.InvocationTargetException null) (java.lang.SecurityException Changing the SecurityManager is not allowed.)
.............
........
I found the solution for this problem. to access that jnlp file use sudo privilege and use -nosecurity option .
Like
sudo javaws -nosecurity ContestAppletProd.jnlp
You can put this details in javaws file. Here is the step
find javaws by:
which javaws
my javaws file looks like this.
#!/bin/sh
/usr/lib/jvm/java-6-openjdk/bin/javaws $1
replaced second line with following line:
#!/bin/sh
sudo /usr/lib/jvm/java-6-openjdk/bin/javaws -nosecurity $1
Now i just have to use following command:
javaws ContestAppletProd.jnlp
Subscribe to:
Posts (Atom)