[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


PPPOE-server set up in Gentoo

Posted on 2006-07-12
Medium Priority
Last Modified: 2011-10-03
anybody know how to set up a PPPOE-server in Gentoo in detail.   such as how to run pppoe-server
Question by:llvllar1on
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 8
LVL 40

Accepted Solution

noci earned 2000 total points
ID: 17095591
Did you read this URL:

if not please start there...

If you did read then exactly how far did you come?

Author Comment

ID: 17095769
i just downloaded  pppd , and installed it . but when i type
# emerge --search pppd
[ Results for search key : pppd ]
[ Applications found : 0 ]

what happen?


Author Comment

ID: 17095794
how do i know if I installed successfully or not?  even further, how do I know if my system has a pppd before I downloaded pppd? i am fair new in linux
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 17095837
the way I installed  pppd is:

make install
LVL 40

Expert Comment

ID: 17096011
To install software on gentoo use emerge like:

the first command --search: indicate the package is not there.
it is named ppp

install with:

emerge ppp

This will download & verify all needed stuff, add patches if needed for gentoo
unpack, configure, make & make install the software.
And keep some state information to be able to remove it when you want to.


Author Comment

ID: 17103361
I have a file called
-rw-rw-r--   1 root  portage   53172 Jun 29  2005 ppp-2.4.2-mppe-mppc-1.1.patch
how do i install in gentoo
LVL 40

Expert Comment

ID: 17103613
Installing in gentoo is done using "emerge"

to install product ppp you use:

emerge ppp

This will:
  Download all needed sources
  Unpack the sources in a build directory
  Patch sources if needed   (f.e apply the ppp-2.4.2-mppe-mppc-1.1.patch
  run configure
  run make
  run make install to install to an install image.
  merge the install image into the master tree.
  make a record of added files (dates,times, sizes, md5 hash)
  cleanup the build environment & install subtree
  cleanup old remainders of a previous version if needed.
  warn you about pending updates in the configuration.

If you want to see if there are newer versions of a product do:

emerge --sync     # this will update you portage database (available product database)

if you want to find out if you have updates pending:

emerge -vupDN world   # this will cross reference the portage tree to the installed images and dependency's
                                 # and suggest which packets to update.

also install tools like epm, gentoolkit:

emerge epm
emerge gentoolkit
emerge portage-utils

then you have a package management query tool 'epm' (kind of rpm -q lookalike)
tools like revdep-rebuild which can track if libraries have missing references.

You can also verify if your system is vulnerable to possible hacks with
glsa-check -t new
and glsa-check -d <bugid> can be used to check the references of the bugs

the portage build system is verry powerfull. It has been derived from the FreeBSD package management 'ports',
but this one is on steroids. Currently they are porting portage back to FreeBSD (Yes there is a Gentoo FreeBSD).


Author Comment

ID: 17104828
Thank you for a lot of useful info.
I have already completed this step.
% emerge --search ppp
*  net-dialup/ppp
     Latest version available: 2.4.2-r15
     Latest version installed: 2.4.2-r10
     Size of downloaded files: 814 kB
     Homepage:    http://www.samba.org/ppp
     Description: Point-to-point protocol (PPP)
     License:     BSD GPL-2

but also
% emerge rp-pppoe

but when I typed
% pppoe-setup
% pppoe-start  (To start the connection use pppoe-start)
% pppoe-stop  (To stop the connection use pppoe-stop)
% pppoe-status (To view the connection's status use pppoe-status)
no respond at all

Author Comment

ID: 17104836
such as
localhost ~ # pppop-setup
bash: pppop-setup: command not found

LVL 40

Expert Comment

ID: 17104901
Didn't you get a lot of errors or a message you need to be root or at least be in the portage group?

What was the output after emerge rp-pppoe..?

please install the epm tools ('emerge epm') and do
This should show first checking / unpacking / compiling..
then install commands,
then >>> files... during merge
and optionaly
<<< files.... during cleanup.

epm -ql rp-pppoe

I can understand it cant find pppop-setup, it's pppoe-setup.
If the setup is completed (it asks for username etc.)
then pppoe-start makes sense.
LVL 40

Expert Comment

ID: 17106688
BTW what version of gentoo are you using because latest ppp also has pppoe capabilities
as per Gentoo-howto in the 2nd half of the document.


Author Comment

ID: 17110722
I believed i have installed re-pppoe. here is the result
localhost ~ # emerge --search rp-pppoe
[ Results for search key : rp-pppoe ]
[ Applications found : 1 ]

*  net-dialup/rp-pppoe
      Latest version available: 3.8
      Latest version installed: 3.5-r11
      Size of downloaded files: 2,639 kB
      Homepage:    http://www.roaringpenguin.com/pppoe/
      Description: A user-mode PPPoE client and server suite for Linux
      License:     GPL-2

I also updated my system emerge --sync
i dont know how to check my gentoo version

Author Comment

ID: 17110766
do really need install epm?  i dont want to install too much since i am new for gentoo. it is very easy for me to mess up
LVL 40

Expert Comment

ID: 17117855
Well the gentoo version is mention in /etc/make.profile (it's a symlink pointing to the configuration directory)
for a recent gentoo that would look like:

# ls -l /etc/make.profile
lrwxrwxrwx 1 root root 49 Jun 27 16:39 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2006.0/

Besides that a regular 'emerge --sync' to get the latest & greatest...

'emerge -vupDN world'

to see what has changed.

And no you don't *need* epm, but it's kind of handy:

'epm -qa'                   Gives a list of all packages
'epm -ql package'       Gives a list of files that were installed when 'package' was emerged.
'epm -qf /usr/bun/X'   will show you to what packed file '/usr/bin/X'  belongs

as well as some other uses
LVL 40

Expert Comment

ID: 17118080
'emerge -vupDN'
will show what is updated in the portage repository, it's not on your system YET...

use: 'emerge -uDN'  for that.
LVL 40

Expert Comment

ID: 17118098
After such an update you can clean a lot of crap from your system by removing files from:


(These are all downloaded source packages....) If you needed to download files seperately
(like f.e sun-jdk or sun-jre files) you should keep those because they can't be downloaded

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question