Pliant AllianceSoftware development notes & tools

Creating a custom Ubuntu Live CD with Remastersys

A custom Live CD turns a carefully prepared Ubuntu installation into a portable operating environment that can boot directly from optical media. Remastersys makes that process practical by collecting the installed system, compressing its filesystem and producing a bootable ISO image. The result can provide a consistent Linux desktop for demonstrations, training, troubleshooting or use on a computer whose operating system you would rather not disturb.

Remastersys is not a converter for arbitrary disc images. It works best when an Ubuntu release has already been installed and configured on a build machine. From that base, you can select applications, create a suitable user account, adjust system settings and capture the finished environment as an ISO. The image can then be burned to a CD-R and tested on other hardware.

For Australian builders, the project fitted a familiar desktop ritual: burning discs at a home in Melbourne or an office in Sydney, then carrying a self-contained system to a meeting, workshop or shared computer. Many workplace desktops still arrived with Windows and proprietary business software, making a separate Linux environment less disruptive than partitioning the only available drive. The Copyright Act 1968 also makes careful licensing important when deciding which software and media to include.

Preparing a clean build machine

Use a spare or expendable computer for the first build. Remastersys may capture mounted data partitions, local user accounts and files that do not belong on a public disc. A separate hard disk or a clean partition provides room to experiment and allows you to rebuild the image without risking the day-to-day system. A second machine is also useful when the finished disc needs testing on older hardware.

Allow substantial free space for the working copy, temporary files and the resulting ISO. The compressed operating system may fit comfortably on a CD, but the preparation process can require several gigabytes. Check that the source drive is not almost full, because an interrupted copy can leave an incomplete working directory that is difficult to distinguish from a valid build.

Download the chosen Ubuntu release and its package indexes before beginning. Depending on the connection, this can be a slow stage: a metropolitan broadband line is likely to be quicker than a USB modem used by a regional household or small business. Plan for the target machine to remain offline, since applications and their dependencies must already be present when the image is assembled.

Installing the Ubuntu base

Install the Ubuntu release that the disc should preserve, such as version 5.10 or 6.06, and complete the usual hardware configuration while the machine is still accessible. A desktop environment is generally more appropriate for a general-purpose Live CD than a minimal server installation. Remove unwanted applications at this stage rather than expecting compression to make a crowded system fit.

Enable the appropriate Ubuntu repositories and install Remastersys with the APT package manager. The exact dependency list varied between releases, so confirm that the graphical interface opens and that the required filesystem and boot tools are available. Keep the update status consistent across the installed system, as mismatched package versions can complicate the remastering process.

Treat the installed system as a template. Avoid signing into personal accounts, copying private documents or leaving confidential browser data in the home directory. Also inspect the filesystem table, because build-machine partitions must not be referenced by the Live system. Remastersys can create the copy, but it cannot determine whether an unusual mount point belongs in the final environment.

Running the first remaster

Launch Remastersys and choose its custom or copy mode. The interface varies slightly by release, but the working copy is normally placed beneath the user’s home directory and identified as the remaster area. Choose a location with plenty of space and allow the copy to finish before changing anything. Interrupting this stage can produce a filesystem that appears valid but lacks essential system directories.

After copying, enter the working environment with a chroot so that configuration commands affect the remaster rather than the build machine. Filesystems such as /proc, /sys and /dev must be available inside that environment for package management and device detection to work. A temporary resolver configuration may also be required for network access, but it should be removed or restored before the image is finalised.

Inspect the copied user accounts, configuration files and mounted storage entries before continuing. Remove temporary logs, package caches and obvious traces of the build computer, while retaining package lists, firmware and the applications intended for distribution. If the copy contains more data than expected, it is safer to repeat the capture from a clean installation than to try to identify every stray file afterwards.

Configuring the live user

A public Live CD needs a predictable account with sensible permissions. Create an ordinary user who can administer the system when required, rather than allowing everyone to operate permanently as root. Configure automatic login if the disc is intended for demonstrations or public kiosks. For a rescue or workshop image, a known username and short documented password may be more useful than automatic entry.

Set the keyboard layout, locale and default applications as part of the same preparation. Australian installations commonly use the en_AU locale, while the default time zone should reflect where the disc is most likely to be used. Australia does not apply daylight saving uniformly: Queensland remains on standard time while New South Wales, Victoria, South Australia, Tasmania and Western Australia change during summer. A national setting therefore requires a deliberate choice.

Give the system a useful hostname and configure networking to suit the intended environment. DHCP should work on many office and home networks, but fixed settings can be included when the disc has a clearly defined role. Test suspend, sound, screen resolution and keyboard handling inside the live environment, because settings copied from the build machine do not always match the hardware on which the disc will run.

Adding software and changes

Packages can be installed into the copied filesystem through its chroot environment, using the package lists already downloaded for the chosen Ubuntu release. A browser, text editor, PDF viewer, archive tools and basic diagnostic commands make a useful general-purpose image. Every extra application increases the ISO size and boot time, so specialised software is better kept on a second disc unless there is a clear reason to combine it.

Software licences and trademarks need attention before distribution. The Copyright Act 1968 applies to the copying and communication of protected works, while open-source packages remain subject to their individual licence terms. Include the required notices and source information, and avoid bundling commercial applications merely because the build machine already contains them. A proprietary driver may work on one machine while also carrying restrictions that prevent redistribution.

Private and organisational data require the same discipline. For a disc prepared by an Australian business or community group, personal information must not be copied from staff or customer records without checking the Privacy Act 1988 and the organisation’s own policies. Even when that legislation does not apply directly to a particular activity, leaving account names, histories or registration details in a public image is poor practice.

Producing and testing the ISO

Return to Remastersys and run its ISO-creation mode once the working copy is complete. The tool gathers the filesystem and boot configuration into an image that can be mounted for inspection or written to optical media. Confirm that the image contains the intended user, applications and system files, and that stale boot entries or build identifiers do not remain in its directory structure.

Test the ISO in a virtual machine before burning it. QEMU can expose basic boot and disk behaviour without risking changes to the working copy, although it cannot reproduce every hardware problem found on a physical computer. Boot the image from a real target machine as well, checking the BIOS date, keyboard, display, network adapter and audio. Early Live CDs generally relied on BIOS boot behaviour, so a modern machine with very limited legacy CD support may require different options.

Burn the image to a CD-R using a desktop burning application or a command-line tool, and verify the finished disc at a moderate speed. Australian offices and households commonly used spindle boxes of blank 52x and 80-minute CD-R media, with some older machines writing more reliably than others. A failed burn can look like a faulty ISO, so test the source image and then the physical disc separately. Label the disc with its Ubuntu version and build date immediately after verification.

Distributing and maintaining the disc

Create a short companion document containing the image checksum, included package versions, default user details and known hardware limitations. A disc without that information becomes difficult to maintain when several custom builds circulate within a family, school or workplace. Keep the ISO and its source package list together so another builder can reproduce the environment rather than merely copy an opaque binary image.

Readers comparing the early project with later Linux distribution work can use Ameya Karve’s Linux notes as a secondary reference, while treating the tested disc itself as the reproducible source of truth. When distributing an image, provide the relevant source-code offers and licence notices. Give each build a clear identifier and checksum, and retain a record of the Ubuntu release from which it was made.

Treat the disc as a snapshot rather than a permanently patched product. When a critical package is updated or a configuration fault is found, correct the build environment and generate a fresh ISO instead of modifying a burned copy. This preserves reproducibility and makes it possible to explain what the disc contains. The finished artefact is then more than a collection of Linux files: it is a documented, tested and maintainable operating environment that can travel from one Australian desktop to another.