Announcement

Collapse
No announcement yet.

remastering - dead simple (incl. installabe live USB stick)

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

    remastering - dead simple (incl. installabe live USB stick)

    Preamble

    Just a quick and dirty write up of what you ought to do if you have a mate out in the digital sticks (i.e. no broadband) who is keen to use Kubuntu with all the bells and whistles of a full media distro. For more detailed info go here.

    You _could_ give him/her a live CD, download all the required packages (lame, flash, libdvdcss2, firefox etc.) on a stick and be done with it. The drawbacks of this are that your mate will have to install the packages him/herself or watch you in awe while you're doing it, thinking "wtf?".

    Alternative: simply hand him/her an installable live CD with all the codecs (and any other packages they might be interested) already on board.

    Procedure

    The process itself could not be simpler. You will need a package called uck (ubuntu customisation kit). Install it by going here and downloading the deb

    http://sourceforge.net/projects/uck/

    Install it by typing

    sudo dpkg -i package_name
    Once it is installed just call it up (it sits in system - uck). It will ask you where about the locales, which DE to use (KDE I take it ) and wants to know the path to the iso which you want to remaster. It then creates the CD environment and even gives you the choice of going either into synaptic (the venerable gui package manager) or the chrooted command line.

    Lost? Basically you can now chop and change the packages of your new live CD as if you were on your own system. You have synaptic at your fingertips, a top notch (okay, I don't like it...) package manager which lets you add the medibuntu repo and install the above listed packages for example.

    Once you have installed all the codecs, games, specialist software you require you can now close synaptic and tell uck to continue its magic.

    Or you have the option of the command line. What happens behind the scenes here is that you are effectively logged into the root directory of your live CD, also known as a chroot jail/environment. You can now do stuff like changing the appearance of your very own live CD, adding custom icon sets, sound themes, splashes and mouse pointers to name but a few by copying them over to your chroot environment. Granted, this is merely scratching the surface, but this is only a quick and very dirty write up. To get out of the chroot environment and back to uck I _think_ you have to type "exit".

    Burn CD

    uck will end with a window telling you where your very own iso is stored. Make a note of the path. You can now burn this onto a CD using k3b

    Live USB Stick

    Or you can put it onto a stick using another handy little helper called "Create a USB Startup Disk". Mind, usb-creator is only available in 8.10. If you want to install it on 8.04 go here - I haven't tested this. If it does not install you may want to check on unetbootin. To install on 8.10 type

    Code:
    sudo apt-get install usb-creator
    See the above notes for installing uck in case of problems. Once installed you will find it in system - Create a USB Startup Disk. Insert your usb stick, click on the program icon, point it to your iso and wait.

    Further thoughts

    There are about a thousands tricks how to make your iso smaller, prettier, more efficient, change its boot behaviour, insert themes, etc. I know some, others I am unaware of.

    I have successfully used Xnest in the chroot environment which is handy if you want to change core KDE parts and see the effect of your actions straight away. I also came across uck rather late in the day, having previously remastered "by hand". I must say, uck fits the bill and saves on typing.

    On possibilities - you can make your own custom KDE (colours, behaviour, menus, taskbars, add-ons, etc.), firefox (incl. add-ons, themes and bookmarks), change the behaviour/appearance of all the apps, get rid of grub and dump a gfxboot in there, install splashy and create your own theme for it - you name it, it can be done.

    I'd be more than happy to discuss remastering stuff in further detail but am off for a week (thanks Fintan, a sort of holiday).

    So any questions, suggestions, ideas, please post.
    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

    #2
    Re: remastering - dead simple (incl. installabe live USB stick)

    Many thanks. A real help to many. A quick browse of the forums will reveal many questions along the lines of how to get media players to play commercial DVD's, etcetera and there are a number of good posts answering that.

    I suppose that producing one CD image for each Kubuntu release must be a real juggling act - what to include and what to leave out. The medibuntu and other non free stuff is used by just about everyone but including that means leaving out something else that is free - maybe another language that would help many.

    I will be trying this and see how it goes - it certainly seems clear and simple enough.
    HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M

    Comment


      #3
      Re: remastering - dead simple (incl. installabe live USB stick)

      Thank you. I hope you succeed. I have tried to keep it simple as the subject itself is rather mind boggling when you first try to wrap your head around it - I tried to stay clear of that.

      BTW, uck is forgiving if you forgot to do something on the command line or in synaptic. You can switch back and forth as often as you like
      Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

      Comment


        #4
        Re: remastering - dead simple (incl. installabe live USB stick)

        Nice work, toad, good stuff. This is going to be useful to a lot offolks. My first few attempts using brute force were not exactly productive. We started one or two before on remastering -- looks like a link to here would help, too. I'm forgetting where those others were now. --Thanks!
        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment


          #5
          Re: remastering - dead simple (incl. installabe live USB stick)

          Qqmike, so you've been down this road before as well

          I wouldn't mind writing a number of interlinked threads (seeing that we are missing a wiki ) which deal with the different aspects - it is after all quite a comprehensive field. So far I can see one on the theory behind it, one on doing it on the command line only and a bunch on what you can do in chroot ranging from saving space, various ways of changing KDE and/or home, theming, things one can do with Xnest, splashy and gfxboot.

          Naturally that will take some time and I will need everybody's input as well. What's life if you haven't got plans?

          PS.: Everybody blame Fintan for that - he suggested it
          Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

          Comment


            #6
            Re: remastering - dead simple (incl. installabe live USB stick)

            You could go under Documentation > How To's, and start a working/developing how-to. Or, as some do, use the first post or two for the basic how-to, get responses below that, then, over time, modify the basic how to in posts 1 & 2.
            One thing, there's a 20,000 character limit on each post there.
            So, it might make sense to reserve two posts for you, like Part I and Part II or something to make two posts up front (=40,000 characters). Then replies would start at Reply #2.
            Yeah, I agree, you could get a lot of supporting methods in there, like chroot.
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #7
              Re: remastering - dead simple (incl. installabe live USB stick)

              Nice writeup, toad! Thanks!

              Comment


                #8
                Re: remastering - dead simple (incl. installabe live USB stick)

                kevin@ibex:~$ sudo apt-get install uck
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                E: Couldn't find package uck
                kevin@ibex:~$

                Synaptic tells me it has 26284 packages available with everything possible selected, but I must have missed something. Adept couldn't find it either but it won't tell me how many packages it can find.


                HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M

                Comment


                  #9
                  Re: remastering - dead simple (incl. installabe live USB stick)

                  Oops! Post your /etc/apt/sources.list (or, if you know how, enable all the repositories in it, update, install uck, comment all those out which you enabled in the first place).
                  Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                  Comment


                    #10
                    Re: remastering - dead simple (incl. installabe live USB stick)

                    kevin@ibex:~$ cat /etc/apt/sources.list
                    #
                    # deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Beta i386 (20080930.2)]/ intrepid main restricted

                    # deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Beta i386 (20080930.2)]/ intrepid main restricted
                    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                    # newer versions of the distribution.

                    deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted
                    deb-src http://archive.ubuntu.com/ubuntu/ intrepid restricted main multiverse universe #Added by software-properties

                    ## Major bug fix updates produced after the final release of the
                    ## distribution.
                    deb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
                    deb-src http://archive.ubuntu.com/ubuntu/ intrepid-updates restricted main multiverse universe #Added by software-properties

                    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                    ## team, and may not be under a free licence. Please satisfy yourself as to
                    ## your rights to use the software. Also, please note that software in
                    ## universe WILL NOT receive any review or updates from the Ubuntu security
                    ## team.
                    deb http://archive.ubuntu.com/ubuntu/ intrepid universe
                    deb http://archive.ubuntu.com/ubuntu/ intrepid-updates universe

                    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                    ## team, and may not be under a free licence. Please satisfy yourself as to
                    ## your rights to use the software. Also, please note that software in
                    ## multiverse WILL NOT receive any review or updates from the Ubuntu
                    ## security team.
                    deb http://archive.ubuntu.com/ubuntu/ intrepid multiverse
                    deb http://archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

                    ## Uncomment the following two lines to add software from the 'backports'
                    ## repository.
                    ## N.B. software from this repository may not have been tested as
                    ## extensively as that contained in the main release, although it includes
                    ## newer versions of some applications which may provide useful features.
                    ## Also, please note that software in backports WILL NOT receive any review
                    ## or updates from the Ubuntu security team.
                    deb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
                    deb-src http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

                    ## Uncomment the following two lines to add software from Canonical's
                    ## 'partner' repository. This software is not part of Ubuntu, but is
                    ## offered by Canonical and the respective vendors as a service to Ubuntu
                    ## users.
                    deb http://archive.canonical.com/ubuntu intrepid partner
                    deb-src http://archive.canonical.com/ubuntu intrepid partner

                    deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
                    deb-src http://security.ubuntu.com/ubuntu intrepid-security restricted main multiverse universe #Added by software-properties

                    deb http://security.ubuntu.com/ubuntu intrepid-security universe
                    deb http://security.ubuntu.com/ubuntu intrepid-security multiverse

                    deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
                    deb-src http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
                    kevin@ibex:~$
                    HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M

                    Comment


                      #11
                      Re: remastering - dead simple (incl. installabe live USB stick)

                      I backed up my sources.list, put yours in its place, did an update and an apt-cache search uck was successful! You sure you cannot install it? Very strange...

                      Here is mine for all it is worth:

                      # deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Release Candidate i386 (20081022)]/ intrepid main restricted
                      # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                      # newer versions of the distribution.

                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid main restricted
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid main restricted

                      ## Major bug fix updates produced after the final release of the
                      ## distribution.
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

                      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                      ## team. Also, please note that software in universe WILL NOT receive any
                      ## review or updates from the Ubuntu security team.
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid universe
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid universe
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid-updates universe
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid-updates universe

                      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                      ## team, and may not be under a free licence. Please satisfy yourself as to
                      ## your rights to use the software. Also, please note that software in
                      ## multiverse WILL NOT receive any review or updates from the Ubuntu
                      ## security team.
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid multiverse
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid multiverse
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

                      ## Uncomment the following two lines to add software from the 'backports'
                      ## repository.
                      ## N.B. software from this repository may not have been tested as
                      ## extensively as that contained in the main release, although it includes
                      ## newer versions of some applications which may provide useful features.
                      ## Also, please note that software in backports WILL NOT receive any review
                      ## or updates from the Ubuntu security team.
                      deb http://de.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
                      deb-src http://de.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

                      ## Uncomment the following two lines to add software from Canonical's
                      ## 'partner' repository. This software is not part of Ubuntu, but is
                      ## offered by Canonical and the respective vendors as a service to Ubuntu
                      ## users.
                      deb http://archive.canonical.com/ubuntu intrepid partner
                      deb-src http://archive.canonical.com/ubuntu intrepid partner

                      deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
                      deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
                      deb http://security.ubuntu.com/ubuntu intrepid-security universe
                      deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
                      deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
                      deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse

                      # OpenOffice3
                      deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
                      deb-src http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main

                      # Remastersys
                      #deb http://www.remastersys.klikit-linux.com/repository remastersys/

                      # Medibuntu
                      deb http://packages.medibuntu.org/ intrepid free non-free

                      # Rog131's plasmoids
                      deb http://ppa.launchpad.net/samrog131/ubuntu intrepid main
                      deb-src http://ppa.launchpad.net/samrog131/ubuntu intrepid main

                      # yakuake for kde4
                      deb http://ppa.launchpad.net/paulo-miguel-dias/ubuntu intrepid main
                      deb-src http://ppa.launchpad.net/paulo-miguel-dias/ubuntu intrepid main

                      # virtualbox
                      deb http://download.virtualbox.org/virtualbox/debian intrepid non-free

                      # KDE4.2 neon
                      deb http://ppa.launchpad.net/project-neon/ubuntu intrepid main

                      # KDE 4.2 beta
                      #deb http://ppa.launchpad.net/kubuntu-experimental/ubuntu intrepid main
                      You could, of course, always install the deb files only from here http://uck.sourceforge.net/download
                      Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                      Comment


                        #12
                        Re: remastering - dead simple (incl. installabe live USB stick)

                        I added the extra lines in your sources.list and updated but still couldn't find uck, so installed from the link.
                        Many thanks for that. It pulled in an extra seven packages and now shows up on Kmenu. I noticed that is says I will need 5G free space in /home. I'll have to move some things around to get that, or, is it possible to use free space somewhere else? Strange that both Adept and Synaptic can't find uck, even though its there.
                        HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M

                        Comment


                          #13
                          Re: remastering - dead simple (incl. installabe live USB stick)

                          I am somewhat flabbergasted as to where this package may be! I will adjust the how to to reflect your experiences - thanks for that.

                          Re space - UCK creates a tmp directory in and your /home partition. Unfortunately you cannot change that unless you adjust the source code. UCK is only a bunch of bash scripts so it might be possible even for a novice like me - but is it worth it?

                          If you want to use space elsewhere you can remaster manually. Have a look here http://kubuntuforums.net/forums/inde...opic=3099957.0 Any comments welcome!
                          Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                          Comment


                            #14
                            Re: remastering - dead simple (incl. installabe live USB stick)

                            UCK seems to work and offers lots of options along the way. Probably the 5G is only for burning DVD's. For a CD then 1G should be plenty. You need to have an .iso image such as downloaded from Kubuntu, or whatever you want to use as a base.

                            Both howto's are very useful. Many thanks for the links and useful information.
                            HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M

                            Comment


                              #15
                              Re: remastering - dead simple (incl. installabe live USB stick)

                              I do not think 1GB is enough, but please share your experiences. You've got to copy over the squashfs which is nearly 700MB itself, then do your magic - this is obviously the big unknown - and finally there is the repacking process. Unfortunately I do not know what exactly happens there, i.e. whether data gets shifted into some tmp data sets...

                              Thanks for your comments re the iso - seems like I missed that out completely. Not any more!
                              Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                              Comment

                              Working...
                              X