LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2005, 08:06 AM   #1
trevorv
LQ Newbie
 
Registered: Jan 2005
Location: Isle of Wight, England
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Unhappy Ubuntu: GCC, PPPOE, and vain attempts to connect to the internet


Hi,

I'm new to all this, I've just installed Ubuntu after hearing good things about it and Debian. It works fine, and I'm loving it, but I can't get on the net.

I have a Speedtouch USB modem, and presume I need the Speedtouch USB drivers on Sourceforge.

I have been following the instructions on their site, however, when I try to install from the source code, I'm told there is no C Compiler in $PATH. I googled, and presume GCC is the one I need. I attempted to install it, but didnt understand the instructions in the slightest, and have since read that Ubuntu already includes GCC, and so I am unaware of what's going wrong.

In trying to install from the binaries instead, I'm told I need a PPPOE package, and so I tried the one by Roaring Penguin.

This however, also seems to require GCC.

So, I seem to need to install GCC, or get it in $PATH

Any help would be vastly appreciated,

A perplexed

 
Old 01-18-2005, 09:36 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Have you tried http://www.linux-usb.org/SpeedTouch/ubuntu.html ? Don't try to follow the PPPoE instructions on that page, they're broken (I'll fix them in a week or so, it's on my TODO list). PPPoATM is much easier to get working.
 
Old 01-18-2005, 12:04 PM   #3
trevorv
LQ Newbie
 
Registered: Jan 2005
Location: Isle of Wight, England
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks, I tried your way and got stuck on the modem_run bit, but I'll try again later when my brains more alive.

After that didn't work, I tried the Source Forge way again, now that GCC is installed, and I've got to the end with that. However, once you type the speedtouch-start command, it says Starting ADSL connection... and then does nothing, no error messages, but it doesn't work.

Any ideas?

EDIT_________________________________\/

Got further with your suggestion now, it was me making a stupid error, but now on the final step the command /usr/sbin/pppd call speedtch ends up with connect (0.38):Resource temporarily unavailable.

Any help's appreciated, as I'm guessing it's not actually temporary... (btw, it's PPPoA I'm using, not PPPoE, sorry about that.

Last edited by trevorv; 01-18-2005 at 03:07 PM.
 
Old 02-03-2005, 08:32 AM   #4
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
Hello

I'm just about to run thyrough the Ubuntu install of the Alcatel speedtouch modem.

I have had this modem working on SuSE 8.2 but I lost that install when an update went wrong. I suspect KVM usage and have had no other problems with the box.

Anyway, I am fairly confident that the modem will install ok. Is the modem_run executable available via http://www.linux-usb.org/SpeedTouch/ updated against the vulnerability listed on this page http://lwn.net/Articles/109716/? I know it lists Gentoo and Mandrake as the two affected but I would like to know.

Will let you know if the install works.

Regards

Lesley
 
Old 02-03-2005, 12:46 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Thanks for that link. I didn't know about that security issue with modem_run. If that's an issue for you perhaps you should install Fedora Core 3. Their kernel can load the firmware without the help of modem_run, as can a vanilla 2.6.10 kernel
 
Old 02-03-2005, 03:03 PM   #6
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
Hi

Glad to have helped out with that link, Andrew.

I tried the install on Ubuntu and it seemed to successfully recognise the modem but I got LCP timeouts.

These are the messages in my syslog.

Plugin ppoatm.so loaded
PPPoATM plugin_init
PPPoATM setdevname - remove unwanted options
PPPoATM setdevname_pppoatm - SUCESS: 0.38
pppd 2.4.2 started by root, uid 0
Using interface ppp0
Connect: ppp0 <->0.38
LCP: timeout sending Config-Requests
Connection terminated
Using interface ppp0
Connect: ppp0 <->0.38
LCP: timeout sending Config-Requests
Connection terminated

I've copied them over as accurately as possible. The last four lines repeat for as many times as I allow LCP requests to go on for. I've shortened that down to four for now, which should be enouh to get in with.

I'm not entirely sure what is going on here. It seems that I am not handshaking with my ISP properly but I need to research the messages more. Any help would be appreciated on this one, but basically I think the modem connects up ok it's just the handshaking that appears to be wrong.

Regards

LesleyB
 
Old 02-03-2005, 04:00 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Try adding debug to the options in /etc/ppp/peers/speedtch
It will make it more verbose.
I looked into that security bug and it was fixed in the 1.3.1 version of modem_run, which was what I used to compile that one.
 
Old 02-04-2005, 09:18 AM   #8
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
Hello

I added a debug option to the speedtch file and found that I couldn't connect out.

I rebooted the system and it gave an error message when loading the speedtch driver . After various plays of booting up with the modem attached and booting up with the modem not attached, I deduced on the 3rd boot up that this error message could occur whether the modem was attached or not.

I decided a complete re-install with the modem and NIC attached would be in order. Just to see if installing with the modem attached made any difference. On the first reboot I got an error message about an unrecognised symbol for the speedtch driver.

This is the relevant error message from syslog

Feb 4 11:38:33 localhost kernel: speedtch: Unknown symbol crc32_be
Feb 4 11:38:33 localhost kernel: usbcore: registered new driver speedtch

The second statement shows the speedtch kernel driver loads ok.

However when I try using the ZZZL firmware I get this

Feb 4 13:08:17 localhost modem_run[19784]: modem_run version 1.2 started by root uid 0
Feb 4 13:08:17 localhost kernel: usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Feb 4 13:08:17 localhost kernel: usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1
Feb 4 13:08:17 localhost modem_run[19784]: Unable to locate firmware in /etc/ppp/ZZZL_3.012

and not surprisingly this from pppd call speedtch:

Feb 4 13:08:24 localhost pppd[19785]: Plugin pppoatm.so loaded.
Feb 4 13:08:24 localhost pppd[19785]: PPPoATM plugin_init
Feb 4 13:08:24 localhost pppd[19785]: PPPoATM setdevname - remove unwanted options
Feb 4 13:08:24 localhost pppd[19785]: PPPoATM setdevname_pppoatm - SUCCESS:0.38
Feb 4 13:08:24 localhost pppd[19785]: pppd 2.4.2 started by root, uid 0
Feb 4 13:08:24 localhost pppd[19785]: connect(0.38): Resource temporarily unavailable
Feb 4 13:08:24 localhost pppd[19785]: Exit.


I have tried the KQ6_3.012 and got this

Feb 4 13:19:10 helmholtz modem_run[3876]: modem_run version 1.2 started by root uid 0
Feb 4 13:19:10 helmholtz kernel: usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Feb 4 13:19:10 helmholtz kernel: usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1
Feb 4 13:19:12 helmholtz kernel: usb 1-2: bulk timeout on ep5in
Feb 4 13:19:12 helmholtz kernel: usb 1-2: usbfs: USBDEVFS_BULK failed ep 0x85 len 512 ret -110
Feb 4 13:19:16 helmholtz kernel: usb 1-2: usbfs: interface 0 claimed while 'modem_run' sets config #1
Feb 4 13:19:16 helmholtz kernel: usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Feb 4 13:19:16 helmholtz kernel: usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1

I do have a Silver modem but its not Rev 4 it's Rev 2 (see previous posts to the mailing list last year http://www.mail-archive.com/speedtou.../msg05198.html and thank god for mailing list archives) so I am going to try with the KD6_3.102 firmware and see if that works.

I'd completely forgotten mine was not a Rev 4 and you might want to change your web page to let people know how to check what version they have regardless of colour (if cat /proc/bus/usb/devices still works of course).

Regards
Lesley
 
Old 02-04-2005, 09:57 AM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
A silver rev 2? There's not many of them. This should tell you what revision your modem is.
Code:
cat /proc/bus/usb/devices | grep -B 1 ALCATEL
If it is a revision 2 then the KQD6_3.012 is the firmware you should be using
 
Old 02-04-2005, 11:07 AM   #10
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
Unhappy

Well, I seem to have one of them. I might have fully changed over to zen as an ISP from my demon days but I haven't bought a new Alcatel since the last time I posted on the speedtouch mailing list.

Using KD6_3.012 seemed to help but all I got was a load of LCP negotiations with No auth is possible.

e.g.

sent [LCP-ConfReq id=0x01 <magic hexadecimal_number1>]
rcvd [LCP-ConfReq id=0xd9 <auth chap MD5> <magic hexadecimal_number2>]
No auth is possible
sent [LCP-ConfRej id=0xd9 <auth chap MD5>]
rcvd [LCP-ConfReq id=0xda <auth chap MD5> <magic hexadecimal_number2>]
No auth is possible

So it appears to me that the negotiations are not working at all. Now I have played around with the options in the speedtch file all to absolutely no avail. I am confused by what is meant by peer in the cman pages. Given this is point to point protocol which peer does the documentation refer to? There is a point where it tries to discuss client server relationships but rapidly drops into using 'peer' again.

I'll not be plugging on with this much longer to be honest. I've a full day and half trying to get Ubuntu up and running with this modem according to what I found on http://www.linux-usb.org/SpeedTouch/ and it ain't working.

To say I am completely and utterly exasperated would be putting it mildly.

Regards

LesleyB
 
Old 02-04-2005, 02:19 PM   #11
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The peer is your ISP, the other computer you're connecting to.
Quote:
No auth is possible
Check your details in /etc/ppp/chap-secrets
 
Old 02-04-2005, 07:57 PM   #12
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
Hello

Well .....

I have finally managed to connect to the Internet.

I ended up following a thread in ubuntu forums (http://ubuntuforums.org/showthread.p...hlight=alcatel reply no 5 ) which explained where to get some debian packages and gave some other configuration details.

I followed those instructions and have found that I can connect up to the Internet now.

One point to note is the chap secrets file seems to need :-

<username> * <passwd> *

Leastways it works with that. Can't talk for PAP authentication methods. The instructions on your site lose the trailing '*'.

I have also created the /etc/hotplug/usb/speedtouch file that ubuntu thread seems to think are necessary for ppp to run properly. Curiously it has been working a lot better since I gave the peers script the same name as my ISP.

I'm glad to finally be up and running after a good 14 hour slog at it today.

Now testing the security of the system.

Regards and thanks for your help.

Lesley
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant connect to the internet using pppoe on knoppix nor on damnsmall lemuel Linux - Newbie 0 01-06-2005 07:46 AM
PPPoE: Can't connect to the internet chord1000 Fedora 10 12-02-2003 09:38 PM
Connect to internet using pppoe on RedHat 7.3 ? maxell Linux - Distributions 2 09-12-2002 11:53 AM
Connect to internet using pppoe on RedHat 7.3 ? maxell Linux - Networking 2 09-12-2002 11:46 AM
Connect to internet using pppoe on RedHat 7.3 ? maxell Linux - Newbie 2 09-12-2002 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration