Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
When I type pppd I get "command not found" error
I checked in usr/sbin/ and it's exist and can be activated by typing the full path but when typing the command alone it doesn't work I get the same error for ifdown, ifup, netconfig and many more how can I fix it?
I have redhat Linux 9
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
ppp_d_ is a daemon. Normally it should be loaded by the application that needs it (like wvdial or clicking the connector-symbol in KDE).
Try modprobe (?) or any other commands of your preference to find out what processes are loaded and / or running to make sure that pppd is the real problem.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
I just remembered: daemons (modules) might also be kicked off by "insmod", which, as I understand it, loads it into the kernel. I'm am not sure whether the pppd can be started the way you tried to do it.
Daemons and modules are not the same thing or even similar. Insmod doesnt start deamons it loads modules.
You could start a ppp connection from the commandline if you wanted to and you had chat and had done "modprobe -v ppp" first:
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
@m0rl0ck: Thanks for this clarification. I thought that ppp_d_ is a driver (in the Windows sense ) and thus would have to be "inserted".
Just for the record, what is the difference between modules and daemons then? Am I correct, that ppp is a program which then starts pppd (just like wvdial)?
A module is a program. A daemon is a logical entity which runs independently of other daemons. While processing, a daemon can wander through many programs.
A daemon is an independently running process that has its own set of resources. Each daemon has a number which is the PID. Daemons run independently of each other. That is how you can have several programs running simultaneously. Actually it is several daemons running simultaneously.
-----------------------------------------------
Am I correct, that ppp is a program which then starts pppd (just like wvdial)?
-----------------------------------------------
When you start wvdial you start a daemon which runs the wvdial program. wvdial starts a daemon called pppd which runs a program called ppp. My wvdial log always gives the PID of pppd. ppp is a module that is part of the kernel. pppd accepts requests from other daemons running web browsers like Mozilla and/or email programs like sylpheed and/or ftp clients like gftp. pppd accesses the internet for all the other daemons and keeps track of what information is to be passed to which daemon.
Some kernel modules are transient and some are a permanent part of the kernel. I think that ppp is partially permanent and partially transient.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
@jailbait
Let me see, whether I understand correctly:
Each and every "program" has a controlling daemon, like an envelope (your erstwhile logical entity), which controls the program's execution. These envelopes can be nested (in your example: daemon[wvdial[pppd(aemon)[ppp]]], while communication between ppp(d) and other applications is running. That correct?
If so, then why is pppd contacting the Internet enstead of ppp (I mean with pppd being only the controlling entity)? I thought ppp has the rights to write to the modem?
Since there is also a daemon running e.g. Mozilla, I take it, that the daemons are really interprocess-communications facilities (like semaphores)?
@whansard:
Thanks for the pointer to where the modules can be found.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.