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.
![](/var/linux_magazin/storage/images/issues/2021/250/cubic/figure-5/791080-1-eng-US/Figure-5_large.png)
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.
![](/var/linux_magazin/storage/images/issues/2021/250/cubic/figure-6/791083-1-eng-US/Figure-6_large.png)
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.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.