LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu: GCC, PPPOE, and vain attempts to connect to the internet (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-gcc-pppoe-and-vain-attempts-to-connect-to-the-internet-279260/)

trevorv 01-18-2005 08:06 AM

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

:newbie:

Andrew Benton 01-18-2005 09:36 AM

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.

trevorv 01-18-2005 12:04 PM

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.

lesleyb 02-03-2005 08:32 AM

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

Andrew Benton 02-03-2005 12:46 PM

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

lesleyb 02-03-2005 03:03 PM

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

Andrew Benton 02-03-2005 04:00 PM

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.

lesleyb 02-04-2005 09:18 AM

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

Andrew Benton 02-04-2005 09:57 AM

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

lesleyb 02-04-2005 11:07 AM

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

Andrew Benton 02-04-2005 02:19 PM

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

lesleyb 02-04-2005 07:57 PM

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


All times are GMT -5. The time now is 06:01 AM.