Solved

PPPOE-server set up in Gentoo

Posted on 2006-07-12
16
907 Views
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
0
Comment
Question by:llvllar1on
  • 8
  • 8
16 Comments
 
LVL 39

Accepted Solution

by:
noci earned 500 total points
Comment Utility
Did you read this URL:

http://gentoo-wiki.com/HOWTO_Connect_using_PPPoE
if not please start there...

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

Author Comment

by:llvllar1on
Comment Utility
i just downloaded  pppd , and installed it . but when i type
# emerge --search pppd
Searching...
[ Results for search key : pppd ]
[ Applications found : 0 ]

what happen?



0
 

Author Comment

by:llvllar1on
Comment Utility
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
0
 

Author Comment

by:llvllar1on
Comment Utility
the way I installed  pppd is:

./configure
make
make install
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
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.

0
 

Author Comment

by:llvllar1on
Comment Utility
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
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
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).

0
 

Author Comment

by:llvllar1on
Comment Utility
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
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:llvllar1on
Comment Utility
such as
localhost ~ # pppop-setup
bash: pppop-setup: command not found

0
 
LVL 39

Expert Comment

by:noci
Comment Utility
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.
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
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.

0
 

Author Comment

by:llvllar1on
Comment Utility
I believed i have installed re-pppoe. here is the result
---------------------------------------------------------------------------------------------------------
localhost ~ # emerge --search rp-pppoe
Searching...
[ 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
0
 

Author Comment

by:llvllar1on
Comment Utility
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
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
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
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
'emerge -vupDN'
will show what is updated in the portage repository, it's not on your system YET...

use: 'emerge -uDN'  for that.
0
 
LVL 39

Expert Comment

by:noci
Comment Utility
After such an update you can clean a lot of crap from your system by removing files from:

/usr/portage/distfiles

(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
automatically.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now