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 update
sudo apt-get install squashfs-tools
sudo apt-get install genisoimage
Once downloaded, unzip the file,
unzip lunix-live.zip
Move the folder to the
tmp
directorymv linux-live /tmp
Now enter the folder,
cd /tmp/linux-live
Now edit the config file with some basic options regarding the ISO it will create
nano config
Your 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/boot
like 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-live
folder and runsudo ./build
Linux 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 /tmp
Now, to create an ISO run:
./gen_livekitname_iso.sh
To create a ZIP of the system, run:
./gen_livekitname_zip.sh
Once the ISO or ZIP has been generated it can be found in
/tmp
Once you are ready, move on to making the system bootable from a USB device.
Last updated