Gudlyf’s World

October 23, 2007

Filed under: General, Techie — Gudlyf @ 1:11 pm

Ubuntu Install iconIt’s time again for techie talk. Yes, this is because I was unable to easily locate this information using Google, so doing some digging of my own lead to this discovery.

If you’re creating your own custom LiveCD for Ubuntu (we’re doing this at my FTJ in order to allow customers to boot a LiveCD with a demo/training version of our product right from a CD), you’ll probably want to get rid of that annoying ‘Install’ icon that sits on the default user’s (”ubuntu”) desktop. Deleting it from the desktop and saving that configuration aside doesn’t get rid of it. Instead, you need to alter some scripts.

First, if you’re following the Ubuntu LiveCD customization wiki page instructions, you’ll have an ‘edit’ directory with the contents of the CD available for editing. Comment out lines 49-54 in the file ‘edit/usr/share/initramfs-tools/scripts/casper-bottom/10adduser’ that read:

for file in /usr/share/applications/ubiquity-gtkui.desktop /usr/share/applications/kde/ubiquity-kdeui.desktop; do
    if [ -f "/root/$file" ]; then
        chroot /root install -D -o $USERNAME -g $USERNAME $file /home/$USERNAME/Desktop/$(basename "$file")
        break
    fi
done

You will then need to ‘chroot’ back into the ‘edit’ directory and remake initrd:

mkinitramfs -o /initrd.gz 2.6.15-23-386

Replace the final arg in that line with the applicable kernel version (look in /lib/modules).

Exit from the chroot jail and move this file to extract-cd/casper:

mv edit/initrd.gz extract-cd/casper/

Continue with the rest of the instructions on that wiki page. Done! Hope this helps someone.

2 Comments »

  1. How do I change the usplash in the Live CD?
    Please email me……

    Bravo PENGUIN!!

    Comment by rotyyu — November 16, 2007 @ 4:49 am

  2. In fact, you have to remove /usr/share/applications/ubiquity-gtkui.desktop from the filesystem - the install icon then disappears from the desktop.

    Thanks for pointing out where to dig out this

    Comment by alket — February 6, 2008 @ 2:47 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


 
October 2007
S M T W T F S
« Sep   Nov »
 123456
78910111213
14151617181920
21222324252627
28293031  

Subscribe!
Subscribe with Feedburner


follow Gudlyf at http://twitter.com

-5, Troll

Site Meter

Creative Commons License
This work is licensed under a Creative Commons License.