Installing

Revision 5 as of 2012-02-10 07:36:27

Clear message

Go back to the accomplishments main page.

Install the Ubuntu Accomplishments sytem

This is still very much a work in progress and as such things need refining here.

Getting The Code

Run the following to check out the code:

bzr branch lp:ubuntuaccomplishments

This package provides the trophy view and the daemon.

Setting Up

First set your PYTHONPATH to the daemon directory of where you checked out the branch:

export PYTHONPATH=$PYTHONPATH:/home/jono/source/trophyinfo/daemon/

Now you need to create your 'accomplishments' (where the accomplishments files live) and 'trophies' (where your trophies live) directories.

If this branch is in ~/source/trophyinfo, create two directories also in ~/source:

  • ~/source/accomplishments (this is where the accomplishments files live)

  • ~/source/trophies (this is where your trophies will live) (this will be automated later)

Set up your Ubuntu One share

Currently the system does not automatically set up a share with Ubuntu One to sync to the validation server. I have added u1.py in the other/ dir in the main branch where you can do this.

Open the file and edit FOLDER_I_CARE_ABOUT to point to the trophies directory that you set earlier. Now run:

python u1.py

Now email jono AT ubuntu DOT com and tell me your username that you used to set this up so I can approve the share on the server.

This will be automated soon.

Installing Accomplishments

Now ensure that you have some accomplishments files in your accomplishments directory. Grab these by running:

    bzr branch lp:~jonobacon/ubuntuaccomplishments/ubuntu-community

When you have grabbed this branch you can install those accomplishments to your accomplishments dir with the included script. For example:

    cd ubuntu-community
    ./install.sh /home/jono/source/accomplishments

Running The App

To run you first need to run the daemon. First cd into the daemon directory and then edit the rundaemon.sh scrip and edit the following two lines to point to your accomplishments and trophy directories:

ACCOMDIR="/home/jono/source/accomplishments"
TROPHYDIR="/home/jono/source/trophies"

Now run the daemon:

        ./rundaemon.sh

You can then run the main trophy viewer:

        cd ..
        quickly run

To run ubuntu-community scripts to check for those accomplishments, click File->Check Accomplishments.

Questions can go to jono@ubuntu.com

Thanks!