Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: JohnJS on January 26, 2011, 09:22:12 PM

Title: files for dialup modem
Post by: JohnJS on January 26, 2011, 09:22:12 PM
Will be setting up a computer for dialup 56k modem (serial port) using tc3.4.1.
What repo's do I need to download beforehand? (ppp.tcz, pppsetup.tcz or something else).
Have not used TC with anything but High Speed DSL (not wireless).
Thank you.
Title: Re: files for dialup modem
Post by: maro on January 26, 2011, 10:09:27 PM
AFAIK you should be fine with 'pppd.tcz' on an ongoing basis (i.e. in 'onboot.lst') PLUS you'll probably need 'pppsetup.tcz' (and all its dependencies) just once to set it all up (unless you can create the config files in some other way). I'd therefore suggest to use tce-load -wi pppd && tce-load -wil pppsetup

I believe you'll also need to ensure that you include the settings files in your backup, so that they "survive" the next reboot. I'd probably do echo etc/ppp >> /opt/.filetool.lst and ensure that a backup is done after the files were created and are working for you (e.g. via filetool.sh -b).

I'm not a PPP user myself but we had a few PPP related questions in the last few month, so please make use of the search function to look up those threads. Even though those threads were mostly related to 3G modems there might be still some useful information for your case, so please read first and then ask more questions (if at all required).
Title: Re: files for dialup modem
Post by: JohnJS on January 26, 2011, 10:37:22 PM
Thanks maro,
Yes I did notice posts were referring to 3g modems.
Many thanks for the info.
Title: Re: files for dialup modem
Post by: Guy on January 27, 2011, 06:19:02 AM
For a dial up modem on a serial port, install pppsetup.tcz and all dependencies, and dependencies of dependencies.

If you install pppsetup.tcz using the App Browser, you will get them.

It can be set up just by running ppp-configure from the menu, or sudo pppsetup from the terminal, and answering the questions correctly.
Callback - answer no.
Don't change the default modem string.
Leave Internet Service Providers Domain Name blank.
You don't need to modify files afterwards, like they do with 3g modems.

After setup, the following files need to be included in backup, or made into a new extension.
etc/ppp
etc/resolv.conf
usr/local/sbin/ppp-go
Title: Re: files for dialup modem
Post by: JohnJS on January 27, 2011, 11:49:43 AM
Thanks maro and guy for the very detailed info.
Will be about a week before I can set it up.

Title: Re: files for dialup modem
Post by: JohnJS on February 16, 2011, 04:07:52 PM
guy and maro,
56k dial up working fine.
Using term "sudo ppp-go" to get online and can see progress in term.
Have to use pppsetup to "disconnect".
Is there a command from term that I can use?
Tried  sudo ppp-"stop, disconnect ,end, down" none seem to work.
Sorry for the dumb question.
Title: Re: files for dialup modem
Post by: tinypoodle on February 16, 2011, 04:35:46 PM
ppp-off ??
Title: Re: files for dialup modem
Post by: JohnJS on February 16, 2011, 05:34:48 PM
Thanks tinypoodle
Have to sudo ppp-off twice then it disconnects.
First instance brings me to tc@box from green cursor in term.
Then second command disconnects modem.

The lastline and ppp-off command:
Script /etc/ppp/ip-up finished (pid 2107), status = 0x0
sudo ppp-off
tc@box:~$ sudo ppp-off
PPP link to [ppp0] terminated.
Terminating on signal 2

Title: Re: files for dialup modem
Post by: JohnJS on February 24, 2011, 01:06:19 PM
Noticed that I have to have pppsetup.tcz loaded (from ondemand) otherwise sudo ppp-go from term returns "/usr/local/sbin/ppp-go no such file".
I do have etc/ppp etc/resolv.conf and usr/local/sbin/ppp-go in my .filetool.lst. and pppd.tcz in onboot list.
Is this the correct method?
Otherwise dial-up is working fine.
Thanks.