WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to get pppsetup to work ?  (Read 10536 times)

Offline pema

  • Newbie
  • *
  • Posts: 48
How to get pppsetup to work ?
« on: January 04, 2009, 02:55:27 PM »
Tried a new toy, pppsetup, cant get it to work though. Running from menu gives after a while "cant execute /usr/local/sbin/pppsetup", and calling pppsetup from term gives "./pppsetup not found". Further problems - Im trying to start modem via ppp and following instructions in pppsetup readme: command "grep -i ppp" gives "file not found" and ther is no ppp modules in /lib/modules/2.6xxxtc/kernel. I do have ppp, pppd and pppsetup in my local bin/sbin and tc reports loading pppd and pppsetup at boot from my tce.
Not successfull with establishing modem connection, cant figure out why, /var/log/messages only reporting "connect script failed" 60 seconds(the timeout is 60s in my script) after command "sudo pppd call tre", no more info than that. Also messing with how to add /etc/ppp to my backup (tclocal or mydata.zip ?).
Running rc9 which is described to support usb 3g dongles. This post is continuation of the thread I borrowed "usb-serial" in tc QnA.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: How to get pppsetup to work ?
« Reply #1 on: January 04, 2009, 04:06:42 PM »
Are you using the extension pppsetup.tc{e,z}?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #2 on: January 04, 2009, 04:41:05 PM »
For starters I forgot to add bash.tce to the .dep file of pppsetup.tce so it would be loaded as pppsetup is a bash script.  I will add it.  Ppp is built into the kernel so kernel modules should not be needed. 

Pppsetup worked for a standard null modem connected to /dev/ttyS0.  I'm sorry I can't be of any help when it comes to USB modems and such.

To back up /etc/ppp, just open /opt/.filetool.lst and add etc/ppp to the list.


Offline pema

  • Newbie
  • *
  • Posts: 48
Re: How to get pppsetup to work ?
« Reply #3 on: January 07, 2009, 02:51:30 AM »
Yes, works when added bash. A minor detail : The script ppp-go is installed at /usr/sbin whilst the other scripts are installed at /usr/local/..., so the ppp-go starting script is not backed up with the others in the tclocal. For the 3g usb dongle I had to hack the scripts but it works.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #4 on: January 07, 2009, 08:56:54 AM »
I thought I had added into the script a check for /usr/local/sbin, creating it if not found, and then moving the finished ppp-go there.  But it seems I didn't.  Thanks for the catch, I added it in.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #5 on: January 07, 2009, 11:37:39 AM »
Oh, if you would like to add the things you changed in the script to support 3g usb dongle and submit the changes that would be good so others with the same hardware could benefit. 

Offline pema

  • Newbie
  • *
  • Posts: 48
Re: How to get pppsetup to work ?
« Reply #6 on: January 14, 2009, 02:27:16 AM »
@ Jason. Yes I would be glad to tell how I did but I do not know where to put relevant posting hence there is no howto area in this forum. This thread is about pppconf so its not really right posting modem instru for usb 3g dongle here. Please advice, in my opinion forum needs an howto area with instructions since a lot of postings are questions about howto do stuff.

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: How to get pppsetup to work ?
« Reply #7 on: January 14, 2009, 04:15:53 AM »
@ ^^
I think you can post in Tips and Tricks.

kagashe

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #8 on: January 14, 2009, 05:59:45 AM »
Also, you could include your changes to the pppsetup script that accommodate the newer modems and submit the extension with your changes.  And put any other instructions in the info file.  That to me would be even better than posting a how to on what needs to be changed in the extension to make it work since I am sure there are others that will use pppsetup to configure a 3g usb dongle.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: How to get pppsetup to work ?
« Reply #9 on: January 14, 2009, 01:01:22 PM »
@ Jason. Yes I would be glad to tell how I did but I do not know where to put relevant posting hence there is no howto area in this forum. This thread is about pppconf so its not really right posting modem instru for usb 3g dongle here. Please advice, in my opinion forum needs an howto area with instructions since a lot of postings are questions about howto do stuff.
The formal how-tos have their place in the wiki, as discussed.  But, in context of this thread, Jason's suggestion may be better.  If you don't want to modify the script yourself, you could post your changes in this thread (it's still related to the first post after all) or follow kagashe's suggestion.

Offline alex

  • Newbie
  • *
  • Posts: 40
Re: How to get pppsetup to work ?
« Reply #10 on: March 17, 2009, 09:24:51 AM »

Hi Jason:

This is my first post, I really like TCL , this is the fastest distro I've tried!!.

Unfortunatly I can´t get online with dial up. I followed the instructions and loaded bash.tce and pppd.tce but I get a "segmentation fault" error with pppsetup.

I´ll appreciate any help (sorry for my english).

Regards,

Alex



Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #11 on: March 17, 2009, 09:51:40 AM »
Hi Alex,
I will look into it when this evening. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #12 on: March 17, 2009, 09:42:12 PM »
Hi again Alex,
I can't produce a segmentation fault with pppsetup.  At what point does the segfault occur?

Offline alex

  • Newbie
  • *
  • Posts: 40
Re: How to get pppsetup to work ?
« Reply #13 on: March 20, 2009, 09:22:19 AM »
Hi Jason:

The error occurs when I try a local install. I tried witch an internet install and works ok. Do I have to follow an order of installation? ( 1st bash.tce, 2nd pppd.tce, etc.)

Thanks,

alex

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How to get pppsetup to work ?
« Reply #14 on: March 20, 2009, 09:49:36 AM »
It shouldn't make a difference which order they are installed.  By local install do you mean booting from the live cd and then loading the extensions with "tce-load", or a scatter mode (traditional) install?  Also, are you using mounted /usr/local?  Those are factors that could make in impact. 

Try booting with "base norestore nolocal" and then load the extensions with tce-load once booted if that is not what you have already tried.  Then one by one introduce your tclocal, backup, and other extensions if there was no problem getting it to work with the pristine boot.  I am thinking there is an issue with one of the apps the script calls upon.  Make sure also you are using a newly downloaded bash.tce extension as there were some issues with it earlier.