Linux - HOWTO (With Stats)

Status
Not open for further replies.
all.log needed?

Hey Tazz_Tux, thanks for all the effort you put into this thread!

I have added a line to my /etc/syslog.conf:

Code:
*.*                /var/log/all.log
Restart syslog after that. I also have debugging on in /etc/ppp/options:

Is an "all.log" really necessary since you are routing *.* (i.e. _all_) message to it? As I see it, your all.log will be identical to /var/log/messages.
One could simply use /var/log/messages since the exact same info will be duplicated there anyway?

R.
 
Dude, you win my vote for "MyBroadband nickname of the year 2006" hands down. :D

Hey Tazz_Tux, thanks for all the effort you put into this thread!



Is an "all.log" really necessary since you are routing *.* (i.e. _all_) message to it? As I see it, your all.log will be identical to /var/log/messages.
One could simply use /var/log/messages since the exact same info will be duplicated there anyway?

R.
 
Tazz, for yr stats:

Sevenworth - Linux Howto Successful
Ubuntu Dapper Drake
Cape Town SA

Congrats on a great piece of info.
 
Hey Tazz_Tux, thanks for all the effort you put into this thread!



Is an "all.log" really necessary since you are routing *.* (i.e. _all_) message to it? As I see it, your all.log will be identical to /var/log/messages.
One could simply use /var/log/messages since the exact same info will be duplicated there anyway?

R.

Hey skaaptjop,

I have dragged all.log with me for years now - two main reasons:

1) Early days pppd did some weird logging and messages didn't pick it up
2) Almost every hacking script out there deletes messages and kern.log, no all.log....yet.... :)

It's up to you to have it or not :)
 
logging & usage

1) Early days pppd did some weird logging and messages didn't pick it up
2) Almost every hacking script out there deletes messages and kern.log, no all.log....yet.... :)

It's up to you to have it or not :)

Hmmm, didn't think of (2). Just seems that duplicating the log is an overhead...
Perhaps using
Code:
daemon.*         /var/log/all.log
will help something since pppd uses the "daemon" syslog facility.

On my Ubuntu system, pppd also uses the local2 syslog facility which makes life a bit easier. I simply put in /etc/syslog.conf:
Code:
local2.=info          /var/log/ppp-info.log

BTW, do you really need the "debug" and "kdebug 4" option set in /etc/ppp/options? Sent & Received data is logged by default on my system with them commented out. (Unless it depends on how pppd was compiled...)

What I'm trying to do at the moment is find a decent way of keeping monthly stats (as billing is monthly) using existing logging mechanisms. It gets tricky with the default lograte schedule. Anyway, shouldn't be too hard to figure out.

R.
 
Last edited:
I dont see anything useful in add/remove progs; there's etherape and ethereal but neither apps seem to be able to add up used bandwidth (maybe i'm stupid). do you know of a package I can apt-get that will do the trick?

In gnome add a network monitor - tell it to monitor ppp0 and you will see it appear on the top of your screen - might be called system monitor or something like that :)
 
Did you right-click the top bar and say "Add to panel" ?

I dont see anything useful in add/remove progs; there's etherape and ethereal but neither apps seem to be able to add up used bandwidth (maybe i'm stupid). do you know of a package I can apt-get that will do the trick?
 
Hey guys, just a word of thanks for a great/informative thread !
 
Help Plz

i am very new in the linux field and are strugling like hell to install my OPTION qualcomm in linux

i have downlowded the whole tread and gone tru without sucsess
What would you sugest to be the best to start
i have got suse 10.1 - it did not pick up the pcmcia correctly i believe
fudora core 5 see my card byt that is where i end up

thanx

please be patient with my
 
Hey JackRussel,

Care to show us some logs when you insert the card ?

Laterz !

i am very new in the linux field and are strugling like hell to install my OPTION qualcomm in linux

i have downlowded the whole tread and gone tru without sucsess
What would you sugest to be the best to start
i have got suse 10.1 - it did not pick up the pcmcia correctly i believe
fudora core 5 see my card byt that is where i end up

thanx

please be patient with my
 
Thanks for your inspiring expertise.
I live in Spain... bit thirld-worldish teknology... and I am Irish so Spanish is a struggle too... also I am a newbie, fairly new to Linux and trying to liberate myself from Windows.

I bought the E220 yesterday, followed the few instructions I found in a forum, to no avail. I then found your forum and I suspect that you may be able to ster me in the right direction.

Here is the feedback trying to connect:
daka@daka-pb:/etc$ su
Password:
root@daka-pb:/etc# vim wvdial.conf
root@daka-pb:/etc# wvdial hsdpa
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
root@daka-pb:/etc# wvdial hsdpa
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
root@daka-pb:/etc#

Here is the Wvdial.conf file I have been using:


# wvdial for Vodacom Data. Created by Tazz_tux
# Version 1.0

# Change Log:
#
# Added support for HSDPA.
# Added Headers and version control.

[Dialer Defaults]
Phone = *99***1#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT

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

This doesn't work.... some questions... do I need the password and username in there ... vodafone and vodafone?

Do I need Init1'

Where does the Vodafone info go ... at+cgscont etc?

are paps-secrets / chaps - secrets important in all this?

Whatever advice you can pas on to me would be greatly appreciated.

Muchas gracias

Daka

Maybe you could suggest something as an alternative wvdial.conf file
 
Hey daka,

Ok - question :)

1) Did you unload and reload the drivers as mentioned ?
2) Init1 is reserved for the pin code to be sent. If you disable the pin - it's not needed
3) Replace all the Init4 for the vodafone stuff
4) pap and chap - nope - you can leave them out

Hope that helps ! :)

This doesn't work.... some questions... do I need the password and username in there ... vodafone and vodafone?

Do I need Init1'

Where does the Vodafone info go ... at+cgscont etc?

are paps-secrets / chaps - secrets important in all this?

Whatever advice you can pas on to me would be greatly appreciated.

Muchas gracias

Daka

Maybe you could suggest something as an alternative wvdial.conf file
 
Tazz, for your stats:

Biena - Linux Howto Successful
Distro: Fedora core 6
Location: Pretoria, South Africa

Using a Motorala v1050, usb cable, dialer kppp

sky.akash gave me your modified wvdial.conf and with that as a working example
got the kppp setup correctly, connecting.

Thanks for all the info and great pointers
 
problems with hsdpa

Hi,

I followed posting 1 for hsdpa cards. The card was recognised by the nozomi drivers (I saw this in the syslog). But when I try to connect it gets stuck, then times out (and tries again).

My wvdial.conf is the exact one from posting 1.

My syslog reads something likes this:
pppd 2.4.4 started by root, uid 0
Using interface ppp0
Connect: ppp0 <---> /dev/noz0
CHAP authentication succeeded
CHAP authentication succeeded
IPCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Exit.

The output from wvdial looks something like this:
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D1 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D1 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 18000000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at blah
--> Pid of pppd blah
--> Using interface ppp0
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> pppd: [0c][06][08] [0c][06][08]
--> Disconnecting at blah
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
...
...


I am running Ubuntu Edgy.

Anyone got any ideas? What have I missed?


Regards,
@noodalz
 
Did you right-click the top bar and say "Add to panel" ?

Thanks Tazz, added Network Monitor, but I see that it only works for the day that it's added, so if the day ticks over, I have to remove it and re-add it. Do you know if there's any way around this? It's not that big a problem, but it can become a little frustrating.

Thx.
 
Does the card work under Windows ? Do you know if the sim is really active, i.e. you have surfed with it before.

Hi,

I followed posting 1 for hsdpa cards. The card was recognised by the nozomi drivers (I saw this in the syslog). But when I try to connect it gets stuck, then times out (and tries again).

My wvdial.conf is the exact one from posting 1.

My syslog reads something likes this:
pppd 2.4.4 started by root, uid 0
Using interface ppp0
Connect: ppp0 <---> /dev/noz0
CHAP authentication succeeded
CHAP authentication succeeded
IPCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Exit.

*snip*

Anyone got any ideas? What have I missed?


Regards,
@noodalz
 
Weird !!!

Mine runs 24/7 - maybe look for an update. You can also add system monitor and add the networking blocking, quite a nice one that :)

Thanks Tazz, added Network Monitor, but I see that it only works for the day that it's added, so if the day ticks over, I have to remove it and re-add it. Do you know if there's any way around this? It's not that big a problem, but it can become a little frustrating.

Thx.
 
I have used the SIM for WAP before, but I don't have a 3G phone, so nothing more than that. I haven't got it working in windows, but I don't have access to a windows machine at the moment.

I'll try on my mate's machine this evening...

How do I check if the SIM card is 'really active'?

Tx
@Noodalz

Does the card work under Windows ? Do you know if the sim is really active, i.e. you have surfed with it before.
 
No luck in Windows either. :confused:

Dud card?

Any steps I can try from here?

I have used the SIM for WAP before, but I don't have a 3G phone, so nothing more than that. I haven't got it working in windows, but I don't have access to a windows machine at the moment.

I'll try on my mate's machine this evening...

How do I check if the SIM card is 'really active'?

Tx
@Noodalz
 
Huawei E220 success in Spain / Kubuntu

I used much of the useful information in this forum to experiment and finally was successful..... Of course if anyone has any suggestions they would be most welcome: Here is how I configured it:

HOW TO Configure the Huawei 220 usb modem in Linux, (IN SPAIN)
__________________________________________________________________

"Spain is different" (..is an advertising slogan they developed years ago to attract tourists to Spain) (Technologically VERY different)

I am a Linux newbie... this is my first "How To".... I tried other advice from various forums without success... by experimenting I came up with this soultion:

I use a Packard Bell EasyNote laptop with Kubuntu kernel 2.6.15-23-386

Disable pin by putting card in a phone and disabling (otherwise the nightmare is much worse..,.although it is possible... I eventually disabled the pin and am much happier.

When the Huawei is identified initially as a CD "Connect_Box", right click it and "eject"

Go to System Settings / Network Settings and disable Ethernet and Wireless as these interfere greatly with the Huawei.

(I read in a few places that the long cable doesn't work but this is NOT my experience... I use the long one with an extension of two metres and my connection then, (only then) has a strong and stable signal)

Open a terminal as root

rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003

remove the Huawei E220 for a few moments

wait a few seconds, maybe 10-20, and re-insert

optionally, you can enter:
ls -la /dev/ttyU*
and you will probably
find USB0 USB1 and USB2 ..
if not, wait a few more moments and try again...
then...

wvdial hsdpa

You should be connected!

Here is my wvdial file:

/etc/wvdial.conf



[Dialer hsdpa]
Phone = *99***1#
Username = vodafone
Password = vodafone
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","ac.vodafone.es";

_______________________________________________________



This is what my script looks like when I connect

Password:
root@kp-laptop:/home/daka# rmmod usb-storage
root@kp-laptop:/home/daka# modprobe usbserial vendor=0x12d1 product=0x1003
root@kp-laptop:/home/daka# ls -la /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 2006-12-19 14:33 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2006-12-19 14:33 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 2006-12-19 14:33 /dev/ttyUSB2
root@kp-laptop:/home/daka# wvdial hsdpa
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+CGDCONT=1,"IP","ac.vodafone.es";
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Dec 19 14:33:56 2006
--> Pid of pppd: 5550
--> Using interface ppp0
--> local IP address 62.87.24.143
--> remote IP address 10.64.64.64
--> primary DNS address 212.73.32.3
--> secondary DNS address 212.73.32.67

Good Luck... (I hope I haven't made any mistakes in this!!)

Daka
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X