How to create your own data center-specific Linux image with Cubic – TechRepublic

Register for your free TechRepublic membership or if you are already a member, sign in using your preferred method below.
We recently updated our Terms and Conditions for TechRepublic Premium. By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
By registering, you agree to the Terms of Use and acknowledge the data practices outlined in the Privacy Policy.
You will also receive a complimentary subscription to TechRepublic’s News and Special Offers newsletter and the Top Story of the Day newsletter. You may unsubscribe from these newsletters at any time.
Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
How to create your own data center-specific Linux image with Cubic
Your email has been sent
If you’ve ever wanted to create a custom Linux image to be used in your data center deployments, Cubic is here to make that job considerably easier.
At this point, you most likely use Linux in your data center. It’s an inevitability that you cannot fight these days. And that’s a very good thing because Linux is incredibly powerful, flexible and (without question) powers so much of what we depend on.
If you’re deploying to a lot of servers in your data center, the idea of installing a base server distribution and then adding everything you need, one server at a time, can be a bit of a daunting task. That’s understandable, especially when those servers might number in the hundreds. And if you’re not using virtual machines for those deployments, you’re probably looking for a way to make those rollouts a bit easier.
Cubic might be the answer.
SEE: 5 Linux server distributions you should be using (TechRepublic Premium)
Cubic makes it easy to roll up your own Linux custom image, based on a known distribution, and create a bootable ISO so you can install the exact version of Linux you need. Cubic is a very easy to use GUI tool.
I want to demonstrate how this is done, so you can create your own image to be installed on your data center servers. I’ll demonstrate by creating an ISO image based on Ubuntu Server 21.10, but you can use whatever image you like.
The only things you’ll need for this are a running instance of a Debian-based Linux desktop, a downloaded ISO image of a Linux distribution to base your image on, and a user with sudo privileges.
The first thing we must do is install Cubic. To do this, log into a Debian-based desktop and add the necessary repository with:
sudo add-apt-repository ppa:cubic-wizard/release
Next, update apt and then install Cubic with:
sudo apt-get update
sudo apt-get install cubic -y

Once Cubic is installed, you’ll find the launcher in your desktop menu. Click to launch it, and you’re ready to create your image.
From the main Cubic window (Figure A), click the folder icon and then, from within your file manager, create and select a new directory to be used by the application to create and house your custom images.
Figure A
Click Next and then, in the next window (Figure B), you must select the ISO image the custom version will be based on. After selecting the image, all fields will be auto-populated. You can then customize those on the right side.
Figure B
Click Next and you will eventually end up at a chroot terminal prompt (Figure C).
Figure C
At this point, you can start adding software and customize the image to your exact specifications. Everything here is done from the terminal window. Say, for example, you want the ISO to include a complete LAMP server. First, issue the command:
apt-get update
Then install the LAMP server with:
apt-get install lamp-server^
You might want to install a specific version of PHP or take care of any number of other customizations for your image. One thing to note is that the chroot environment is not booted with systemd initialized, so you can’t start or enable services. Because of that, you can’t do any work within databases. You can, however, drag and drop files from your file manager to the chroot environment and edit any configuration files (with the nano editor).
Once you’ve completed this step, click Next and Cubic will then present you with a window that allows for the removal of packages for a minimal installation (Figure D).
Figure D
Once you’ve selected the packages to be removed (if any), click Next and then select which kernel will be used for the image. You’ll then be required to select the compression used for the image (Figure E).
Figure E
I would suggest going with the default compression (gzip) to be certain the live image will function properly. Click Generate and Cubic will create your custom ISO image. When the process completes, you’ll be presented with a window (Figure F) that details what Cubic has done and where you can find your new custom ISO image.
Figure F
At this point, you can either copy that image to a server to be downloaded at will, or to a USB drive and start deploying it to your data center servers.
Congratulations, you’ve just made your Linux deployments a bit more efficient.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.

Image: Getty Images/iStockphoto

You don’t want to miss our tips, tutorials, and commentary on the Linux OS and open source applications.
How to create your own data center-specific Linux image with Cubic
Your email has been sent
Your message has been sent
TechRepublic Premium content helps you solve your toughest IT issues and jump-start your career or next project.
These 11 cloud-to-cloud solutions back up your organization’s data so you’ll be covered in the event of deletions, malware or outages. Compare the best online cloud backup services now.
You can use a mobile device to speak with another person directly through the Teams app. Lance Whitney shows you how to use this handy feature.
A phishing technique called Browser in the Browser (BITB) has emerged, and it’s already aiming at government entities, including Ukraine. Find out how to protect against this new threat.
With so many project management software options to choose from, it can seem daunting to find the right one for your projects or company. We’ve narrowed them down to these nine.
Start-ups, DARPA and Accenture Ventures announce research partnerships, new hardware and strategic investments.
Procuring software packages for an organization is a complicated process that involves more than just technological knowledge. There are financial and support aspects to consider, proof of concepts to evaluate and vendor negotiations to handle. Navigating through the details of an RFP alone can be challenging, so use TechRepublic Premium’s Software Procurement Policy to establish …
Recruiting a Security Analyst with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Recruiting a DevOps engineer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Video game writing jobs are in demand. Recruiting a video game/quest writer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, …

source

We will be happy to hear your thoughts

Leave a reply

LINXGO
Logo
Compare items
  • Total (0)
Compare