Home>Posts>Industrial IoT>How to Create a Custom Ubuntu 12.04 Installation Image

How to Create a Custom Ubuntu 12.04 Installation Image

By ·Categories: Industrial IoT·Published On: March 21st, 2012·2.4 min read·

Canonical, the team behind Ubuntu, is due to release its latest long-term support (LTS) edition this April, marking the first of their LTS releases to offer five years of support. For users, 12.04 means unprecedented stability, and although the release is still in Beta, it’s not too early to start planning for April, and to learn how to create custom installation images.  Based on the most up-to-date LTS release, a custom image saves time, and removes the hassle of individually deploying your company’s software across workstations or products.

We’ll use Ubuntu’s OEM Configuration Mode to create a modified installation, and Clonezilla to capture an image of the system after we’re done. OEM mode allows administrators to customize the installation, and prompt users to create an account, but if your setup is different, simply select the normal installation mode.

For this tutorial, we’ll need a copy of Ubuntu 12.04, a Clonezilla Live bootable device (CD/DVD, USB Flash drive, or HDD), a system to install Ubuntu, and an additional drive large enough to store the modified image. (The size of the backup drive will depend on what changes you make to the system, but I would recommend planning on at least 5 GB for the storage device.)

  • Boot the computer from the Ubuntu installation medium. At the splash screen, press F4 and select “OEM install,” and then install Ubuntu.
  • The user created during the installation stage will only be temporary, and removed before capturing the image.
  • When the computer reboots into OEM Configuration mode, make any necessary changes. This may include updating or adding packages, configuring specific settings, or loading your own software.
  • Run the “Prepare for shipping to end user” script on the desktop, or alternatively, “sudo oem-config-prepare”.
  • Shut down the computer, remove any Ubuntu installation media, and insert the Clonezilla Live drive.


  • Select “Clonezilla Live – default settings” from the boot screen.
  • Go through the menus, selecting the language, and keyboard layout. Select “Start Clonezilla” at the third menu.
  • Select “device-image” and “local-dev” to create the image on an attached drive.
  • With the backup drive inserted, and mounted, select the directory you’d like to save the image to.
  • Select beginner mode to use the default settings, and “save disk” or “save partition” depending on your setup. Name the image.
  • Select the source destination, and continue through the menu until Clonezilla has created the image.

When the capturing process is complete, the image is ready for deployment. Connect the bootable media, and the custom image to another system, and deploy the image using Clonezilla. For large scale deployments, consider a SolidLogic Core i5/i7 Rackmount System running Clonezilla Server Edition—a great setup for multi-casting in large scale deployments.

Get the Latest Tech Updates

Subscribe to our newsletters to get updates from OnLogic delivered straight to your inbox. News and insights from our team of experts are just a click away. Hit the button to head to our subscription page.

Subscribe Now


About the Author: Ruarri Serpa

Ruarri is an Assembly Technician, and joined the team in 2011. He studied Political Science, and most recently worked in Africa. He enjoys Irish music, sailing, traveling, and being a left-handed man in a right-handed world.
Follow OnLogic on LinkedIn


  1. Victor Schneider April 26, 2012 at 10:08 am

    Did you know that the xine program can go full-screen in Linux running on the Cedarview platform, while mplayer can not? All you need is the xine plugin from ubuntu to complete the process, and firefox can display things formerly reserved for mplayer and the mplayer plugin.

  2. Ruarri Serpa April 30, 2012 at 2:37 pm

    Victor, Thanks for the insights. I haven’t checked out Mplayer on 12.04 yet for myself. What was your experience with the GStreamer codec packages?

  3. Peter May 15, 2012 at 10:28 am

    In the many images/cloning that I have done with Clonezilla, I have found that it is best/easiest to have the drive to be imaged and the repository drive connected and powered up before booting to Clonezilla. This way all of the detection is done at boot and then the process goes as smooth as silk. Clonezilla is my “go-to” imaging/cloning software. It works as well on local media as it does on network shares. By the way, thanks for the tip on the OEM process.

  4. Ruarri Serpa May 15, 2012 at 10:59 am

    Peter, Clonezilla is indeed a great tool – and good advice on the destination drive. Whether you’re preparing Ubuntu for internal use or external customers, OEM mode simplifies system management when you’re dealing with a lot of machines and users.

  5. Matthieu July 3, 2012 at 12:08 am

    Thank you very much! I was just looking for this kind of information as I want to choose a Linux to install on a “smaller” computer that won’t need all the Office/Music programs.
    I’ll try that ASAP!

  6. Leonard October 25, 2012 at 4:16 am

    is it possible to change the instalation menu with own logo’s for example ?

  7. Ruarri Serpa October 25, 2012 at 10:05 am


    The Installation Menu is produced by Clonezilla, which seems to be what you’re looking to modify. I would look into that first, as I believe Clonezilla is using GRUB to create that menu.

  8. jc jones October 30, 2012 at 2:09 pm

    Will this method produce a live cd as well as an installation application?

  9. Ruarri Serpa October 30, 2012 at 2:57 pm

    This method only creates a image for deployment on Clonezilla – check out Ubuntu Customization Kit

  10. Rossco June 18, 2013 at 2:18 am

    Will the cloned image from a laptop work perfectly on a desktop?

Leave A Comment


Have a project? Let's talk

More Articles


Learn the 5 ways Fanless Computers can help your business

Get the Whitepaper
View All Articles

OnLogic Industrial Computers

Discover OnLogic's multitude of industrial computers that will help you to advance your IoT project

Shop OnLogic

Learn more at OnLogic.com

OnLogic Industrial PCs: Designed to last. Built to order. Delivered in days. Visit our online store at OnLogic.com