Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/README
blob: f916c44e046f7ffacd249daf63064edb9b729342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Dependencies
============

xulrunner
gecko-embed

http://gnome.org/~marco/olpc

Building
========

You will need gnome-common.

./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install # make require root privileges

Running
=======

Once installed you can run sugar with

 $ sugar

To run the python sources from your source tree run

 $ sugar/sugar

You can also run the components separately:

 $ source ./setup-run-from-source.sh # needs bash

in the top-level directory. Icons and other resources are still loaded
from the installed location though.

To run the shell

 $ cd shell/src
 $ ./shell.py

You can run activities like this

 $ cd browser
 $ ./browser.py

(Just remember to have the shell running)


Running two instances on the same machine
=========================================

1) Install Xephyr
2) Add another user to your machine, lets call that user 'sugar'
2) Run Xepyhr as your normal user:

 $ Xephyr -ac -host-cursor -screen 800x600 :1

3) In a new shell:

 $ su sugar -
 $ dbus-daemon --session --print-address

4) In another new shell 

 $ su sugar -
 $ export DISPLAY=:1
 $ export DBUS_SESSION_BUS_ADDRESS=<output dbus-daemon command from above>
 $ metacity &

5) In the previous shell, run sugar