Linux - HOWTO (With Stats)

Status
Not open for further replies.
Hey maxmundi,

Not sure if you tried this:

1) Insert card
2) modprobe usbserial

Forget about serial_cs first, let se what that does. with the card inserted, run lsusb and paste the output.

Laterz !!!
 
Yeah. I did try to insert usbserial but it would not claim the device with out the correct vendor and prod string. dmesq didn't report these when inserting the modem, so I had to get them from /proc/bus/usb/devices.

Code:
cat /proc/bus/usb/devices | grep -B2 Fusion
P:  Vendor=0af0 ProdID=6300 Rev= 0.00
S:  Manufacturer=Option N.V.
S:  Product=Fusion UMTS Quad-GPRS

and then:

Code:
modprobe usbserial vendor=0x0af0 product=0x6300

messages then reports:

Code:
Sep 28 10:52:32 buddy usbcore: registered new driver usbserial
Sep 28 10:52:32 buddy drivers/usb/serial/usb-serial.c: USB Serial support 
registered for Generic
Sep 28 10:52:32 buddy usbserial_generic 6-1:1.0: Generic converter detected
Sep 28 10:52:32 buddy usb 6-1: Generic converter now attached to ttyUSB0
Sep 28 10:52:32 buddy usbserial_generic 6-1:1.1: Generic converter detected
Sep 28 10:52:32 buddy usb 6-1: Generic converter now attached to ttyUSB1
Sep 28 10:52:32 buddy usbserial_generic 6-1:1.2: Generic converter detected
Sep 28 10:52:32 buddy usb 6-1: Generic converter now attached to ttyUSB2
Sep 28 10:52:32 buddy usbserial_generic 6-1:1.3: Generic converter detected
Sep 28 10:52:32 buddy usb 6-1: Generic converter now attached to ttyUSB3
Sep 28 10:52:32 buddy usbcore: registered new driver usbserial_generic
Sep 28 10:52:32 buddy drivers/usb/serial/usb-serial.c: USB Serial Driver core 
v2.0

Since I'm runnning udev device is created under:

Code:
/dev/tts/USB0

I opted to use kppp instead of wvdial. kppp worked out-of-the-box. The only slight nuisance now is that I have to manually issue the pin unlock command before kppp can connect via kppp's terminal interface.

Code:
at+cpin="xxxx"

Thanks for your help!
 
Hi Tux
It seems that I am having a problem.

I do connect and I can ping Vodacoms DNS servers
Primary 168.210.2.2
Secondary 196.14.239.2

however when I connect I get these dns servers reported to me
Primary dns 10.11.12.13
secondary Dns 10.11.12.14

These do not work
and beacuse of this problem nothing works
In Windows i know how to fix this but in Linux where do I fix it



How can I override these to be the ones Vodacom gave me ?

wvdial.conf does not have settings for DNS
Are you able to add settings there ?
if so how ?

regards
Nico
 
bank_nut said:
however when I connect I get these dns servers reported to me
Primary dns 10.11.12.13
secondary Dns 10.11.12.14

These crept in somewhere with an upgrade or something - I am seeing diff. nat'ed address. They should get replaced with the final pppd neg.

bank_nut said:
How can I override these to be the ones Vodacom gave me ?

in /etc/ppp/options add the following line:

Code:
nousepeerdns

This might spit out an error, if it does remove the line and look under /etc/ppp/peers/wvdial and remove the line from there aswell. If it still doesn't work after that we will have to hax0r /etc/ppp/ip-up.

The correct resolv.conf for 3G is like so:

Code:
nameserver 196.25.255.34
nameserver 196.25.255.3
 
too complicated

It did not work

Please could you imagine you are talking to a brean dead moron
now try again and explain in more simpler terms

and one test at a time

the fisrt one failed
there after you lost me

regards
Nico
 
Hi there Tux
this is my resolv.config
As you can see the connection is forced to the wrong DNS
I do not have a PROVIDER do I need one ?
If so How to ?

### BEGIN INFO
#
# Modified_by: pppd
# Backup: /etc/resolv.conf.saved.by.pppd.ppp0
# Process: pppd
# Process_id: 13542
# Script: /etc/ppp/ip-up
# Saveto:
# Info: This is a temporary resolv.conf created by service pppd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service pppd not to modify it.
#
# If you do not want the pppd to change your nameserver
# settings set MODIFYDNS=no in the config file for
# this provider in /etc/sysconfig/network/providers/
# and ensure that the option usepeerdns is not set
# in /etc/ppp/options.
#
### END INFO
search site
nameserver 10.11.12.13
nameserver 10.11.12.14
 
Hey bank_nut,

Sorry for the delayed reply - PC troubles at home :) - If the resolv.conf is the only issue, let solve it quickly: (do this while connected)

1) Open a terminal
2) type "mv /etc/resolv.conf /etc/resolv.conf.bck"
3) type "vi /etc/resolv.conf"
4) press i
5) type the following:
"nameserver 196.25.255.34
nameserver 196.25.255.3"
6) press escape, then ":wq<enter>"

All should be well then !

Hope this helps !!! :)
 
Last edited:
Tazz_Tux please help me

Sorry Tazz_Tux but your recomendation does not work on my Linux
SuSE 9.3

I carreid out these instructions
and every time I tried to connect then the /etc/resolv.conf
file was over written with this text:
(even if I set the permissions to read only it still got over written)
(This means that I cant modify this file something else modifies it)


### BEGIN INFO
#
# Modified_by: pppd
# Backup: /etc/resolv.conf.saved.by.pppd.ppp0
# Process: pppd
# Process_id: 9011
# Script: /etc/ppp/ip-up
# Saveto:
# Info: This is a temporary resolv.conf created by service pppd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service pppd not to modify it.
#
# If you do not want the pppd to change your nameserver
# settings set MODIFYDNS=no in the config file for
# this provider in /etc/sysconfig/network/providers/
# and ensure that the option usepeerdns is not set
# in /etc/ppp/options.
#
### END INFO
nameserver 10.11.12.13
nameserver 10.11.12.14
 
Try this:

edit the file /etc/sysconfig/network/providers/wvdial or kppp and change the MODIFYDNS to no.

Then edit /etc/ppp/options and remove usepeerdns.

Laterz !

bank_nut said:
# If you do not want the pppd to change your nameserver
# settings set MODIFYDNS=no in the config file for
# this provider in /etc/sysconfig/network/providers/
# and ensure that the option usepeerdns is not set
# in /etc/ppp/options.
#
 
Hi Tux-taz

Thanks for your determination to help me.

1) this foldder is empty
/etc/sysconfig/network/providers/

Could this be part of the problem ?

2) this file /etc/ppp/options does not have usepeerdns.

Please advise

regards
Nico
 
bank_nut said:
Hi Tux-taz
1) this foldder is empty
/etc/sysconfig/network/providers/

Could this be part of the problem ?

Could be....are you using wvdial to dial ? If so, create a file in there called wvdial and add that line in there.

Laterz !!!
 
Hi there Taz-Tux

I founf this in the log:
Oct 2 07:02:10 linux ip-up: /etc/sysconfig/network/config: line 204: MODIFY_RESOLV_CONF_DYNAMICALLY=no: command not found
 
Sup bank_nut,

Did you add this line in there ? Can't remember it from prev. posts :)

Laterz !

bank_nut said:
Hi there Taz-Tux

I founf this in the log:
Oct 2 07:02:10 linux ip-up: /etc/sysconfig/network/config: line 204: MODIFY_RESOLV_CONF_DYNAMICALLY=no: command not found
 
Hi Taz-Tux
I give up

I will have learn more about wvdial

regards
Nico
 
wvdial doesn't connect

Good day everyone!

It was in great anticipation I found out that the option cards are running under GNU/Linux. I've bought meself one 10 days ago, but haven't been able to connect (yet). Since I'm running Ubuntu on my thinkpad I used this guide for all settings: http://ubuntuforums.org/showthread.php?t=49056

First of all I'm using a Swedish provider (http://www.tre.se/). The card is signaling that it accepts the PIN.

Here's the problem. When I run

sudo wvdial option internet 3gonly 384k​

I get this


--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+COPS=0,0,"Vodacom-SA",2
AT+COPS=0,0,"Vodacom-SA",2
OK
--> Sending: AT+CGDCONT=1,"IP","internet";
AT+CGDCONT=1,"IP","internet";
OK
--> Sending: AT+CGEQMIN=1,4,64,384,64,384
AT+CGEQMIN=1,4,64,384,64,384
OK
--> Sending: AT+CGEQREQ=1,4,64,384,64,384
AT+CGEQREQ=1,4,64,384,64,384
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 384000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Oct 24 09:41:54 2005
--> pid of pppd: 9384
--> Using interface ppp0
--> pppd: 504
--> pppd: 504
--> pppd: 504
--> pppd: 504
--> pppd: 504
--> Disconnecting at Mon Oct 24 09:42:35 2005
--> The PPP daemon has died: PPP negotiation failed (exit code = 10)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 10)

I've tried googling for the solution but haven't gotten far with that.

This is my /etc/wvdial.conf:


[Dialer Defaults]

Phone = *99***1#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init1 = AT+CPIN=1234

[Dialer option]

Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

[Dialer 2gonly]

Init4 = AT+COPS=0,0,"Vodacom-SA",0

[Dialer 3gonly]

Init4 = AT+COPS=0,0,"Vodacom-SA",2

[Dialer internet]

Init5 = AT+CGDCONT=1,"IP","internet";

[Dialer internetvpn]

Init5 = AT+CGDCONT=1,"IP","internetvpn";

[Dialer myapn]

Init5 = AT+CGDCONT=1,"IP","myapn"

[Dialer 384k]

Init6 = AT+CGEQMIN=1,4,64,384,64,384
Init7 = AT+CGEQREQ=1,4,64,384,64,384

[Dialer 144k]

Init6 = AT+CGEQMIN=1,4,64,144,64,144
Init7 = AT+CGEQREQ=1,4,64,144,64,144

[Dialer 64k]

Init6 = AT+CGEQMIN=1,4,64,64,64,64
Init7 = AT+CGEQREQ=1,4,64,64,64,64

I've tried replacing "Vodacom-SA" with "Hi3G". Same thing. I've got that from http://www.pts.se/. I still think that is the problem, so I've contacted my providers technical support and asked them for the name of the network, since I think that is the purpose of the sting. (I hope I'm not wrong here.) They didn't know what I was talking about and said they had to call me back when they've looked into it.

Now if anyone has got a pointer for me here I'd be very thankfull.
 
By the looks of it everything is working fine - you can change the number #99* which will do the default.

The only other problem is that the provide could have a diff. name for the internet apn. You can replace "Vodacom-SA" with just "" - that should bring up the default network :)

HTH

Laterz !!!

Edit: And the same with the APN name - just make it "" - should default to the default APN :confused:
 
Thank you for spending your time helping me.

Unfortunatly it's not working fine. I changed "Vodacom-SA" and "myapn" to "". And wvdial still exits in the same manner as before. And the card diodes is indicating that it's not connected to the network.

To bad I'm a total n00b with both pcmcia and umts. Does it help telling you that I have an Option Globetrotter 3G Quad?

If I'm supposed to change #99* what should I change it to. Can I ask my provider.

I'm sorry to bother you. I've spent days trying to figure out this on my own.
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X