Creating custom Ubuntu images
Advanced Settings
Before you generate your custom image, Cubic gives you the option to make changes to some advanced settings. In the Package Manifest tab, you can determine which packages will be removed after a typical or minimal install (Figure 4). If chosen carefully, you may be able to create two distinct installation images using the delineation between Typical and Minimal to your advantage. For instance, if your organization has a mix of newer machines with plenty of storage and older machines with less, proper package selection here (or rather deselection) can streamline the post-installation process for both types of devices with a single image.
Other options include modifying the ISO boot kernel (Figure 5), preseed files, and ISO boot configs.
Be careful with updating the kernel prior to generating the new image because this may cause installation errors. If you need to update in the terminal view, first simply mark the kernel in order to skip it for update [3] with:
sudo apt-mark hold <package-name>
Then update, followed by unmarking those same packages with:
sudo apt-mark unhold <package-name>
To avoid confusion if many packages are involved, use:
sudo apt-mark showhold
Once you have made all of your desired changes, press the Generate button to create your customized image along with an MD5 file for verification once generated (Figure 5).
After you've created your custom image, you have the option to delete your project files in the temp folder used to create your image (Figure 6). The final image may be written to a USB device for installation just like any other standard ISO image using Etcher, Rufus, or whichever image writer you prefer.
Keeping Your Temp Files
Before choosing to delete your temp files, you might want to consider future uses for them. These files can come in handy if you need to create very similar but distinct images for different departments or different sets of devices. For example, one image may be used for network share devices, and a very similar but slightly different image may be used for web page hosting. All settings that are common to both device types can be applied globally with minor modifiers added for specific roles assigned to certain boxes. Therefore, specific distinct images may be created in quick succession. While this may not make sense for one or two devices, creating a customized image for dozens or hundreds of devices could end up saving an IT team hours or days, so think about future applications before clicking to delete project files.
Conclusion
If you have multiple devices running the same or very similar copies of Ubuntu, Cubic can save time on the back end with just a bit of thought put into a custom image on the front end. Granted, using Cubic is a balancing act between time spent creating the image versus time spent doing a post-install on your particular quantity of boxes. That equation will vary for different people in different organizations and environments.
Because I tend to break things at an alarming rate, I find myself setting up virtual machines and my home lab trash (it's my trash and I'm comfortable calling it that) with Ubuntu in the same way over and over again several times per year. For me, Cubic is worth the time and effort; Cubic provides everything I need for my particular use case in a 4-5GB image.
Try Cubic once to see how it can benefit you. If it's not worth the time in your current situation, perhaps one day it will be. Happy rolling!
Infos
- Ubuntu downloads: https://ubuntu.com/download
- Cubic: https://launchpad.net/~cubic-wizard
- Preventing the update of a specific package: https://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.