Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've written a patch for Ubiquity and I'd like to test it before I submit it, but I'm not sure how to go about this given the nature of Ubiquity (only used during installation). Is there a way I can build and run it on my own system, or would I have to pull the entire Ubuntu source code and integrate my patch into that, then run a test installation?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

There are a couple ways to do this.

  1. You can install ubiquity and edit the code on your machine (in /usr/lib/ubiquity/*). Then just run it and play around. It will adjust some global machine settings, so be prepared for your language or keyboard to change as you select values. And remember you probably don't want to repartition your hard drive as you're using it (it actually won't let you). But you can partition a thumb drive easily enough.

  2. You can burn a Live CD/thumb drive easily enough and run it. During installation, you can do the same trick and edit ubiquity's files in /usr/lib/ubiquity (Alt+Ctrl+T to bring up a Terminal). You may need to kill any existing instances of ubiquity and restart it:

    sudo pkill ubiq
    
    ubiquity --automatic # automatic because that's what the Live CD uses
    

You could also use a virtual machine to test, but that has always been more work than it's worth for me. I usually just use method #1.

Those are the easiest ways. You could also grab the Ubuntu source, edit it, build a new package, install it, and then play with it. But you indicated you wanted to avoid that.

share|improve this answer
    
Thanks a lot for the detailed answer. Unfortunately a grep of /usr/lib/ubiquity/* didn't turn up the file I'm looking for (it's debian/ubiquity.templates in the source). I've has a go at compiling from source, but I'm having problems there as well (see askubuntu.com/questions/22500/…). Perhaps you'd be able to help me with that if it's not too much trouble? –  Chris Wilson Jan 24 '11 at 15:01
    
It sounds like you may be interested in using "preseeding" rather than modifying the template. See help.ubuntu.com/10.10/installation-guide/i386/… –  Michael Terry Jan 24 '11 at 16:12

Just install the package, Insert the patch and In a Terminal run:

ubiquity
share|improve this answer
    
How would I insert the patch into the program once it's already installed? –  Chris Wilson Jan 20 '11 at 19:01
    
It would be in /etc/ubiquity I imagine... –  Micheal Harker Jan 20 '11 at 19:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.