You're Almost Done
At this point, you have a working base Linux system. Now it’s time to finalize SamLinux and make it usable day-to-day.
1. Clean Up
rm -rf /tools
strip --strip-debug /usr/lib/*
strip --strip-unneeded /usr/{bin,sbin}/*
This removes temporary files and reduces binary sizes.
2. Create Bootable ISO (Optional)
If you want to share SamLinux, create a bootable ISO:
grub-mkrescue -o samlinux.iso /boot
3. Add Your Branding
- Change the bootloader banner
- Create
/etc/issue
and/etc/motd
- Add a logo or splash image (if using a GUI)
4. Save the Build
Create a compressed archive of the entire system:
cd /
tar -czpf samlinux.tar.gz *
5. Done 🎉
Congratulations! You now have a minimal, source-built Linux OS called SamLinux.
“You don’t really understand a system until you build it yourself.”
Where to Go From Here
- Add a desktop environment
- Port a package manager (e.g. pkgsrc, pacman)
- Host your ISO or book online
- Customize your own SamLinux distro for others