| 
									
										
										
										
											2006-04-27 00:03:54 +02:00
										 |  |  | Dependencies | 
					
						
							|  |  |  | ============ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 22:55:56 +02:00
										 |  |  | xulrunner | 
					
						
							| 
									
										
										
										
											2006-04-27 00:03:54 +02:00
										 |  |  | gecko-embed | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 22:55:56 +02:00
										 |  |  | http://gnome.org/~marco/olpc | 
					
						
							| 
									
										
										
										
											2006-04-27 00:03:54 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | Building | 
					
						
							|  |  |  | ======== | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-26 08:41:54 +02:00
										 |  |  | You will need gnome-common. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | make | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | make install # make require root privileges | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Running | 
					
						
							|  |  |  | ======= | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:28:16 +02:00
										 |  |  | Once installed you can run sugar with | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  $ sugar | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | To run the python sources from your source tree run | 
					
						
							| 
									
										
										
										
											2006-04-26 08:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-16 22:32:08 +02:00
										 |  |  |  $ sugar/sugar | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You can also run the components separately: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:11:47 +02:00
										 |  |  |  $ source ./setup-run-from-source.sh # needs bash | 
					
						
							| 
									
										
										
										
											2006-04-26 08:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | in the top-level directory. Icons and other resources are still loaded | 
					
						
							|  |  |  | from the installed location though. | 
					
						
							| 
									
										
										
										
											2006-04-26 08:26:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | To run the shell | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  |  $ cd shell/src | 
					
						
							|  |  |  |  $ ./shell.py | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | You can run activities like this | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  |  $ cd browser | 
					
						
							|  |  |  |  $ ./browser.py | 
					
						
							| 
									
										
										
										
											2006-04-26 06:25:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-27 21:01:42 +02:00
										 |  |  | (Just remember to have the shell running) | 
					
						
							| 
									
										
										
										
											2006-05-19 20:27:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | 
 |