Difference between pages "PPPoE" and "Package:ACPI Daemon"

From Funtoo
(Difference between pages)
Jump to: navigation, search
m
 
 
Line 1: Line 1:
This page expains how to setup and configue '''PPPoE''' connection with rp-pppoe and Funtoo Linux network.
+
== Introduction ==
== Kernel options ==
+
==== What is acpi? ====
Make sure following kernel options are enabled
+
"In computing, the Advanced Configuration and Power Interface (ACPI) specification provides an open standard for device configuration and power management by the operating system." [(http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface Wikipedia)]
<pre>
+
 
# zgrep PPP /proc/config.gz
+
==== What is acpid? ====
CONFIG_PPP=m
+
"ACPID is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on a file (/proc/acpi/event) and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the admin." [(http://acpid.sourceforge.net/ acpid Sourceforge)]
CONFIG_PPP_BSDCOMP=m
+
 
# CONFIG_PPP_DEFLATE is not set
+
== Preparing to install ==
CONFIG_PPP_FILTER=y
+
==== Kernel configuration ====
CONFIG_PPP_MPPE=m
+
Before we are ready to emerge acpid, it is a good idea to modify a few things in the kernel. If you have not modified your kernel before, you may want to check out the following page on configuring a kernel manually (page to be added..).
CONFIG_PPP_MULTILINK=y
+
{{kernelop
CONFIG_PPPOE=m
+
|.config - Linux/x86 3.12.0-gentoo Kernel Configuration
CONFIG_PPP_ASYNC=m
+
|Power management and ACPI options --->
CONFIG_PPP_SYNC_TTY=m</pre>
+
}}
Next, we configure and install {{Package|net-dialup/rp-pppoe}}:
+
== Installing acpid ==
 +
==== Emerging ====
 +
To install acpid, run this command:
 
<console>
 
<console>
###i## emerge -av rp-pppoe
+
##r### ##b##emerge -av acpid
###i## pppoe-setup
+
 
</console>
 
</console>
Configuration is straightforward, setup username, password and ethernet interface to use, in our example it is <code>eth2</code>.
 
  
= Funtoo Linux network setup =
+
==== Adding to rc ====
Funtoo openrc does not provide default template for ppp connections. We will create a custom template.
+
After you have finished installing acpid, you may want to add it to the list of rc services to be started with your system at boot.
<console># ##i##cd /etc/netif.d/</console>
+
<console>
Create <code>interface-pppoe</code>
+
##r### ##b##rc-update add acpid default
<pre>#!/bin/sh
+
</console>
netif_pre_up() {
+
Then, run the following to start rc:
pppoe-connect >/var/log/pppoe.log 2>&1 &
+
<console>
}
+
##r### ##b##rc
netif_pre_down() {
+
</console>
pppoe-stop
+
[[Category:System]]
}</pre>
+
Now we will create a <code>eth2</code> interface as follows:
+
<console># ##i##cd /etc/init.d
+
# ##i##ln -s netif.tmpl netif.eth2</console>
+
Then create an <code>/etc/conf.d/netif.eth2</code> configuration file that would specify a pppoe template in <code>/etc/netif.d</code> directory:
+
<pre>template="interface-pppoe"
+
description="Your ISP"</pre>
+
To complete configuration add an interface to default runlevel:
+
<console> # ##i##rc-update add netif.eth2 default</console>
+
 
+
[[Category:Networking]]
+
[[Category:HOWTO]]
+

Revision as of 01:40, 11 November 2013

Introduction

What is acpi?

"In computing, the Advanced Configuration and Power Interface (ACPI) specification provides an open standard for device configuration and power management by the operating system." [(http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface Wikipedia)]

What is acpid?

"ACPID is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on a file (/proc/acpi/event) and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the admin." [(http://acpid.sourceforge.net/ acpid Sourceforge)]

Preparing to install

Kernel configuration

Before we are ready to emerge acpid, it is a good idea to modify a few things in the kernel. If you have not modified your kernel before, you may want to check out the following page on configuring a kernel manually (page to be added..).


Installing acpid

Emerging

To install acpid, run this command:

# emerge -av acpid

Adding to rc

After you have finished installing acpid, you may want to add it to the list of rc services to be started with your system at boot.

# rc-update add acpid default

Then, run the following to start rc:

# rc