• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 951
  • Last Modified:

PPPOE-server set up in Gentoo

anybody know how to set up a PPPOE-server in Gentoo in detail.   such as how to run pppoe-server
  • 8
  • 8
1 Solution
nociSoftware EngineerCommented:
Did you read this URL:

if not please start there...

If you did read then exactly how far did you come?
llvllar1onAuthor Commented:
i just downloaded  pppd , and installed it . but when i type
# emerge --search pppd
[ Results for search key : pppd ]
[ Applications found : 0 ]

what happen?

llvllar1onAuthor Commented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

llvllar1onAuthor Commented:
the way I installed  pppd is:

make install
nociSoftware EngineerCommented:
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.

llvllar1onAuthor Commented:
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
nociSoftware EngineerCommented:
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).

llvllar1onAuthor Commented:
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
llvllar1onAuthor Commented:
such as
localhost ~ # pppop-setup
bash: pppop-setup: command not found

nociSoftware EngineerCommented:
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.
nociSoftware EngineerCommented:
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.

llvllar1onAuthor Commented:
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
llvllar1onAuthor Commented:
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
nociSoftware EngineerCommented:
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
nociSoftware EngineerCommented:
'emerge -vupDN'
will show what is updated in the portage repository, it's not on your system YET...

use: 'emerge -uDN'  for that.
nociSoftware EngineerCommented:
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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 8
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now