aboutsummaryrefslogtreecommitdiffstats
path: root/chapter11
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-07 20:16:00 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-07 20:16:00 +0000
commitfcc027677da55c41dcaea045f5b9ff8b088e6495 (patch)
tree42500a7858959695b971e7f28f1d0bf33185db2e /chapter11
parentd53fefab5a6772fef606392a61608fc290e6a7ae (diff)
Initial commit of alternative cross LFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter11')
-rw-r--r--chapter11/chapter11.xml19
-rw-r--r--chapter11/getcounted.xml20
-rw-r--r--chapter11/reboot.xml113
-rw-r--r--chapter11/theend.xml84
-rw-r--r--chapter11/whatnow.xml92
5 files changed, 328 insertions, 0 deletions
diff --git a/chapter11/chapter11.xml b/chapter11/chapter11.xml
new file mode 100644
index 000000000..8b4c53a1d
--- /dev/null
+++ b/chapter11/chapter11.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<chapter id="chapter-finalizing" xreflabel="Chapter&nbsp;11">
+ <?dbhtml dir="chapter11"?>
+ <?dbhtml filename="chapter11.html"?>
+
+ <title>The End</title>
+
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="theend.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="getcounted.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="reboot.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="whatnow.xml"/>
+
+</chapter>
diff --git a/chapter11/getcounted.xml b/chapter11/getcounted.xml
new file mode 100644
index 000000000..bc0ad8908
--- /dev/null
+++ b/chapter11/getcounted.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<sect1 id="ch-finish-getcounted">
+ <?dbhtml filename="getcounted.html"?>
+
+ <title>Get Counted</title>
+
+ <para>Now that you have finished the book, do you want to be counted as an
+ LFS user? Head over to <ulink url="&lfs-root;cgi-bin/lfscounter.php"/> and
+ register as an LFS user by entering your name and the first LFS version you
+ have used.</para>
+
+ <para>Let's reboot into LFS now.</para>
+
+</sect1>
diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml
new file mode 100644
index 000000000..c6a857dbd
--- /dev/null
+++ b/chapter11/reboot.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<sect1 id="ch-finish-reboot">
+ <?dbhtml filename="reboot.html"?>
+
+ <title>Rebooting the System</title>
+
+ <para>Now that all of the software has been installed, it is time to reboot
+ your computer. However, you should be aware of a few things. The system you
+ have created in this book is quite minimal, and most likely will not have
+ the functionality you would need to be able to continue forward. By installing
+ a few extra packages from the BLFS book while still in our current chroot
+ environment, you can leave yourself in a much better position to continue on
+ once you reboot into your new LFS installation. Here are some suggestions:</para>
+
+ <itemizedlist>
+
+ <listitem><para>A text mode browser such as <ulink
+ url='&blfs-book;basicnet/lynx.html'>Lynx</ulink>
+ will allow you to easily view the BLFS book in one virtual terminal, while
+ building packages in another.</para></listitem>
+
+ <listitem><para>The <ulink
+ url='&blfs-book;general/gpm.html'>GPM</ulink> package will allow
+ you to perform copy/paste actions in your virtual
+ terminals.</para></listitem>
+
+ <listitem><para>If you are in a situation where static IP configuration
+ does not meet your networking requirements, installing a package
+ such as <ulink url='&blfs-book;basicnet/dhcpcd.html'>dhcpcd</ulink>
+ or the client portion of <ulink
+ url='&blfs-book;basicnet/dhcp.html'>dhcp</ulink> may be
+ useful.</para></listitem>
+
+ <listitem><para>Installing <ulink
+ url='&blfs-book;postlfs/sudo.html'>sudo</ulink> may be useful for
+ building packages as a non-root user and easily installing the resulting
+ packages in your new system. </para></listitem>
+
+ <listitem><para>If you want to access your new system from a remote system
+ within a comfortable GUI environment, install <ulink
+ url='&blfs-book;postlfs/openssh.html'>openssh</ulink>.
+ </para></listitem>
+
+ <listitem><para>To make fetching files over the internet easier, install
+ <ulink url='&blfs-book;basicnet/wget.html'>wget</ulink>.
+ </para></listitem>
+
+ <listitem><para>If one or more of your disk drives have a GUID partition
+ table (GPT), either <ulink
+ url='&blfs-book;postlfs/gptfdisk.html'>gptfdisk</ulink> or <ulink
+ url='&blfs-book;postlfs/parted.html'>parted</ulink> will be useful.
+ </para></listitem>
+
+ <listitem><para>Finally, a review of the following configuration files
+ is also appropriate at this point. </para>
+
+ <itemizedlist>
+ <listitem><para>/etc/bashrc </para></listitem>
+ <listitem><para>/etc/dircolors </para></listitem>
+ <listitem><para>/etc/fstab </para></listitem>
+ <listitem><para>/etc/hosts </para></listitem>
+ <listitem><para>/etc/inputrc </para></listitem>
+ <listitem><para>/etc/profile </para></listitem>
+ <listitem><para>/etc/resolv.conf </para></listitem>
+ <listitem><para>/etc/vimrc </para></listitem>
+ <listitem><para>/root/.bash_profile </para></listitem>
+ <listitem><para>/root/.bashrc </para></listitem>
+ <listitem revision="sysv"><para>/etc/sysconfig/ifconfig.eth0 </para></listitem>
+ </itemizedlist>
+ </listitem>
+ </itemizedlist>
+
+ <para>Now that we have said that, let's move on to booting our shiny new LFS
+ installation for the first time! First exit from the chroot environment:</para>
+
+<screen><userinput>logout</userinput></screen>
+
+ <para>Then unmount the virtual file systems:</para>
+
+<screen><userinput>umount -v $LFS/dev/pts
+umount -v $LFS/dev
+umount -v $LFS/run
+umount -v $LFS/proc
+umount -v $LFS/sys</userinput></screen>
+
+ <para>Unmount the LFS file system itself:</para>
+
+<screen><userinput>umount -v $LFS</userinput></screen>
+
+ <para>If multiple partitions were created, unmount the other
+ partitions before unmounting the main one, like this:</para>
+
+<screen role="nodump"><userinput>umount -v $LFS/usr
+umount -v $LFS/home
+umount -v $LFS</userinput></screen>
+
+ <para>Now, reboot the system with:</para>
+
+<screen role="nodump"><userinput>shutdown -r now</userinput></screen>
+
+ <para>Assuming the GRUB boot loader was set up as outlined earlier, the menu
+ is set to boot <emphasis>LFS &version;</emphasis> automatically.</para>
+
+ <para>When the reboot is complete, the LFS system is ready for use and
+ more software may be added to suit your needs.</para>
+
+</sect1>
diff --git a/chapter11/theend.xml b/chapter11/theend.xml
new file mode 100644
index 000000000..9f2ca17cc
--- /dev/null
+++ b/chapter11/theend.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<sect1 id="ch-finish-theend">
+ <?dbhtml filename="theend.html"?>
+
+ <title>The End</title>
+
+ <indexterm zone="ch-finish-theend">
+ <primary sortas="e-/etc/lfs-release">/etc/lfs-release</primary>
+ </indexterm>
+
+ <indexterm zone="ch-finish-theend">
+ <primary sortas="e-/etc/lsb-release">/etc/lsb-release</primary>
+ </indexterm>
+
+ <indexterm zone="ch-finish-theend">
+ <primary sortas="e-/etc/os-release">/etc/os-release</primary>
+ </indexterm>
+
+ <para>Well done! The new LFS system is installed! We wish you much
+ success with your shiny new custom-built Linux system.</para>
+
+ <para>It may be a good idea to create an
+ <filename>/etc/lfs-release</filename> file. By having this file, it is very
+ easy for you (and for us if you need to ask for help at some point) to find
+ out which LFS version is installed on the system. Create this file by
+ running:</para>
+
+<screen revision="sysv"><userinput>echo &version; &gt; /etc/lfs-release</userinput></screen>
+
+<screen revision="systemd"><userinput>echo &versiond; &gt; /etc/lfs-release</userinput></screen>
+
+ <para>Two files describing the installed system may be used by packages
+ that will be installed on the system, either in binary form or by building
+ them.</para>
+
+ <para>The first one shows the status of your
+ new system with respect to the Linux Standards Base (LSB). To create
+ this file, run:</para>
+
+<screen revision="sysv"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
+DISTRIB_ID="Linux From Scratch"
+DISTRIB_RELEASE="&version;"
+DISTRIB_CODENAME="&lt;your name here&gt;"
+DISTRIB_DESCRIPTION="Linux From Scratch"
+EOF</userinput></screen>
+
+<screen revision="systemd"><userinput>cat &gt; /etc/lsb-release &lt;&lt; "EOF"
+DISTRIB_ID="Linux From Scratch"
+DISTRIB_RELEASE="&versiond;"
+DISTRIB_CODENAME="&lt;your name here&gt;"
+DISTRIB_DESCRIPTION="Linux From Scratch"
+EOF</userinput></screen>
+
+ <para>The second one contains roughly the same information, and is used
+ by systemd and some graphical desktop environments. To create
+ this file, run:</para>
+
+<screen revision="sysv"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
+NAME="Linux From Scratch"
+VERSION="&version;"
+ID=lfs
+PRETTY_NAME="Linux From Scratch &version;"
+VERSION_CODENAME="&lt;your name here&gt;"
+EOF</userinput></screen>
+
+<screen revision="systemd"><userinput>cat &gt; /etc/os-release &lt;&lt; "EOF"
+NAME="Linux From Scratch"
+VERSION="&versiond;"
+ID=lfs
+PRETTY_NAME="Linux From Scratch &versiond;"
+VERSION_CODENAME="&lt;your name here&gt;"
+EOF</userinput></screen>
+
+ <para>Be sure to put some sort of customization for the fields
+ 'DISTRIB_CODENAME' and 'VERSION_CODENAME' to make the system uniquely
+ yours.</para>
+
+</sect1>
diff --git a/chapter11/whatnow.xml b/chapter11/whatnow.xml
new file mode 100644
index 000000000..273eb7740
--- /dev/null
+++ b/chapter11/whatnow.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+
+<sect1 id="ch-finish-whatnow">
+ <?dbhtml filename="whatnow.html"?>
+
+ <title>What Now?</title>
+
+ <para>Thank you for reading this LFS book. We hope that you have
+ found this book helpful and have learned more about the system
+ creation process.</para>
+
+ <para>Now that the LFS system is installed, you may be wondering
+ <quote>What next?</quote> To answer that question, we have compiled a
+ list of resources for you.</para>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>Maintenance</para>
+
+ <para>Bugs and security notices are reported regularly for all software.
+ Since an LFS system is compiled from source, it is up to you to keep
+ abreast of such reports. There are several online resources that track
+ such reports, some of which are shown below:</para>
+
+ <itemizedlist>
+
+ <listitem>
+ <para><ulink url="http://www.cert.org/">CERT</ulink> (Computer
+ Emergency Response Team)</para>
+
+ <para>CERT has a mailing list that publishes security alerts concerning
+ various operating systems and applications. Subscription information is
+ available at <ulink
+ url="http://www.us-cert.gov/cas/signup.html"/>.</para>
+ </listitem>
+
+ <listitem>
+ <para>Bugtraq</para>
+
+ <para>Bugtraq is a full-disclosure computer security mailing list. It
+ publishes newly discovered security issues, and occasionally potential
+ fixes for them. Subscription information is available at <ulink
+ url="http://www.securityfocus.com/archive"/>.</para>
+ </listitem>
+
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
+ <para>Beyond Linux From Scratch</para>
+
+ <para>The Beyond Linux From Scratch book covers installation
+ procedures for a wide range of software beyond the scope of the LFS
+ Book. The BLFS project is located at <ulink url="&blfs-root;"/>.</para>
+ </listitem>
+
+ <listitem>
+ <para>LFS Hints</para>
+
+ <para>The LFS Hints are a collection of educational documents
+ submitted by volunteers in the LFS community. The hints are available
+ at <ulink url="&hints-index;"/>.</para>
+ </listitem>
+
+ <listitem>
+ <para>Mailing lists</para>
+
+ <para>There are several LFS mailing lists you may subscribe to if you
+ are in need of help, want to stay current with the latest developments,
+ want to contribute to the project, and more. See <xref
+ linkend="ch-intro-maillists"/> for more
+ information.</para>
+ </listitem>
+
+ <listitem>
+ <para>The Linux Documentation Project</para>
+
+ <para>The goal of The Linux Documentation Project (TLDP) is to
+ collaborate on all of the issues of Linux documentation. The TLDP features
+ a large collection of HOWTOs, guides, and man pages. It is located at
+ <ulink url="http://www.tldp.org/"/>.</para>
+ </listitem>
+
+ </itemizedlist>
+
+</sect1>