282 lines
4.8 KiB
HTML
282 lines
4.8 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>The installation</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Glibc Installation HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="The installation of glibc itself"
|
|
HREF="the-install-of-glibc-itself.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Obtaining and compiling the source"
|
|
HREF="obtaining-and-compiling-the-source.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="After the kernel is booted..."
|
|
HREF="after-the-kernel-is-booted.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Glibc Installation HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="obtaining-and-compiling-the-source.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 4. The installation of glibc itself</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="after-the-kernel-is-booted.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="the-installation"
|
|
></A
|
|
>4.2. The installation</H1
|
|
><P
|
|
> To install glibc you need a system with nothing running on it,
|
|
since many processes (for example sendmail) always try to use the
|
|
library and therefore block the files from being replaced.
|
|
Therefore we need a <SPAN
|
|
CLASS="QUOTE"
|
|
>"naked"</SPAN
|
|
> system, running nothing except
|
|
the things we absolutely need. You can achieve this by passing
|
|
the boot option <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>init=/bin/bash</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> to your kernel. Depending on
|
|
your bootloader you may need to do different things. In the following I will explain this using the two most common bootloaders, LILO (LInux-LOader)
|
|
and GNU grub, as examples.</P
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="lilo"
|
|
></A
|
|
>4.2.1. LILO</H2
|
|
><P
|
|
>To start the <SPAN
|
|
CLASS="QUOTE"
|
|
>"only-basics"</SPAN
|
|
> system, reboot your computer and
|
|
at the LILO prompt enter the kernel image-name you like to load and
|
|
append <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>init=/bin/bash</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> to it before pressing
|
|
<B
|
|
CLASS="keycap"
|
|
>Return</B
|
|
>.
|
|
If you are planing to replace your glibc more often, it might be a
|
|
good idea to add a separate configuration to your
|
|
<TT
|
|
CLASS="filename"
|
|
>/etc/lilo.conf</TT
|
|
>. For details, refer to the man-page of LILO.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="grub"
|
|
></A
|
|
>4.2.2. Grub</H2
|
|
><P
|
|
>Grub is a newer bootloader, with enhanced support for different
|
|
operating systems and and file system types (eg. it supports booting from
|
|
reiserfs partitions). If you would like to know more go to:
|
|
<A
|
|
HREF="http://www.gnu.org/software/grub/"
|
|
TARGET="_top"
|
|
>http://www.gnu.org/software/grub/</A
|
|
>, where you will find all the stuff you need.</P
|
|
><P
|
|
>If you already have Grub installed, you probably use the
|
|
text-based front-end to select the kernel you prefer to boot. Grub
|
|
has a nice feature—instead of returning to doing everything by
|
|
hand, you can simply select your entry and type <B
|
|
CLASS="keycap"
|
|
>e</B
|
|
>, which will
|
|
bring up an option menu. In this menu you will see the commands Grub
|
|
executes prior to booting the kernel. Simply select the line saying
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>kernel="/where/your-kernel-is and-options-are"</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> and press
|
|
<B
|
|
CLASS="keycap"
|
|
>e</B
|
|
> again. Now you can edit this line. Here you just add
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>init=/bin/bash</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> and after pressing <B
|
|
CLASS="keycap"
|
|
>Return</B
|
|
> to
|
|
make the changes take effect, press <B
|
|
CLASS="keycap"
|
|
>b</B
|
|
> to start booting.</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="obtaining-and-compiling-the-source.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="after-the-kernel-is-booted.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Obtaining and compiling the source</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="the-install-of-glibc-itself.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>After the kernel is booted...</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |