Announcement

Collapse
No announcement yet.

Hiding the Ubiquity(Install) icon on liveusb persitent

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hiding the Ubiquity(Install) icon on liveusb persitent

    NOTE: THIS MAY NOT WORK FOR YOU, LIVE CD/USB CAN MODIFY YOUR COMPUTER'S HARDDRIVE RENDERING IT UNBOOTABLE.

    # kubuntu 8.04 liveusb persistent

    # I've always been annoyed, that it couldn't be removed or hidden. Not that I'd click on it unintentionally.

    # I created a start-up script for it in kdesudo kate (follows)

    #!/bin/sh
    sudo mv -f /home/ubuntu/Desktop/ubiquity-kdeui.desktop /home/ubuntu/Desktop/.ubiquity-kdeui.desktop

    # I saved the file to /etc/init.d/hide-Ubiquity-kdeui-from-Desktop
    # Then in konsole I did:

    cd /etc/init.d
    sudo chmod +x hide-Ubiquity-kdeui-from-Desktop
    sudo update-rc.d hide-Ubiquity-kdeui-from-Desktop defaults
    sudo sync # I do the sudo sync before shutting down or rebooting my liveusb kubuntu8 persistent

    # Then I did a shutdown. (my computer doesn't see the usb when it stays plugged in during a reboot)
    # (It's OK if I want to do reboot to my computer's installed OS's.) I've also found on my liveusb w/ persistence
    # that the casper-rw sometimes gets uncleanly unmounted from persistent run so I'll do a non-persistent boot
    # between each persistent session and run e2fsck -yf /dev/sdX#
    # (my casper-rw is /dev/sdb3, if you do it yours may differ)

    # Anyway, end result for me is when booting liveusb kubuntu 8.04 persistent, the file for Install is still there

    ubuntu@ubuntu:~/Desktop$ ls -al
    total 48
    drwxr-xr-x 2 ubuntu ubuntu 4096 2010-06-25 10:10 .
    drwxr-xr-x 18 ubuntu ubuntu 4096 2010-06-25 10:10 ..
    -rwxr-xr-x 1 ubuntu ubuntu 138 2010-06-25 10:09 about-kubuntu.desktop
    -rw-r--r-- 1 ubuntu ubuntu 1986 2010-06-25 01:20 .directory
    -rwxr-xr-x 1 ubuntu ubuntu 6747 2010-06-25 10:09 .ubiquity-kdeui.desktop
    ubuntu@ubuntu:~/Desktop$

    # But hidden.

    #2
    A quick add on to this, cause I'm playing with doing persistent livecd within a vm. I ran into this hiding thing, not hiding the desktop install icon. I realized that somehow a /home/ubuntu/Desktop/ubiquity-gtkui.desktop was being added. Including this in the start up script:
    #!/bin/sh
    sudo mv -f /home/ubuntu/Desktop/ubiquity-kdeui.desktop /home/ubuntu/Desktop/.ubiquity-kdeui.desktop
    sudo mv -f /home/ubuntu/Desktop/ubiquity-kdeui.desktop /home/ubuntu/Desktop/.ubiquity-gtkui.desktop
    Did the trick. (I also tried and suceeded doing this using sudo rm -f, If I remember just moving it to trash didn't work.)

    Comment

    Working...
    X