2010-11-02

How-To: Remaster Debian 6 "Squeeze"

There are a couple of qualifications to "Debian". In fact, this isn't really a general guide for Debian itself, but it's more for Linux Mint "Debian". In any case, because Linux Mint "Debian" is pointed towards the Testing repositories by default, for standard Debian, the procedure will still be similar anyway.
I wanted to take this opportunity to let you know that the latest versions of Fresh OS are up on my SourceForge site. Yay! These are the download links (for Traditional, Elementary, and Light), and I am also going to link to the project wiki as well. I'm still working on the wiki, so please be patient. In any case, I strongly recommend that you try it out (and if you're especially bold, install it (though be warned that the installer is the Remastersys installer which isn't very consistent), and please let me know what you think either in this blog's comments or in a review on the project's SourceForge page. Thanks!
So this post is just going to be about how I did it. Follow the jump to read more (and to see screenshots of the finished product).

I've already reviewed Linux Mint "Debian" before, and that review also covers the installation process. I did this all in VirtualBox (and as I made 3 somewhat different respins, I had 3 different virtual hard disks).
Post-installation, I downloaded all upgrades as well as all of the packages that I wanted. As this was the making of Fresh OS, these included the new Mint Menu and Mint icons/desktop theme from the Linux Mint unstable ("Romeo") repositories. I then added Hadret's Debian PPA (repository) to the list of repositories in Synaptic Package Manager. I then installed packages from that repository, including the Nautilus Elementary mod and the GNOME global application menu panel applet. Finally, I fiddled with the software selection, replacing F-Spot with Shotwell (and sometimes OpenOffice.org with Abiword and Gnumeric or Rhythmbox with DeaDBeeF).
After that, I went to the Remastersys website, added the repository to the list in Synaptic Package Manager, and installed it. Before anything else, I copied all the hidden files and folders (using "gksu nautilus" for a root file manager and Ctrl+H to show hidden folders) to the directory "/etc/skel/". This allows Remastersys to actually incorporate custom configurations into the ISO file. I then just ran "sudo remastersys backup" in the terminal and an ISO file was created.
Finally, to get this from my virtual hard disk to my real hard disk, I installed Guest Additions in the virtual machine, ran the shell script from the Guest Additions virtual CD in the virtual machine to fully install Guest Additions, and then restarted. I then mounted a dedicated folder on my real hard disk named "hostshare" onto the virtual hard disk's folder "~/Public" using "sudo mount -t vboxsf hostshare ~/Public". I then transferred the files, unmounted, and had a working ISO! It really is that simple! Thanks, Fragadelic (the lead developer of Remastersys)! Oh, and while you're at it, when can I expect a working version of Remastersys for Debian 6 "Squeeze" capable of the Dist option (instead of just the Backup option)?
(UPDATE: It seems like clickable (expandable) images are back! Yay!)