Creating a custom Linux ISO
To create Open Source Thin Client we used Linux Live to create an ISO of our activly running Linux instance. This allowed us to install any packages and files that we wanted on our OS before creating an ISO.
How to use Linux Live to create an ISO or ZIP of your system
Download Linux Live onto the computer you would like to make an ISO from. You can get Linux Live from here.
Next, download the packages that are needed to use Linux Live
sudo apt-get updatesudo apt-get install squashfs-toolssudo apt-get install genisoimage
Once downloaded, unzip the file,
unzip lunix-live.zipMove the folder to the
tmpdirectorymv linux-live /tmpNow enter the folder,
cd /tmp/linux-liveNow edit the config file with some basic options regarding the ISO it will create
nano configYour config should end up looking similar to the one below. The only parameters that need to be changed are the live kit name, which is a name of your choosing, along with the vmlinuz path. For most distributions, vmlinuz will be located in the root/folder or in/bootlike it in the example.
Once you have finished editing the file, save it and close it. Next, open the syslinux config file
nano bootfiles/syslinux.cfg
Once that has been added, save and exit the file.
Make sure you are still in the
linux-livefolder and runsudo ./buildLinux live will now begin running and creating a copy of your OS. Please ensure you have enough space on your system to make a copy of itself.
After some time, the script should finish and will have instructions on how to build an ISO or ZIP.
To build an ISO or ZIP, return to the temp directory
cd /tmpNow, to create an ISO run:
./gen_livekitname_iso.shTo create a ZIP of the system, run:
./gen_livekitname_zip.shOnce the ISO or ZIP has been generated it can be found in
/tmpOnce you are ready, move on to making the system bootable from a USB device.
Last updated