Difference between revisions of "Talk:Platform Team/Guide/Sugar via Sweets"
Inkyfingers (talk | contribs) (Edit detail) |
Inkyfingers (talk | contribs) (Edit detail) |
||
Line 445: | Line 445: | ||
− | == Installing Sugar via sweets - in Debian | + | == Installing Sugar via sweets - in Debian testing Wheezy == |
Environment Debian Wheezy, window manager SLiM, logging in to openbox-session. | Environment Debian Wheezy, window manager SLiM, logging in to openbox-session. | ||
Revision as of 18:13, 5 January 2012
Installing sweets-sugar from Fedora 16 GNOME 3 Terminal
- 12/03/2011 satellit
- Log of what I found
- With much help from alsroot
Installation
- Zero Install (thus, Sweets') workflow requires having Internet connection
- Once the system is built; it is cached locally so it will start without rebuilding
- Default is sugar 0.88.1
sugar 0.88
- Default is sugar 0.88.1
- GNOME Terminal
sudo yum install gnome-packagekit wget http://download.sugarlabs.org/sweets/sweets/installer.sh sh installer.sh
- Restart (to reset dbus)
- Install GPG Key (as PK does not install it.)
yum install pygobject2-devel packages will be installed... 1 + 3 dependencies asks for gpg key and I said Y Importing GPG key 0xA82BA4B7
- Install and build
sweets -S dextrose/sugar:emulator $ sweets -S dextrose/sugar:emulator -- Solve dextrose/sugar-base for building -- Solve dextrose/sugar-toolkit for building -- Solve dextrose/sugar-presence-service for building -- Solve dextrose/sugar-datastore for building -- Solve dextrose/sugar-artwork for building -- Solve sdk/etoys for building -- Solve sdk/pyxpcom for building -- Solve sdk/hulahop for building -- Solve sdk/python-xklavier for building -- Solve dextrose/sugar for building -- Install pygobject2-devel libX11-devel libxkbfile-devel libXv-devel libXinerama-devel gtk2-devel libXt-devel libXres-devel xorg-x11-apps python-lxml squeak-vm libfontenc-devel libXmu-devel gcc intltool xapian-bindings-python python-cjson libxklavier-devel libXrender-devel python-devel libXext-devel libFS libXxf86dga-devel subversion libXtst-devel pygame libXScrnSaver-devel libXxf86vm-devel pygtksourceview cairo-devel libXfont-devel gcc-c++ libXScrnSaver alsa-lib-devel pyabiword pygtk2-devel libSM-devel libXau-devel libFS-devel gnome-common libXvMC-devel libXp libtool libXdamage-devel libXrandr-devel python-dateutil xorg-x11-xtrans-devel python-elements libXi-devel libXft-devel gnome-python2-rsvg csound-python libXpm-devel libXdmcp-devel icon-naming-utils icon-slicer libdmx-devel xorg-x11-proto-devel GConf2-devel libXcomposite-devel hippo-canvas-python libXcursor-devel libXfixes-devel libICE-devel libXp-devel libdrm-devel
- Sugar starts in Xephyr
- at color screen
- need to <== to rename it then ==> twice
no activities on f3
- about my computer says Fedora release 16 (Verne) 0.88.1
- Exit
- Terminal
sweets -S dextrose/sugar:emulator -f
- Hover over XO icon click on My Settings in drop down
- select "frame"
- Move bottom slider "edge" fully Left
- restart
- Terminal
sweets -S dextrose/sugar:emulator -f
- Click on sugar journal icon in f3 screen
- Drag drop surf-115.xo from 2nd USB
- http://people.sugarlabs.org/Tgillard/Surf-115.xo
- Download to a USB and insert the USB in running sweets-sugar
- click on surf in f3
- Activities (upper right screen)
- Load the activities you want from ASLO (or from the 2nd USB by drag drop) irc;chat;...etc
Have fun
sugar 0.94.1 (Unstable)
- Terminal:
sweets dextrose/sugar:emulator = 0.94
- Software update in 0.94 offers 39 updates (installs new activities)
- this seems a nice workaround for lack of activities in sweets-sugar
Activities that do not start
Turtle art 105 Read 87 Browse 116 Colors 15 Ruler 7 Maze 9 (Hangs) Poll 27 Get Books 5 Tetris Mat 1
- surf-115.xo does not start here : (
- Firefox-6.xo does start
- Download to 2nd USB:http://people.sugarlabs.org/Tgillard/firefox-6.xo
- Browses web well; Firefox is not fully sugarized so it does not save to sugar-journal.
Notes on how to start 0.88 or 0.94
- commands to start sweets-sugar in terminal:
- Full Screen
- sweets -S dextrose/sugar:emulator -f
- 0.88
- sweets -S dextrose/sugar:emulator = 0.94 -f
- 0.94
- after installing the activities in software update in 0.94 they remain in sugar 0.88 and work.
Installing Sugar via sweets - in Mint-12
17/12/2011 by inkyfingers
Host environment: Mint-12 installed three days prior to start from:linuxmint-12-gnome-cd-nocodecs-32bit.
Testing Mint-12 over three days, it is fairly sound, but some freezing when using Firefox 8. I wait 10 seconds for unfreeze, no crashes.
My machine: http://www.smolts.org/client/show/pub_98841a4d-b674-4a44-804b-d7cee2872a09
Installation
iain@Mint2 ~ $ sudo apt-get install gnome-packagekit
installs, no error reported, suggested packages: packagekit-backend-apt packagekit-backend-smart
iain@Mint2 ~ $ sudo apt-get install packagekit-backend-apt packagekit-backend-smart
installs, no error reported, suggested packages: python-rpm
iain@Mint2 ~ $ sudo apt-get install python-rpm
- Restart
iain@Mint2 ~ $ wget http://download.sugarlabs.org/sweets/sweets/installer.sh
iain@Mint2 ~ $ sh installer.sh Sweets self extracting installer -- Scan ftp://download.sugarlabs.org/sweets/sweets for updates -- Downloading update from http://download.sugarlabs.org/sweets/sweets/sweets-1.0.5.tar.gz -- sweets launcher was installed to /home/iain/.local/bin -- sweets-index service was installed to /home/iain/.local/share/dbus-1/services
- ... sweets: command not found ... so, requires a restart.
- Restart
iain@Mint2 ~ $ sweets upgrade -- Scan ftp://download.sugarlabs.org/sweets/sweets for updates -- No need in upgrading
iain@Mint2 ~ $ sweets dextrose/sugar:emulator
- ... top of output not copied
-- Cannot solve /home/iain/.cache/0install.net/implementations/sha1new=3609c88732be7be0144e77220861a08733dfd1d3 for building: Cannot find requireed implementations for http://sweets.sugarlabs.org/base/x11-libs iain@Mint2 ~ $ sweets -S dextrose/sugar:emulator -f -- Cannot solve /home/iain/.cache/0install.net/implementations/sha1new=3609c88732be7be0144e77220861a08733dfd1d3 for building: Cannot find requireed implementations for http://sweets.sugarlabs.org/base/x11-libs
Now there is a three day gap - I learn that the sweet "base/x11-libs" had a bug found in Mint.
Now use -R option to refresh.
iain@Mint2 ~ $ sweets -R sdk/sugar:emulator
- ... top of output was not copied
-- Install python-gtk2-dev python-xklavier libxt-dev xsltproc libdbus-1-dev telepathy-salut python-gobject-dev libxres-dev libxfixes-dev libdrm-dev python-dev libxcomposite-dev libxss-dev libfontenc-dev intltool libdmx-dev libice-dev python-cjson python-decorator libxdamage-dev libX11-dev libcairo2-dev libxpm-dev libxfont-dev libxxf86vm-dev libasound2-dev python-rsvg libxext-dev gnome-common python-telepathy xserver-xephyr libdmx1 libxft-dev libxxf86dga-dev libfs-dev libtool libtelepathy-glib-dev libxi-dev libxv-dev python-hippocanvas libxmu-dev libgtk2.0-dev libdbus-glib-1-dev libgconf2-dev libxp-dev icon-slicer icon-naming-utils libxinerama-dev libxtst-dev libxkbfile-dev libxrender-dev libxvmc-dev libxcursor-dev libxrandr-dev python-gtksourceview2 libsm-dev telepathy-gabble libglib2.0-dev -- Build sdk/sugar-artwork (0.94.0) -- Build sdk/sugar-base (0.94.0) -- Build sdk/sugar-toolkit (0.94.0) -- Build sdk/sugar-datastore (0.94.0) -- Build sdk/telepathy-mission-control (5.7.1) -- Build sdk/sugar (0.94.1) Gtk-Message: Failed to load module "pk-gtk-module" [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list! ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory
- However this produces Sugar in a window.
Testing Sugar in a window
The product of this command under Mint-12 in GUI xterm: sweets -R sdk/sugar:emulator
Title bar reads: Sugar in a window
- Build: Linux Mint 12 Lisa
- Sugar: 0.94.1
- Firmware: 6.00 PG
Very first screen: icon colour change.
Home view: Favourites view and list view appear, are empty
F1 names of neighbours 'show on hover'
From configuration screen
- About me, offers to colour change fine. Has correctly taken my name from Host.
- Frame adjust seems to work - asks for restart as expected. I respond - Later.
- Keyboard sttings changed and tested ok
- Hit software Updates ckecking for updates. Updating appears - no obvious activity in 7 seconds. Hit cancel.
- No updating seems to start.
- Date & time: Able to select TZ, asks for restart, I respond: Later.
Function keys F1 to F6 all work - Journal appears.
USB device, (which was inserted pre-start) is visible,
Relationship between Host environment - typing this - and Sugar in a window is absoutely predictable, ok.
- In Host environment,the original xterm window: last 3 lines are now:
ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc003bd specified for 0 Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc02eda specified for 0
Use Firefox on Host environment to download to USB flashdrive.
Download: http://people.sugarlabs.org/Tgillard/Surf-115.xo. Save to USB flashdrive.
Download from Aslo: Browse-129.xo and Terminal-35.xo. Save to USB flashdrive,
- In Sugar in a window:
Start Software update: checking for updates ... no activity, 5 mins.
Drag and drop Browse-129.xo and Terminal-35.xo and Surf-115.xo from flashdrive to Journal.
Activities appear in F3 Home view, List,
Click Browse, flashing icon ... reports, fails to start.
Click Surf, flashing icon ... reports 'Surf failed to start.'
Click Terminal, flashing icon and starts.
uname -a - ok
- Download using Host environment: moon-13.xo and irc-10.xo. Save to USB flashdrive.
- In Sugar in a window:
Drag and drop from flashdrive to Journal, moon-13.xo and irc-10.xo
Click Moon, flashing icon and starts ok.
Click IRC, flashing icon and starts ok. tx out appears to work.
Close the host environment terminal.
- End of test.
- NOTE the above was carried out without the benefit of -S switch.
Testing Xephyr
Immediately follows the above.
The product of this command under Mint-12 in GUI xterm: sweets dextrose/sugar:emulator
Title bar reads: Xephyr on :30.0
- Build: Linux Mint 12 Lisa
- Sugar: 0.88.1
PS Note this test is without benefit of -S switch.
F1 to F6 work - pre-existing journal is intact.
Terminal starts - simple commands work.
About my computer: Sugar 0.88.1
Keyboard settings survived.
Pre-existing downloaded Activites are in Home View.
Click irc, flashing icon, starts. Test tx in and out ok.
Click Surf-115.xo, flashing icon, starts, is online.
Write appears in journal. Right click, resume, - flashing icon, but reports fails to start.
Using Surf, download Sugar file manager.
Successful and Sugar File manager starts and works.
Attempt to download Write again.
Write icon in Home View, Click Write,- flashing icon - reports, 'fail to start'
Back to Host environment
xterm output is as follows. ie this is the last few lines of the traceback which launched the test in progress.
-- Solve dextrose/sugar-base for building -- Solve dextrose/sugar-toolkit for building -- Solve dextrose/sugar-presence-service for building -- Solve dextrose/sugar-datastore for building -- Solve dextrose/sugar-artwork for building -- Solve dextrose/sugar for building -- Build dextrose/sugar-base (0.88.0) -- Build dextrose/sugar-toolkit (0.88.1) -- Build dextrose/sugar-presence-service (0.88.0) -- Build dextrose/sugar-datastore (0.88.0) -- Build dextrose/sugar-artwork (0.88.1) - Build dextrose/sugar (0.88.1) Gtk-Message: Failed to load module "pk-gtk-module" [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list! /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: 60: [[: not found /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: 113: [[: not found ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory E: [pulseaudio] pid.c: Daemon already running. E: [pulseaudio] main.c: pa_pid_file_create() failed. Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc01955 specified for 0xc01988 (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc0347a specified for 0xc034a8 (sugar-sess). Window manager warning: last_focus_time (48387255) is greater than comparison timestamp (48387251). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
Extended test: Two sweets running at once!
- Note this is not good practice, its a bit like riding a bike with no hands, showing off and might result in breakage.
With Xephyr on :30.0 running on desktop 4.
In host environment open new xterm
iain@Mint2 ~ $ sweets sdk/sugar:emulator Gtk-Message: Failed to load module "pk-gtk-module" [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list! ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc00223 specified for 0xc00260 (sugar-sess).
Both sweets are running, both on desktop 4.
Close both Sweets, by using close icon in top right corner.
- Back at Host environment
xterm output, ref: sdk/sugar
iain@Mint2 ~ $ sweets sdk/sugar:emulator Gtk-Message: Failed to load module "pk-gtk-module" [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list! ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc00223 specified for 0xc00260 (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc00223 specified for 0xc02b34 (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc00223 specified for 0xc02c62 (sugar-sess). XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" after 23718 requests (23718 known processed) with 0 events remaining. Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':31'. iain@Mint2 ~ $
xterm output, ref: dextrose/sugar
/... copy last lines only: /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: 113: [[: not found ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory E: [pulseaudio] pid.c: Daemon already running. E: [pulseaudio] main.c: pa_pid_file_create() failed. Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc01955 specified for 0xc01988 (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc0347a specified for 0xc034a8 (sugar-sess). Window manager warning: last_focus_time (48387255) is greater than comparison timestamp (48387251). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around... Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc01955 specified for 0xc0f645 (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc08267 specified for 0xc1202e (sugar-sess). XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" after 176360 requests (176360 known processed) with 0 events remaining. (metacity:28952): GConf-WARNING **: Got Disconnected from DBus. Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':30'. iain@Mint2 ~ $
Check out the -S option
Start xephyr session with
iain@Mint2 ~ $ sweets -S dextrose/sugar:emulator
asks for root password. Downloading.
after 4 minutes Xephyr on :30.0 apears.
Click on Surf, flashing icon and starts.
Click on Physics, flashing icon and starts.
Click on Chat, flashing icon and starts. Share a Chat session, F1 - Chat bubble icon is visible in my colours.
Check contents of Frame. System resources and USB device seen and appear working.
See repair Journal feature. Close all activities, Opporunity to rename activities not given by default.
Click on repair journal. Reports, "Journal has been reindexed", and Sugar session is terminated without further warning.
Restart with:
iain@Mint2 ~ $ sweets -S dextrose/sugar:emulator
Click on Sugar File Manager. Works as expected.
In host environment there is now an icon representing a drive or partition labeled Journal. This will open with Nautilus, Write documents are seen and can be printed.
Start Sugar in a window session with
iain@Mint2 ~ $ sweets -S sdk/sugar:emulator
Click on Write, flashing icon and starts.
Able to write, save, rename Activity title
Click on Surf, flashing icon and reports fail to start.
Click on Terminal, flashing icon and starts.
All seems to work, but no Surf,
From Home View, List,
Click Browse-129.xo. Flashing icon and starts, is online, three sites visited and logon ok.
Using Activity Browse, download Reflection 3 from ASLO - Demonstrate Reflection, name, title, description and tag ok.
Using browse, download Chat-73.xo, saves to Journal.
Click on Chat, flashing icon and starts.
Click neighbourhood icon to share.
F1, neighbourhood view no chat ballon to indicate shared Chat Activity.
Change name in My Setting. Click for restart, Sugar in a window session closes.
Host environment remains.
This is the trace from the above session:
iain@Mint2 ~ $ sweets -S sdk/sugar:emulator -- Download http://download.sugarlabs.org/sweets/sdk/sugar-presence-service/sugar-presence-service-0.88.1-r10-src.tar.gz -- Solve sdk/sugar-presence-service for building -- Build sdk/sugar-presence-service (0.88.1) Gtk-Message: Failed to load module "pk-gtk-module" [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list! [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list! Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc02cc9 specified for 0xc02d2e (sugar-sess). Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc06b70 specified for 0xc06ba3 (sugar-sess). Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':30'. iain@Mint2 ~ $
Start Sugar in a window session with
iain@Mint2 ~ $ sweets -S sdk/sugar:emulator
Name change has been applied.
Resume Chat, I see on line message and countdown, but no chat balloon in F1.
Later, download Chat-73.xo again. No change.
Resume Chat, I see on line message and countdown, but no chat balloon in F1.
Surf, flashing icon, reports fails to start.
Installing Sugar via sweets - in Debian testing Wheezy
Environment Debian Wheezy, window manager SLiM, logging in to openbox-session.
/etc/apt/sources.list:
- deb http://ftp.debian.org/debian/ wheezy main contrib non-free
- deb-src http://security.debian.org/ wheezy/updates main
Installation
iain@wheezy-box:~$ sudo apt-get update
iain@wheezy-box:~$ sudo apt-get install gnome-packagekit Reading package lists... Done. Building dependency tree. Reading state information... Done The following extra packages will be installed: gnome-packagekit-data gnome-settings-daemon gstreamer0.10-pulseaudio libasound2-plugins libgnomekbd-common libgnomekbd7 libpackagekit-glib2-14 libspeexdsp1 libxklavier16 packagekit packagekit-backend-aptcc pulseaudio pulseaudio-esound-compat pulseaudio-module-x11 pulseaudio-utils python-packagekit rtkit Suggested packages: gnome-screensaver packagekit-backend-smart pavumeter pavucontrol paman paprefs
iain@wheezy-box:~$ sudo apt-get install packagekit-backend-smart The following NEW packages will be installed: gnome-packagekit gnome-packagekit-data gnome-settings-daemon gstreamer0.10-pulseaudio libasound2-plugins libgnomekbd-common libgnomekbd7 libpackagekit-glib2-14 libspeexdsp1 libxklavier16 packagekit packagekit-backend-aptcc pulseaudio pulseaudio-esound-compat pulseaudio-module-x11 pulseaudio-utils python-packagekit rtkit 0 upgraded, 18 newly installed, 0 to remove and 18 not upgraded. Need to get 10.6 MB of archives. After this operation, 29.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y
Installed without reported error until
PulseAudio configured for per-user sessions ... (warning).
Remainder of trace edited out.
iain@wheezy-box:~$ sudo apt-get install pavumeter pavucontrol paman paprefs
Cut trace. Installed without reported error.
Restart machine.
iain@wheezy-box:~$ wget http://download.sugarlabs.org/sweets/sweets/installer.sh --2011-12-10 12:30:29-- http://download.sugarlabs.org/sweets/sweets/installer.sh Resolving download.sugarlabs.org (download.sugarlabs.org)... 140.186.70.53, 2002:8cba:4635::1 Connecting to download.sugarlabs.org (download.sugarlabs.org)|140.186.70.53|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://ftp.snt.utwente.nl/pub/software/sugarlabs/sweets/sweets/installer.sh [following] --2011-12-10 12:30:29-- http://ftp.snt.utwente.nl/pub/software/sugarlabs/sweets/sweets/installer.sh Resolving ftp.snt.utwente.nl (ftp.snt.utwente.nl)... 130.89.149.20, 2001:610:1908:a000::149:20 Connecting to ftp.snt.utwente.nl (ftp.snt.utwente.nl)|130.89.149.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 584502 (571K) [text/x-sh] Saving to: `installer.sh' 100%[==============================================>] 584,502 717K/s in 0.8s 2011-12-10 12:30:30 (717 KB/s) - `installer.sh' saved [584502/584502]
iain@wheezy-box:~$ sh installer.sh Sweets self extracting installer -- Scan ftp://download.sugarlabs.org/sweets/sweets for updates -- Downloading update from http://download.sugarlabs.org/sweets/sweets/sweets-1.0.5.tar.gz -- sweets launcher was installed to /home/iain/.local/bin -- Relogin to reuse new PATH value -- sweets-index service was installed to /home/iain/.local/share/dbus-1/services
Restart machine.
iain@wheezy-box:~$ sweets dextrose/sugar:emulator -- Download http://download.sugarlabs.org/sweets/dextrose/sugar-artwork/sugar-artwork-0.88.1-r2-src.tar.gz -- Download http://download.sugarlabs.org/sweets/dextrose/sugar/sugar-0.88.1-r13-src.tar.gz -- Download http://download.sugarlabs.org/sweets/dextrose/sugar-base/sugar-base-0.88.0-r4-src.tar.gz -- Download http://download.sugarlabs.org/sweets/dextrose/sugar-toolkit/sugar-toolkit-0.88.1-r2-src.tar.gz -- Download http://download.sugarlabs.org/sweets/dextrose/sugar-datastore/sugar-datastore-0.88.0-r2-src.tar.gz -- Download http://download.sugarlabs.org/sweets/dextrose/sugar-presence-service/sugar-presence-service-0.88.0-r2-src.tar.gz -- Solve dextrose/sugar-base for building -- Solve dextrose/sugar-toolkit for building -- Solve dextrose/sugar-presence-service for building -- Solve dextrose/sugar-datastore for building -- Solve dextrose/sugar-artwork for building -- Solve dextrose/sugar for building -- Install python-gtk2-dev python-xklavier libxt-dev libxss1 xdg-user-dirs-gtk libxv-dev python-wnck telepathy-salut python-gobject-dev libxfont-dev libxres-dev libxfixes-dev libdrm-dev libxdmcp-dev python-dev libxcomposite-dev libxss-dev libfontenc-dev intltool hal libice-dev python-cjson python-decorator libxdamage-dev libxmu-dev libcairo2-dev libxpm-dev libgtk2.0-dev libxxf86dga-dev libgconf2-dev libx11-dev libasound2-dev python-rsvg libxext-dev gnome-common python-telepathy libxau-dev libxft-dev libxcursor-dev libfs-dev libtool libxi-dev python-dateutil libdmx-dev python-hippocanvas libxtst-dev metacity libdmx1 libxxf86vm-dev libxp-dev icon-slicer xserver-xephyr libxinerama-dev libxp6 libxkbfile-dev libxrender-dev libxvmc-dev icon-naming-utils libxrandr-dev python-gtksourceview2 libsm-dev telepathy-gabble pkg-config -- org.freedesktop.DBus.Error.InvalidArgs: Type of message, `(as)', does not match expected type `(bas)' -- Use -D argument for debug info, -DD for full debuging output and tracebacks
Install further packages called for.
iain@wheezy-box:~$ sudo apt-get install python-gtk2-dev python-xklavier libxt-dev libxss1 xdg-user-dirs-gtk libxv-dev python-wnck telepathy-salut python-gobject-dev libxfont-dev libxres-dev libxfixes-dev libdrm-dev libxdmcp-dev python-dev libxcomposite-dev libxss-dev libfontenc-dev intltool hal libice-dev python-cjson python-decorator libxdamage-dev libxmu-dev libcairo2-dev libxpm-dev libgtk2.0-dev libxxf86dga-dev libgconf2-dev libx11-dev libasound2-dev python-rsvg libxext-dev gnome-common python-telepathy libxau-dev libxft-dev libxcursor-dev libfs-dev libtool libxi-dev python-dateutil libdmx-dev python-hippocanvas libxtst-dev metacity libdmx1 libxxf86vm-dev libxp-dev icon-slicer xserver-xephyr libxinerama-dev libxp6 libxkbfile-dev libxrender-dev libxvmc-dev icon-naming-utils libxrandr-dev python-gtksourceview2 libsm-dev telepathy-gabble pkg-config
Cut trace. Installed without reported error.
But the following "Suggested packages" were also called for.
autoconf2.13 autoconf-archive gnu-standards autoconf-doc dh-make docbook-xsl-doc-html docbook-xsl-doc-pdf docbook-xsl-doc-text docbook-xsl-doc libsaxon-java libxalan2-java libxslthl-java docbook-xsl-saxon fop xalan dbtoepub gettext-doc git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb libasound2-doc libcairo2-doc libglib2.0-doc libgtk2.0-doc libtool-doc libpango1.0-doc automaken gfortran fortran95-compiler gcj gnome-control-center gnome-themes libmail-box-perl python-cjson-dbg devhelp libgtksourceview2.0-dev
Then, rightly or wrongly, I set about adding most of the suggested packages. A few packages I recognised that I did not need, but 90% of the suggested packages I installed. There were some errors reported, but I felt it would be ok to omit packages that reported an error, on the basis that the package would be asked for later, if actually required.
During the process I did try
iain@wheezy-box:~$ sweet upgrade
and
iain@wheezy-box:~$ sweet dextrose/sugar:emulator
The common error message was
- ImportError: No module named hippo
iain@wheezy-box:~$ sweets upgrade -- Scan ftp://download.sugarlabs.org/sweets/sweets for updates -- No need in upgrading -- sweets launcher was installed to /home/iain/.local/bin -- sweets-index service was installed to /home/iain/.local/share/dbus-1/services
iain@wheezy-box:~$ sweets -R dextrose/sugar:emulator [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: 51: /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: [[: not found /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: 109: /home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar: [[: not found ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory E: [pulseaudio] pid.c: Daemon already running. E: [pulseaudio] main.c: pa_pid_file_create() failed. Traceback (most recent call last): File "/home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar-session", line 304, in <module> main() File "/home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/bin/sugar-session", line 247, in main from jarabe.desktop import homewindow File "/home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/src/jarabe/desktop/homewindow.py", line 26, in <module> from jarabe.desktop.meshbox import MeshBox File "/home/iain/.cache/0install.net/implementations/sha1new=c19654b00070887627e457daaaaaafbdeafb380a/.sweets/local/src/jarabe/desktop/meshbox.py", line 24, in <module> import hippo ImportError: No module named hippo Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':30'.
This did produce xephyr window for 5 seconds.
iain@wheezy-box:~$ sweets -D sdk/sugar:emulator -- Solve sdk/sugar-artwork for building -- Solve sdk/sugar-base for building -- Solve sdk/sugar-toolkit for building -- INFO (PackageKit) PackageKit dbus service found -- INFO (root) Scheduling new task: quitter -- INFO (root) Task 'quitter' stopping and waiting for '(<Blocker:Resolve PackageKit names>,)' -- INFO (root) Running set([Task(quitter)]) due to triggering of 'Resolve PackageKit names' -- Solve sdk/sugar-datastore for building -- Solve sdk/telepathy-mission-control for building -- INFO (root) Scheduling new task: quitter -- INFO (root) Running quitter -- INFO (root) Task 'quitter' stopping and waiting for '(<Blocker:Resolve PackageKit names>,)' -- INFO (root) Running set([Task(quitter)]) due to triggering of 'Resolve PackageKit names' -- Solve sdk/sugar for building -- Install libdbus-glib-1-dev libtelepathy-glib-dev -- INFO (PackageKit) Obtain authentication for org.freedesktop.packagekit.package-install -- org.freedesktop.DBus.Error.InvalidArgs: Type of message, `(as)', does not match expected type `(bas)' -- Use -DD argument for full debuging output and tracebacks
Install further packages called for.
iain@wheezy-box:~$ sudo apt-get install libdbus-glib-1-dev libtelepathy-glib-dev [sudo] password for iain: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgail-common libatspi1.0-0 at-spi libxalan2-java-gcj Use 'apt-get autoremove' to remove them. Suggested packages: libtelepathy-glib-doc The following NEW packages will be installed: libdbus-glib-1-dev libtelepathy-glib-dev 0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded. 97 not fully installed or removed. Need to get 1,355 kB of archives. After this operation, 5,926 kB of additional disk space will be used.
Cut trace. Installed without reported error.
This is an example of another install instruction being given:
iain@wheezy-box:~$ sweets dextrose/sugar:emulator -- Solve dextrose/sugar-artwork for building -- Install python-rsvg python-wnck libcairo2-dev libcairo2 libdrm2 -- org.freedesktop.DBus.Error.InvalidArgs: Type of message, `(as)', does not match expected type `(bas)' -- Use -D argument for debug info, -DD for full debuging output and tracebacks
iain@wheezy-box:~$ sudo apt-get install python-rsvg python-wnck libcairo2-dev libcairo2 libdrm2 [sudo] password for iain: Reading package lists... Done Building dependency tree Reading state information... Done libcairo2 is already the newest version. libcairo2 set to manually installed. libcairo2-dev is already the newest version. python-rsvg is already the newest version. python-wnck is already the newest version. libdrm2 is already the newest version. libdrm2 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded. iain@wheezy-box:~$
"28 not upgraded" - not fully resolved.
iain@wheezy-box:~$ sweets -DD --logfile=27 dextrose/sugar:emulator -- Solve dextrose/sugar-artwork for building -- Install python-rsvg python-wnck libcairo2-dev libcairo2 libdrm2 -- org.freedesktop.DBus.Error.InvalidArgs: Type of message, `(as)', does not match expected type `(bas)' Traceback (most recent call last): File "/home/iain/.local/share/sweets/sweets-1.0.5/sweets", line 397, in <module> globals()['cmd_' + cmd]() File "/home/iain/.local/share/sweets/sweets-1.0.5/sweets", line 65, in cmd_launch injector.launch(config.requirements, args) File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/injector.py", line 162, in launch solution = make(req) File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/injector.py", line 130, in make packagekit.install(to_install.values()) File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/packagekit.py", line 120, in install transaction.install(chunk) File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/packagekit.py", line 164, in install ('InstallPackages', True, names), File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/packagekit.py", line 289, in _auth_wrapper return method(*args) File "/home/iain/.local/share/sweets/sweets-1.0.5/zerosugar/local/packagekit.py", line 183, in _compat_call return dbus_method(*args) File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__ **keywords) File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in call_blocking message, timeout) DBusException: org.freedesktop.DBus.Error.InvalidArgs: Type of message, `(as)', does not match expected type `(bas)'
The logfile: ~/27 reads, near end, line 862:
-- DEBUG (PackageKit) Ask PackageKit to install ['python-rsvg;2.32.0-4+b2;i386;testing', 'python-wnck;2.32.0-4+b2;i386;testing', 'libcairo2-dev;1.10.2-6.2;i386;testing', 'libcairo2;1.10.2-6.2;i386;testing', 'libdrm2;2.4.29-1;i386;testing'] packages -- INFO (PackageKit) Obtain authentication for org.freedesktop.packagekit.package-install
At this point the following commands would typically open an emulator window for a few seconds before it would collapse.
iain@wheezy-box:~$ sweets -S dextrose/sugar:emulator
iain@wheezy-box:~$ sweets -S sdk/sugar:emulator
A typical trace:
iain@wheezy-box:~$ sweets -R sdk/sugar:emulator [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! ls: cannot access /usr/lib*/xulrunner-1.*: No such file or directory Traceback (most recent call last): File "/home/iain/.cache/0install.net/implementations/sha1new=e6ac62730d13a301adf8942e05c4af7c1542fd79/.sweets/local/bin/sugar-session", line 288, in <module> main() File "/home/iain/.cache/0install.net/implementations/sha1new=e6ac62730d13a301adf8942e05c4af7c1542fd79/.sweets/local/bin/sugar-session", line 227, in main from jarabe.desktop import homewindow File "/home/iain/.cache/0install.net/implementations/sha1new=e6ac62730d13a301adf8942e05c4af7c1542fd79/.sweets/local/src/jarabe/desktop/homewindow.py", line 25, in <module> from jarabe.desktop.meshbox import MeshBox File "/home/iain/.cache/0install.net/implementations/sha1new=e6ac62730d13a301adf8942e05c4af7c1542fd79/.sweets/local/src/jarabe/desktop/meshbox.py", line 24, in <module> import hippo ImportError: No module named hippo Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':30'.
Produced a 3 second window which would collapse.
Bug Fix
At this point alsroot helps with bug-fix see:
Platform_Team/Guide/Sugar_via_Sweets#Debian Due to the 23644010 bug in python-hippocanvas package, you need to be stuck to python2.6, e.g., you need to run a command sudo ln -fs python2.6 /usr/bin/python && sudo sed -i '/^default-version/s/python2../python2.6/' /usr/share/python/debian_defaults.
First successful test
iain@wheezy-box:~$ sudo ln -fs python2.6 /usr/bin/python && sudo sed -i '/^default-version/s/python2../python2.6/' /usr/share/python/debian_defaults. iain@wheezy-box:~$ sweets -R dextrose/sugar:emulator -f
We have Xephyr on :30.0 About my computer, Build: Debian GNU/Linux testing (wheezy) Sugar: 0.88.1
All four views look ok, except there are no "neighbour avatars" in F1 neighbourhood view.
I copy Browse-129.xo and surf-115.xo from USB flashdrive to Journal.
Right click Browse icon in Journal, select start, flashing icon, reports fails to start.
Right click Surf icon in Journal, select start, flashing icon, reports fails to start.
Right click my avatar, My Settings, adjust keyboard, Frame. All ok. Cursor activates frame. F5 and F6 work as expected.
Software updates: Offers 11 updates. This includes Activities not yet installed. Install all. 7.5 MB - no error reported.
No atavars except me in F1. Re-tried later and confirmed.
Start Chat activity. Ballon appears in F1.
Copy Moon.xo from USB flashdrive to Journal. Moon opens, rename activity ok
- There is an intermittent glitch that, while renaming an activity, the "Activity toolbar" will collapse on spacebar or hyphen keystroke, the dialogue box disappears, and my text is lost.
Click Moon, flashing icon and starts, rename activity ok and closes.
Start Firefox-6.xo - it is in offline mode by default. Switch online. Will browse. Close Firefox with non sugarised "Close x". Firefox icon in frame, still flashing, indicating, failed to start. Working Activities
Click Image Viewer, flashing icon and starts, rename activity ok and closes.
Click Turtle Art, flashing icon and starts, rename activity ok and closes.
Click Calculate, flashing icon and starts, rename activity ok and closes.
Click Read Etexts, flashing icon and starts. Able to search for and download and read a Book. Rename activity ok and closes.
Using Host machine download Sugar_file_manager-2.xo. Copy and paste to Journal, Opens, works as expected. Creates /home/iain/Journal on Host machine. /home/iain/Journal is an empty directory not linked to "Journal Activity in Sugar"
Download JAMedit-1.xo. Opens and works as expected.
Having run through the test of all Activities in dextrose and sdk. Surf will now start, browse successfully, rename Activity and closes.
Click Speak - pulsing icon, reports fails to start.
Click Log, pulsing icon. Reports fails to start.
Click Etoys, pulsing icon. Reports fails to start.
Click Memorize, pulsing icon. Reports fails to start.
Click Pippy, pulsing icon. Opens, can test a few items, but Pippy generally reports ImportError: no module named pygame.
Click Jukebox, pulsing icon. Reports fails to start.
Download Write_77.xo. Pulsing icon but reports fails to start. In F3 Home view, all working Activities show in colour, all non-working activities are grey. In the Frame, all attached partitions show, but will not open. USB flashdrive shows distinctively and opens.
Second successful test
iain@wheezy-box:~$ sweets -R sdk/sugar:emulator -f
F1 view present. About my computer
- Build: Debian GNU/Linux testing wheezy
- Sugar: 0.94.1
Test Terminal Activity with some simple commands eg:
iain@wheezy-box:~$ python -V Python 2.6.7
Click Log, pulsing icon, starts, is able to capture a log and save it.
Implode tested - choose sharing view - no sign of Implode in F1
Chat opens start a chat in single view, I see no chat baloon in F1
Open Chat to multiple - no ballon seen. Retry later, confirm no "shared" activities show in F1
Turtle art starts test ok
Moon starts and test ok
As above non-working activities are: Speak, Etoys,Memorize, Pippy, Jukebox, Physics, Surf-115 fails to start. Confirmed
In both cases the host environment works fine and I saw no evidence of Sugar compromising the host in any way. It is possible to run and test by children, for some time, this setup: 3 desktops, Openbox is set to run most-used programs, and change desktop by keybinding, GCompris on desktop2 and Sugar on desktop3.