Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: pema 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.
-
Are you using the extension pppsetup.tc{e,z}?
-
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.
-
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.
-
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.
-
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.
-
@ 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.
-
@ ^^
I think you can post in Tips and Tricks.
kagashe
-
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.
-
@ 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.
-
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
-
Hi Alex,
I will look into it when this evening.
-
Hi again Alex,
I can't produce a segmentation fault with pppsetup. At what point does the segfault occur?
-
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
-
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.
-
Ok, now works!! I think bash.tce file was corrupted.
Thanks!
-
Though the default modem initialisation string worked fine for my hardware 56K modem on /dev/ttyS0, it didn't work at all with my pcmcia modem on /dev/ttyS1
I described my difficulties (and details of the changes I needed to make) in my post here:
http://forum.tinycorelinux.net/index.php?topic=311.msg5816#msg5816 (http://forum.tinycorelinux.net/index.php?topic=311.msg5816#msg5816)
In brief, I used the modem initialisation string which I discovered is used by default in Puppy Linux version 2.17.1, which I repeat here for your convenience (in the form expected by the pppsetup script):
ATZ OK "ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0" OK
Please visit the above link to my earlier post for more details along with a solution to another unexpected problem I had with my ISPs ppp negotiation requirements.
NOTE: Since the above modem initialisation string seems to work with a large variety of modems, I hope you will modify pppsetup to use that by default rather than the modem string currently suggested (which didn't play nicely with my pcmcia modem on /dev/ttyS1 at all).
Please also remember to include bash as one of the dependencies for pppsetup to run successfully.
-
Though I had made the pppsetup extension and got it to work with a standard null modem, it has been years since I've used dialup ( I have forgotton so much of ppp on Linux ) and I really don't have the means to do much testing with. Since you are fluent in ppp and have the hardware to test the configurations on, it would be a great service if you would modify what is needed to the pppsetup extension and submit it.
-
Since you are fluent in ppp and have the hardware to test the configurations on, it would be a great service if you would modify what is needed to the pppsetup extension and submit it.
Actually, I wouldn't claim to know much about ppp setup at all. But the main temporary problem I have with your otherwise absolutely reasonable request is that I have only really just started using tc in a major way, so I know nothing as yet about how to produce extensions myself (though I gather that the process is relatively painless). Once I have time to check that out, however, I'll certainly submit what I can (assuming no one else has done so by that time). I would only change the modem default init string in pppsetup anyway; the other -am pppd option is probably best left to be done manually since most users probably don't need it or want it.
-
Using TC version 2.0rc1
pppset basically works in TC version 2.0rc1 as described above for TC version 1.x.
However, I after setting up my local eth0 ethernet card to 192.168.0.1 using netcardconf (from cpanel) the ppp-go output screen connected but with the following problem indicated:
"not removing default route through 192.168.0.254"
netcardconf had automatically used a "Gateway" IP of 192.168.0.254
Solution seems to be: when setting up the eth0 ethernet card, manually enter the value: ppp0 for the "Gateway".
[An alternative way of getting ppp-go to work correctly was first to open a terminal and enter:
sudo route delete default
However, entering ppp0 as the Gateway whilst configuring netcardconf in cpanel is less cumbersome]
I'm wondering netcardconf's behaviour is a bug in TC 2.0rc1; I can't remember having such an issue with TC 1.x; could netcardconf be modified such that it doesn't create a default route of 192.168.0.254?
-
For information on how to set up a dial up internet connection, see
/dial.html][removed due to policy violation]/dial.html (http://[removed due to policy violation)
For information on how to install Tiny Core without being connected to the internet, see
/install.html][removed due to policy violation]/install.html (http://[removed due to policy violation)
I hope this helps people with dial up internet connections.