| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <sect1 id="ch09-theend"><title>The End</title><para>Well done! You have finished installing your LFS system. It may havebeen a long process but it was well worth it. We wish you a lot of funwith your new shiny custom built Linux system.</para><para>Now would be a good time to strip all debug symbols from the binaries on your LFS system. If you are not a programmer and don't plan on debugging your software, then you will be happy to know that you can reclaim a few tens of megs by removing debug symbols. This process causes no inconvenience other than not being able to debug the software fully anymore, which is not an issue if you don't know how to debug. You can remove the symbols by executing the following command:</para><para>Disclaimer: 98% of the people who use the command mentioned below don'texperience any problems. But do make a backup of your LFS system beforeyou run this command. There's a slight chance it may backfire on you andrender your system unusable (mostly by destroying your kernel modulesand dynamic & shared libraries).</para><para>Having that said, the --strip-debug option to strip is quite harmlessunder normal circumstances. It doesn't strip anything vital from thefiles. It also is quite safe to use --strip-all on regular programs(don't use that on libraries - they will be destroyed) but it's not assafe and the space you gain is not all that much. But if you're tight ondisk space every little bit helps, so decide yourself. Please refer tothe strip man page for other strip options you can use. The general ideais to not run strip on libraries (other than --strip-debug) just to beon the safe side.</para><para><screen><userinput>find $LFS/{,usr,usr/local}/{bin,sbin,lib} -type f \</userinput><userinput>   -exec /usr/bin/strip --strip-debug '{}' ';'</userinput></screen></para><para>If you plan to ever upgrade to a newer LFS version in the future itwill be a good idea to create the $LFS/etc/lfs-&version; file. By havingthis file it is very easy for you (and for us if you are going to askfor help with something at some point) to find out which LFS versionyou have installed on your system. This can just be a null-byte file byrunning:</para><para><screen><userinput>touch $LFS/etc/lfs-&version;</userinput></screen></para><para>Let's reboot into LFS now...</para></sect1>
 |