theend.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <sect1 id="ch09-theend">
  2. <title>The End</title>
  3. <para>
  4. Well done! You have finished installing your LFS system. It may have
  5. been a long process but it was well worth it. We wish you a lot of fun
  6. with your new shiny custom built Linux system.
  7. </para>
  8. <para>
  9. Now would be a good time to strip all debug symbols from
  10. the binaries on your LFS system. If you are not a programmer and don't plan
  11. on debugging your software, then you will be happy to know that you can
  12. reclaim a few tens of megs by removing debug symbols. This process causes
  13. no inconvenience other than not being able to debug the software fully
  14. anymore, which is not an issue if you don't know how to debug. You can
  15. remove the symbols by executing the following command:
  16. </para>
  17. <para>
  18. Disclaimer: 98% of the people who use the command mentioned below don't
  19. experience any problems. But do make a backup of your LFS system before
  20. you run this command. There's a slight chance it may backfire on you and
  21. render your system unusable (mostly by destroying your kernel modules
  22. and dynamic &amp; shared libraries).
  23. </para>
  24. <para>
  25. Having that said, the --strip-debug option to strip is quite harmless
  26. under normal circumstances. It doesn't strip anything vital from the
  27. files. It also is quite safe to use --strip-all on regular programs
  28. (don't use that on libraries - they will be destroyed) but it's not as
  29. safe and the space you gain is not all that much. But if you're tight on
  30. disk space every little bit helps, so decide yourself. Please refer to
  31. the strip man page for other strip options you can use. The general idea
  32. is to not run strip on libraries (other than --strip-debug) just to be
  33. on the safe side.
  34. </para>
  35. <blockquote><literallayout>
  36. <userinput>find / -type f -exec strip --strip-debug '{}' ';'
  37. </userinput>
  38. </literallayout></blockquote>
  39. <para>
  40. If you plan to ever upgrade to a newer LFS version in the future it
  41. will be a good idea to create the /etc/lfs-&version; file. By having
  42. this file it is very easy for you (and for us if you are going to ask
  43. for help with something at some point) to find out which LFS version
  44. you have installed on your system. This can just be a null-byte file by
  45. running:
  46. </para>
  47. <blockquote><literallayout>
  48. <userinput>touch /etc/lfs-&version;</userinput>
  49. </literallayout></blockquote>
  50. <para>
  51. One final thing you may want to do is run lilo now that you are booted
  52. into LFS. This way you will put the LFS version of LILO in the MBR
  53. rather than the one that's there right now from your host system.
  54. Depending on how old your host distribution is, the LFS version may have
  55. more advanced features you need/could use.
  56. </para>
  57. <para>
  58. Either way, run the following to make the lilo version installed on LFS
  59. active:
  60. </para>
  61. <blockquote><literallayout>
  62. <userinput>/sbin/lilo</userinput>
  63. </literallayout></blockquote>
  64. <para>
  65. If you are wondering: "Well, where to go now?" you'll be glad to hear that
  66. someone has written an LFS hint on the subject at <ulink
  67. url="http://archive.linuxfromscratch.org/lfs-hints/afterlfs.txt">
  68. http://archive.linuxfromscratch.org/lfs-hints/afterlfs.txt</ulink>.
  69. On a same note, if you are not only newbie to LFS, but also
  70. newbie to Linux in general, you may find the newbie hint at <ulink
  71. url="http://archive.linuxfromscratch.org/lfs-hints/newbie.txt">
  72. http://archive.linuxfromscratch.org/lfs-hints/newbie.txt</ulink>
  73. very interesting.
  74. </para>
  75. <para>
  76. Don't forget there are several LFS mailinglists you can subscribe to if
  77. you are in need of help, advice, etc. See
  78. <ulink url="ch01-maillists.html">Chapter 1 - Mailinglists</ulink> for
  79. more information.
  80. </para>
  81. <para>
  82. Again, we thank you for using the LFS Book and hope you found this book
  83. useful and worth your time.
  84. </para>
  85. </sect1>