theend.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <sect1 id="ch09-theend">
  2. <title>The End</title>
  3. <?dbhtml filename="theend.html" dir="chapter09"?>
  4. <para>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.</para>
  7. <para>Now would be a good time to strip all debug symbols from
  8. the binaries on your LFS system. If you are not a programmer and don't plan
  9. on debugging your software, then you will be happy to know that you can
  10. reclaim a few tens of megs by removing debug symbols. This process causes
  11. no inconvenience other than not being able to debug the software fully
  12. anymore, which is not an issue if you don't know how to debug.</para>
  13. <para>Disclaimer: 98% of the people who use the command mentioned below don't
  14. experience any problems. But do make a backup of your LFS system before
  15. you run this command. There's a slight chance it may backfire on you and
  16. render your system unusable (mostly by destroying your kernel modules
  17. and dynamic &amp; shared libraries). This is more often caused by typo's
  18. than by a problem with the command used.</para>
  19. <para>Having said that, the --strip-debug option we use to strip is quite
  20. harmless under normal circumstances. It doesn't strip anything vital from
  21. the files. It also is quite safe to use --strip-all on regular programs
  22. (don't use that on libraries - they will be destroyed) but it's not as
  23. safe and the space you gain is not all that much. But if you're tight on
  24. disk space every little bit helps, so decide yourself. Please refer to
  25. the strip man page for other strip options you can use. The general idea
  26. is to not run strip on libraries (other than --strip-debug) just to be
  27. on the safe side.</para>
  28. <para><screen><userinput>find $LFS/{,usr,usr/local}/{bin,sbin,lib} -type f \</userinput>
  29. <userinput>&nbsp;&nbsp;&nbsp;-exec /usr/bin/strip --strip-debug '{}' ';'</userinput></screen></para>
  30. <para>It may be a good idea to create the $LFS/etc/lfs-&version; file. By
  31. having this file it is very easy for you (and for us if you are going to ask
  32. for help with something at some point) to find out which LFS version
  33. you have installed on your system. This can just be a null-byte file by
  34. running:</para>
  35. <para><screen><userinput>touch $LFS/etc/lfs-&version;</userinput></screen></para>
  36. <para>Want to be counted? Head over to <ulink
  37. url="http://linuxfromscratch.org/cgi-bin/lfscounter.cgi">
  38. http://linuxfromscratch.org/cgi-bin/lfscounter.cgi</ulink> and register as
  39. an LFS user by entering your name and the first LFS version you have
  40. used.</para>
  41. <para>Let's reboot into LFS now...</para>
  42. </sect1>