Setting up PPP

Configuring the kernel

Before you can logon to the Internet, the kernel must be ppp-aware. You can accomplish this by compiling ppp-support directly into the kernel, or compiling the ppp drivers are modules which you load when you need them. Whatever you prefer, do it now by re-configuring the kernel if necessary. If your LFS kernel is already ppp-aware than you don't have to re-configure the kernel.

Creating group


groupadd -g 7 daemon

Installing PPP


./configure
make
make install

Creating /etc/resolv.conf


# Begin /etc/resolv.conf

nameserver <IP address of your ISP's primary DNS server>
nameserver <IP address of your ISP's secundary DNS server>

# End /etc/resolv.conf

Creating /etc/ppp/peers/provider


mkdir /etc/ppp/peers


# Begin /etc/ppp/peers/provider

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
/dev/<device>
115200
defaultroute
noipdefault

# End /etc/ppp/peers/provider

Replace <device> with the device that correspondents with your modem.

Creating the /etc/chatscripts/provider file


mkdir /etc/chatscripts


# Begin /etc/chatscripts/provider

ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
"" ATZ
OK ATDT <ISP's phonenumber>
TIMEOUT 35
CONNECT ''
TIMEOUT 10
ogin: \q<username>
TIMEOUT 10
assword: \q<mysecretpassword>

# End /etc/chatscripts/provider