Mandriva This Forum is for the discussion of Mandriva (Mandrake) 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-09-2005, 05:07 PM
|
#1
|
Member
Registered: Nov 2004
Posts: 61
Rep:
|
'pon' and 'poff' not working with mandrivalinux
Hi.
I know that debian users start and close a ppp connection with the commands
'pon' and 'poff' respectively.
With Mandriva these commands do not seem to work:
in fact, in my Mandrake 10.1 ppp is regularly installed, but 'pon' and 'poff' are
'not found' by the system.
Does anybody know what should I use in their place?
Thanks,
Rodolfo
|
|
|
10-10-2005, 01:25 PM
|
#2
|
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081
Rep:
|
I take it that you are only using the command line?
If not, then kppp will manage your dial-up settings, or Mandrake Control Centre should also.
You may be able to add an alias to the config file that starts and stops the interface, probably in /etc/sysconfig/network-scripts and called ppp0 or something like that. Don't know for certain as I don't use ppp.
HTH
|
|
|
10-10-2005, 11:46 PM
|
#3
|
Member
Registered: Mar 2005
Location: palmdale, california
Distribution: MEPIS 8; Debian (stable/testing)
Posts: 83
Rep:
|
poff the magic pathname?
I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
|
|
|
10-11-2005, 12:26 AM
|
#4
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
|
Its /usr/sbin and /sbin, not /etc/sbin
The sbin directories are only in the root user's PATH on any properly setup distro because the programs in sbin directories are root-only commands. On Mandrake ping is /bin/ping (so that it can be run by typing the command 'ping' by any user) whereas traceroute, which must be run as root, is in /usr/sbin/traceroute, so you can either su - into root and run traceroute or just do 'sudo traceroute'. This is the correct setup - there's no point having sbin directories in user's PATHs because they can't run any of the programs in there.
See: http://www.pathname.com/fhs/pub/fhs-...SYSTEMBINARIES
|
|
|
10-11-2005, 06:26 AM
|
#5
|
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081
Rep:
|
Re: poff the magic pathname?
Quote:
Originally posted by handydan
I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
|
That's a good place to start looking handydan (well, in /usr/sbin, not /etc/sbin) when you can't find a command at the terminal as a normal user.
I think though, after some googling, that pon and poff are Debian specific scripts. But like I mentioned before, you could easily write a script to emulate them.
http://annys.eines.info/cgi-bin/man/man2html?poff+1
|
|
|
10-11-2005, 09:23 AM
|
#6
|
Member
Registered: Nov 2004
Posts: 61
Original Poster
Rep:
|
cragstar wrote:
> I think though, after some googling, that pon and poff are Debian specific scripts. But like
> I mentioned before, you could easily write a script to emulate them.
Yes, but *how*?
Excuse me, I'm newbie, could you suggest how to do so?
Rodolfo
|
|
|
10-11-2005, 05:57 PM
|
#7
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
I don't know much about dial-up in Linux but don't you just use normal ifup and ifdown commands on the ppp interface (ppp0?) to bring it up and down? Have you used the Mandrake Control Centre to configure your connection? Are there any files in /etc/sysconfig/network-scripts/ that relate to ppp?
|
|
|
10-11-2005, 07:10 PM
|
#8
|
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081
Rep:
|
Try this
As long the ppp interface has a corrsponding config file you should be able to run
Code:
/etc/sysconfig/network-scripts/ifup-ppp
to start the dial-up interface with the default settings (the settings from the Mandriva Control Centre).
If it works, and you can run
Code:
/etc/sysconfig/network-scripts/ifdown-ppp
to disconnect, you can then create a link to each file like this (make sure you are the root user):
Code:
ln -sf /etc/sysconfig/network-scripts/ifup-ppp /usr/bin/pon
and
Code:
ln -sf /etc/sysconfig/network-scripts/ifdown-ppp /usr/bin/poff
Now as any user you should be able to run pon and poff to dial and disconnect.
Just an idea - should work in theory... 
|
|
|
10-11-2005, 08:18 PM
|
#9
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
/etc/sysconfig/network-scripts/ifup-ppp
|
You can just call it as (as root of course). Either way you'd need to have an ifcfg-ppp0 or similar file in the /etc/sysconfig/networking-scripts directory, which the Networking section in the Mandrake Control Centre should configure for you.
|
|
|
10-12-2005, 01:19 AM
|
#10
|
Member
Registered: Nov 2003
Location: Vancouver BC
Distribution: Mandrake/Arch/Smoothwall/Suse
Posts: 30
Rep:
|
"The sbin directories are only in the root user's PATH on any properly setup distro because the programs in sbin directories are root-only commands"
This is not always the case. I use ifconfig to find the IP address of my machine. As user I can type in /sbin/ifconfig and get a readout on my network adapters. Can't configure them of course unless I am root. I bet there are other examples of this.
|
|
|
10-12-2005, 01:40 AM
|
#11
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Yeah that's true - traceroute often works even when run as a non-root user for example. But just about all distros default to not having sbin in the PATH because you can't properly use those programs as non-root, only some functions work.
|
|
|
All times are GMT -5. The time now is 02:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|