My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 01, 2008 by zachriggle
Labels: Featured
RunningSugarbot  
Instructions for running sugarbot

Setting Up

Sugarbot is installed and run in a manner very similar to most Activities. It also has an automated-launcher tool to be used in conjunction with a buildbot.

  1. Get Sugarbot
  2. Copy the folder into your Sugar Activities folder.
    • cp -R sugarbot ~/Activities/sugarbot.Activity
  3. In order for sugarbot to start automatically, a small change must be made to the main.py in the Sugar distribution.
    • In the sugarbot directory, there is a file named modded-main.py. It has been tested with the Ubuntu Hardy packages. Either:
      1. Replace sugar/shell/main.py with modded-main.py
      2. Diff the files and make the necessary changes for sugarbot

Configuring Sugar

Sugar runs without configuration out of the box. Simply rename sample-config.py to config.py.

config.py allows you to select the port that is used for connecting, as well as specify the IP address of the interface that the server listens on, and the IP address of that the clients will connect to.

Launching Sugar

Using sugarbot with buildbot

An example master.cfg has been provided for using buildbot with sugarbot. It has been tested on Ubuntu Hardy Heron, using the Sugar and buildbot packages from the apt-get repository.

In order for Sugar to run properly, it may be required to enter the following command into the terminal: sudo xhost +. This enables X11 connections from any host, which is a requirement for buildbot to operate properly with Sugar.


Sign in to add a comment
Hosted by Google Code