SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Then try kppp or pppsetup. If it doesn't work, try gnashley suggestion.
I though I was getting somewhere, e.g. I found that I did not have /sbin/modprobe ppp_generic
and ppp_async in /etc/rc.d/rc.modules, also fixed the modem link.
I will try your suggestion next. Just to be sure how I do this:
1. remove tcp/ip package
How:
ls /var/adm/packages | grep tcp
removpkg -warn (whatever I find with tcp)
2. remove kde package which contains kppp
Same as above
3. remove /etc/ppp directory (or change the name to something else)
mv /etc/ppp /etc/ppporiginal
4. re-install tcp/ip and the kppp package
mv /var/adm/removed_packages/tcp* /var/adm/packages/
installpkg
same for kppp
Is that correct, or should I get the packages from th CD
5. re-run kppp setup *without running pppsetup*
just start kppp from KDE or from a terminal?
NUmber 4 is wrong. You should not move or remove files from /var/adm/removed_packages/ -these are just database files anyway. Just re-install the packages from the CD. Once you use removepkg on a pcakage it is gone.
My point about ppsetup/kppp is that they don't get along -once you have used pppsetup kppp never seems to work correctly, so any other suggestions you try will probably be in vain until you re-install the packages. The thing is that both programs write files to /etc/ppp, but they don't write them the same so you should not try to use both programs. choose one or the other -but remember that either way the tcp/ip package needs to be installed as kppp uses tcp/ip and so do other programs.
Gnashley, I tried your prescription and got to the same place I was before, i.e. same result
i.e.
ppp: Use --help to get a list of available command line options.
bash-3.1# ls -l /dev/modem
lrwxrwxrwx 1 root root 10 2008-01-09 20:25 /dev/modem -> /dev/ttyS0
bash-3.1# kppp
bash-3.1# kppp
Opener: received SetSecret
Opener: received SetSecret
sh: atz: command not found
Opener: received OpenLock
Opener: received OpenDevice
So let me make sure I undertand you correctly:
First, I copied from the first Slack 12 CD
/mnt/cdrom/slckware/n/tcp_wrapper... and tcpdump... to /root/packages
and form the second CD
/mnt/cdrom/slackware/kde/kdenetwork... to /root/packages
Second, removepkg (these three packages)
Third, mv /etc/ppp /etc/pppold
Last, cd /root/packages
installpkg kdenetwork..., tcpdump and tcp_wrapper
Note that there is no longer a /etc/ppp directory. None has been created.
Not sure if I should rename /etc/pppold /etc/ppp
Then, I fired up kppp (from the command line) and used first The Configure option
(I assume this is what you mean by setup, or am I wrong?)
So still no cigar and the two questions are
a) whether by kppp setup you mean something different from The Configure button
and
b) whether I should cp /etc/pppold /etc/ppp
or whether I am missing something else
Note I forgot all about pppsetup
-did not even think about using it
Given what you reported in post #29, I suggest you use minicom to verify that you can successfully talk to the modem. Specifically that the modem will initialize and that you can dial your ISP. (If you reach your ISP, you can hit three plus signs (+) rapidly to get control back and then type ATH0 -- that is the numeral zero -- to "hang up" the modem and terminate the call.) Before running minicom as a regular user, you need to run minicom -s as root to configure it. See the man page for details.
As in post 29, I get modem ready and kppp prints Initializing modem.. before hanging.
So I guess the modem never got initialized-hence no question of ever reaching the ISP.
Or am I wrong?
I am also toying with the idea of using some program with finer control
over the modem than kppp (maybe wvdial or something like Device::Modem from Perl)
just to debug-right now it is far form clear to me what the problem is, unless
I have misunderstood gnashely's suggestions.
I will try minicom first though.
BTW, all these trys are done as root
As in post 29, I get modem ready and kppp prints Initializing modem.. before hanging.
So I guess the modem never got initialized-hence no question of ever reaching the ISP.
Or am I wrong?
I am not sure how to interpret those messages. With minicom you can make sure you have the basics (i.e. talking to the modem, initializing it, having it dial) working before you throw in the complexities of ppp and the additional software to handle it. In other words, a divide and conquer stategy.
Quote:
I am also toying with the idea of using some program with finer control
over the modem than kppp (maybe wvdial or something like Device::Modem from Perl)
just to debug-right now it is far form clear to me what the problem is, unless
I have misunderstood gnashely's suggestions.
Hence using minicom to check the basics first.
Quote:
I will try minicom first though.
BTW, all these trys are done as root
Just FYI, if permissions are set up as I expect, after configuring minicom as root you should be able to run it as a normal user.
Last edited by blackhole54; 01-10-2008 at 03:32 AM.
Sorry, I should have checked the package list -the tcp/ip package has been split up into many small packages. You need to uninstall and re-install the ppp package from the /n series, same way as you did the others. that should get your /etc/ppp dir back.
Did you do a full install of Slackware when you installed?
ok, the NO CARRIER is, I suppose because I was supposed to hit Ctrl-something
, but did not remember quite what(does anyone. I think it is not Ctrl-D, C or Z, but I do not
recall what it should be)
Meanwhile, kppp shows the same behavior(hang at initialize modem)
I'll retry with ppp from n
The point is looks like everything is ok exceot ppp-hopefully gnashley's suggestion will cure it
gnashley, I did
removepkg (ppp_package)
and then installpkg (ppp_package)
Kppp still behaves the same way, i.e. hangs on Installing
when run from the command line all it says is:
bash-3.1# kppp
Opener: received SetSecret
Opener: received SetSecret
sh: atz: command not found
Opener: received OpenLock
ok, the NO CARRIER is, I suppose because I was supposed to hit Ctrl-something
, but did not remember quite what(does anyone. I think it is not Ctrl-D, C or Z, but I do not
recall what it should be)
The other end had alread started Point-to-Point Protocol and was expecting you to do the same. My guess is it just dropped the line when you didn't do so after a certain period of time. But it looks like the basics are working, which I think is good info to have as you go forward.
FWIW, I have some experience with WvDial, but only as it has been called from within ifup-ppp scripts on RH.
Need to hit Ctrl-a q , when I get the funny characters, I guess, see http://www.linuxquestions.org/questi...uration-11683/
(last time I had done that was about 10 years ago...)
So yes, we have established ppp is working, but kppp is not. I have no clue now why this is so.
With kppp I opened up terminal, connected, authenticated myself to the ISP,
then I got the same lines with funny charactes, like braces and so on
and Control A Z did not do anything, so I got back a no carrier thing.
The same thing I get with minicom). On the other hand if I do not open terminal window in kppp->modem, it just shuts down the the kppp window and I am not connected.
Maybe I do not remember correctly and I need some different escape sequence when I get the funny characters after authentication?
minicom is great for troubleshooting, but I think it would be rather inconvenient to routinely use to get on the internet. But if you want to try ... All those "funny characters" is your ISP's server talking PPP. If you want to proceed, you should get out of minicom with Ctl-a followed by q followed by answering yes when it asks you if you want to exit w/o resetting (or something like that; I am going from memory here). You then need to manually start pppd before the other end drops the line. I have never actually followed through with starting pppd -- I stopped when I saw I could talk to my ISP.
I was hoping gnashley could help you get kppp working. If that is not working out I am wondering if you should just try ppp-go. I really don't have much experience with kppp and I've never used Slackware. Did you ever get pppsetup to work? If so, I suggest backing everything out like you did before to assure you don't have the conflict between packages that gnashley was talking about, and then run pppsetup and use ppp-go and ppp-off to control your connection.
Ctrl-a and q do not seem to work(others say Ctrl-a and z, I think I tried all conceivable combinations of a, q and z)
One of gnashley's point was not to use kppp and pppsetup, so I'm avoiding this.
The fact that with kppp I can bring up a terminal(as in minicom) and connect(go past authentication and up to the Ctrl-a z stage) means kppp
is not incompatible with something else, but that for some reason it cannot perform some step along the sequence of commands it has to perform;
the bad thing with a gui like kppp is it does not tell me where and why it fails.
Your suggestion is simple -give up on kppp,
try pppsetup instead
but I feel I must be close, sinc eI can connect.
The other thing is how about wvdial? Any experience with that?
I may also try my own connect script, something like Perl's
Device::SerialPort
and look at the messages or
maybe from a command line
kppp and redirect errors to some file(assuming kppp gives any errors)
But I would hope kppp would run (out of the box....)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.