old-www/HOWTO/PPP-HOWTO/kernel-configuration.html

343 lines
5.9 KiB
HTML

<HTML
><HEAD
><TITLE
>Configuring your Linux Kernel</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE="Linux PPP HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Maintaining a permanent connection to the net with pppd."
HREF="x582.html"><LINK
REL="NEXT"
TITLE="Knowing your hardware"
HREF="x640.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><A
HREF="http://www.linuxports.com/howto/ppp"
TARGET="_top"
>Linux PPP HOWTO</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x582.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x640.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="KERNEL-CONFIGURATION"
>Chapter 10. Configuring your Linux Kernel</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>10.1. <A
HREF="kernel-configuration.html#AEN609"
>Installing the Linux Kernel source</A
></DT
><DT
>10.2. <A
HREF="x640.html"
>Knowing your hardware</A
></DT
><DT
>10.3. <A
HREF="x644.html"
>Kernel compilation - the Linux 1.2.13 kernel</A
></DT
><DT
>10.4. <A
HREF="x656.html"
>Kernel compilation - the Linux 1.3.x, 2.0.x, and 2.2.x kernels</A
></DT
><DT
>10.5. <A
HREF="x676.html"
>Note on PPP-2.x and <TT
CLASS="LITERAL"
>/proc/net/dev</TT
></A
></DT
><DT
>10.6. <A
HREF="x686.html"
>General kernel config considerations for PPP</A
></DT
></DL
></DIV
><P
>In order to use PPP, your Linux kernel must be compiled to include PPP
support. Obtain the Linux source code for your kernel if you do not
already have this - it belongs in <TT
CLASS="LITERAL"
>/usr/src/linux</TT
> on Linux's standard
file system.</P
><P
>Check out this directory - many Linux distributions install the source
tree (the files and subdirectories) as part of their installation process.</P
><P
>At bootup, your Linux kernel prints out a great deal of information.
Amongst this is information about PPP support and if the kernel includes
it. To view this information, look at your syslog file or use
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>dmesg | less</PRE
></TD
></TR
></TABLE
>
to display the information to the screen. If your kernel includes
PPP support, you will see lines like</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.</PRE
></TD
></TR
></TABLE
>&#13;</P
><P
>(this is for the Linux 2.x.x kernel series).</P
><P
>Linux kernel sources can be obtained by ftp from <TT
CLASS="LITERAL"
>sunsite.unc.edu</TT
> or its
mirror sites.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN609"
>10.1. Installing the Linux Kernel source</A
></H1
><P
>The following are brief instructions for obtaining and installing the
Linux kernel sources. Full information can be obtained from <A
HREF="http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>The Linux Kernel HOWTO</A
>.</P
><P
>In order to install and compile the Linux kernel, you need to be logged
in as root.</P
><P
>&#13;<P
></P
><OL
TYPE="1"
><LI
><P
>Change directory to the <TT
CLASS="LITERAL"
>/usr/src</TT
> directory
<TT
CLASS="LITERAL"
>cd /usr/src</TT
>.</P
></LI
><LI
><P
>Check in <TT
CLASS="LITERAL"
>/usr/src/linux</TT
> to see if you already have the
sources installed.</P
></LI
><LI
><P
>If you don't have the sources, get them from <A
HREF="ftp://sunsite.unc.edu/pub/Linux/kernel/"
TARGET="_top"
>Linux kernel source directory</A
> or your nearest mirror.
Select the appropriate directory- v2.0 if you are running a 2.0.x
kernel, or v2.2 if you are running a 2.2.x kernel.
If you are looking for earlier versions of the kernel (such as 1.2.X),
these are kept in <A
HREF="ftp://sunsite.unc.edu/pub/Linux/kernel/old"
TARGET="_top"
>Old Linux kernel source directory</A
>.</P
></LI
><LI
><P
>Choose the appropriate kernel - usually the most recent one
available is what you are looking for. Retrieve this and put the source
tar file in <TT
CLASS="LITERAL"
>/usr/src</TT
>.
<I
CLASS="EMPHASIS"
>Note</I
>: a 'tar' file is an archive - possibly compressed (as are the
Linux kernel source tar files) containing many files in a number of
directories. It is the Linux equivalent of a DOS multi-directory zip file.&#13;</P
></LI
><LI
><P
>If you already have the Linux sources installed but are upgrading
to a new kernel, you must remove the old sources. Use the
command
<TT
CLASS="LITERAL"
>rm -rf /usr/src/linux</TT
>.</P
></LI
><LI
><P
>Now uncompress and extract the sources using the command
<TT
CLASS="LITERAL"
>tar xzf linux-X.X.XX.tar.gz</TT
>
where "X.X.XX" is the version of the kernel you downloaded.</P
></LI
><LI
><P
>Now, <TT
CLASS="LITERAL"
>cd /usr/src/linux</TT
> and read the README file. This contains
an excellent explanation of how to go about configuring and compiling a
new kernel. Read this file, (it's a good idea to print it out and have a
copy handy whilst you are compiling until you have done this enough
times to know your way around).</P
></LI
></OL
>&#13;</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x582.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x640.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Maintaining a permanent connection to the net with <I
CLASS="EMPHASIS"
>pppd</I
>.</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Knowing your hardware</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>