Spin your own live CD

Spin your own live CD


A few weeks ago, I promised to explain how to create your own custom live CD with Fedora’s new tools. Well, last week Fedora 7 was launched and all the tools you need are available in the repositories. This even includes a brand new graphical tool, put together by the people at Fedora Unity, called Revisor, which will allow you to spin your own live CD or installation material in an unbelievably user friendly manner.

To get started the first thing you’re going to need for this tutorial is Fedora 7. (The materials may be in the Fedora 6 repositories but I can’t be sure). If you’ve never used Fedora before, now is as good a time as any to download and try it: Fedora 7 is a great release, now with official live spins which fit on a single CD and come in KDE, GNOME and Xfce varieties, saving you from having to download the entire 3GB DVD.

Once you’ve got Fedora 7, you’ll want to install the tools we’re going to be using. There are a few ways you can do this:

  • Open a terminal and run the command su -c yum install revisor
  • Open the Add/Remove Software program from the applications menu and search for revisor, mark it for installation and click apply.

Both of these methods will not only install Revisor but fetch and install all the necessary dependencies such as Pungi and livecd-tools, which if you’re feeling adventurous can be used from the command line to achieve the same results. One application that is important to note that is installed as a dependency is Kickstart; using this you can create Kickstart files with predefined package manifests and post installation scripts to feed into Revisor if you wish.

Now you’re ready to fire up Revisor: you can find it under Applications→System Tools→Revisor. Once it’s running, click “get started” and then select the type of media you would like to create. I’m going to be spinning a live CD so, if you want to follow along, select Optical Media from under the Live Media Types section.

The next screen is slightly more intimidating. Revisor uses its own configuration file to provide the user with different options about the type of live media to create, where to find the repositories etc. You can quite happily use the default Revisor configuration, but if you want to customise the repositories to be used you’re going to have to edit a text file. Firstly, identify the configuration you’re going to use as the base: in my case f7-i386. Once you’ve done this, open a terminal and run the command su -c nano /etc/revisor/conf.d/revisor-f7-i386.conf. Change this command to make it relevant to your chosen configuration, and to utilise your favourite text editor.

It is also useful to note here that you can change the destination directory, i.e. where your finished live CD ISO will be written to. Remember this location!

In this file there are a number of yum configuration options, which, for the time being, we’re going to be ignoring. Skip down the file to where the repositories are listed, in my example file starting with [fedora]. This is where you’ll want to add any entries for other repositories you might want to use packages from, the details of which you can usually find on the appropriate website.

The next screen is where Kickstart comes in. You can use this screen to load any Kickstart file, making it easy to create the same live CD an indefinite number of times, or to base your live CD on another, saving a lot of time and effort! The Kickstart creation program can also be found under Applications→System Tools→Kickstart, but goes beyond the scope of what I’m talking about today. The quickest way to get started with live CDs and revisor is to use the sample configuration, and select the Customise package manifest defined in the Kickstart data option. This will allow you to choose any application from the Fedora repositories for inclusion in your live CD, or DVD as it may well turn out, using the same interface as Pirut (Fedora’s graphical package manager).

You can click through the next screens, until you arrive at the Building Your Media screen. Go and make yourself a cup of tea while you wait, and when you return in a while you’ll have your brand new, custom, live CD!

This was only a basic overview and I hope it’s given you a taster of what can be achieved. There are all sorts of more advanced customisations you can make, from adding post-, and pre-installation scripts to your kickstart file (you could use this to add files to the live CD’s desktop); turning off SELinux; changing firewall rules; adding your own artwork and branding; the list goes on!

Go out, have fun and remix! When you’ve created that perfect live CD let the people at Fedora know, they’ll be delighted!

Category: 

Comments

Andrew Min's picture
Submitted by Andrew Min on

Ubuntu also has this. It's called Reconstructor: http://reconstructor.aperantis.com/

--
Andrew Min

Jonathan Roberts's picture

Looks cool, I didn't realise they had that! Although, there is a difference between that and Revisor: Revisor uses the build tools used in creating the official Fedora releases, such as Pungi and livecd-tools; Reconstructor uses shell scripts in a chroot of an existing official spin.

This seems a bit pedantic to point out, but I feel the key fact of this is that *all* the tools used to build the official Fedora releases are available for anybody to use, on any system.

Jon

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

You list

"adding your own artwork and branding"

As a possibility under this new software solution.

I don't care about branding, but I would like to add some artwork to my livecd.

Could you do a quick how to?

Author information

Jonathan Roberts's picture

Biography

Currently a gap year student! I have a huge interest in Free Software which seems to keep growing. I run the Questions Please... podcast which can be found at questionsplease.org. On an unrelated note I'm reading theology at Exeter next year.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!