Kuku/Sugar Install Notes

From OLPC
Jump to: navigation, search

These are some notes on the steps taken to do an install of Fedora 7, and sugar on a dell machine that was connected to the internet via a home router.

Install F7

Downloaded the minimal cd installer at

   ftp://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/images/boot.iso

as listed at

http://docs.fedoraproject.org/install-guide/f7/en_US/sn-which-files.html

Burned the .iso file onto a cd using macs diskutility (drag the image into the diskutility bar on the left, highlight it, then choose burn to disk from one of the dropdown menus).

Inserted the cd and rebooted. Clicked through the menu as outlined at http://docs.fedoraproject.org/fedora-install-guide-en/fc5/ch-other-install-methods.html . Used

Web site name: fedora.mirror.iweb.ca
Fedora directory: /releases/7/Fedora/i386/os/

Installed with default partition layout in remaining space. (When trying to resize the windows partition I messed up the PBR of /dev/sda2 so Windows cannot boot.) Added /dev/sda2 to the grub loader. Instarred Office and Productivity, Software Development and Web Server 'packages' by checking boxes on the menu.

Once installation complete, rebooted, only allowed ssh with firewall settings. Then updated packages and rebooted.

Install Sugar

Followed instructions on Sugar_on_Fedora_7 - al went smoothly.

Made directory ~/olpc in my user account. Followed instructions on Sugar_with_sugar-jhbuild.

Got error message associated with penguinTV:

*** Checking out penguintv *** [71/74]

svn checkout https://svn.sourceforge.net/svnroot/penguintv/trunk penguintv
svn: PROPFIND request failed on '/svnroot/penguintv/trunk'
svn: PROPFIND of '/svnroot/penguintv/trunk': Could not resolve hostname `svn.sourceforge.net': Host not found (https://svn.sourceforge.net)
*** error during stage checkout of penguintv: ########## Error running svn checkout https://svn.sourceforge.net/svnroot/penguintv/trunk penguintv *** [71/74]


  [1] rerun stage checkout
  [2] ignore error and continue to done
  [3] give up on module
  [4] start shell
  [5] go to stage force_checkout
choice: 1
*** Checking out penguintv *** [71/74]

svn checkout https://svn.sourceforge.net/svnroot/penguintv/trunk penguintv
svn: PROPFIND request failed on '/svnroot/penguintv/trunk'
svn: PROPFIND of '/svnroot/penguintv/trunk': Could not resolve hostname `svn.sourceforge.net': Host not found (https://svn.sourceforge.net)
*** error during stage checkout of penguintv: ########## Error running svn checkout https://svn.sourceforge.net/svnroot/penguintv/trunk penguintv *** [71/74]


  [1] rerun stage checkout
  [2] ignore error and continue to done
  [3] give up on module
  [4] start shell
  [5] go to stage force_checkout
choice: 2

Retried after this post. In the same directory as jhbuild, did:

git pull
./sugar-jhbuild update penguintv

which worked. Did

 
./sugar-jhbuild build

which worked.

Install PyGame

PyGame is not included in sugar-jhbuild, so I had to do

yum install pygame

As detailed in this email, I needed to set my PYTHONPATH variable inside the sugar shell to point to my pygame installation. However, this caused conflicts between sugar's python and my F7 python. So, as suggested, I did a separate checkout of sugar-jhbuild, and built it without python.

cd ~/olpc
git-clone git://dev.laptop.org/sugar-jhbuild sugar-jhbuild-F7-python
cd sugar-jhbuild-F7-python
git pull
./sugar-jhbuild update

Then I edited my ~/.olpc.jhbuildrc file and added the line

skip = ['python']

Seeing the module list gave me

./sugar-jhbuild list
autoconf
meta-bootstrap
gnome-common
libxml2
libxslt
gtk-doc
cairo
glib
pango
atk
gtk+
artwork
libmatchbox
matchbox-window-manager
pygobject
pycairo
libglade
pygtk
hippo-canvas
libcroco
librsvg
libwnck
gnome-python-desktop
loudmouth
dbus
dbus-glib
telepathy-glib
telepathy-gabble
avahi
telepathy-salut
dbus-python
telepathy-python
libjingle
gstreamer
liboil
gst-plugins-base
gst-plugins-farsight
gst-plugins-good
farsight
libtelepathy
gst-ffmpeg
telepathy-stream-engine
vte
shared-mime-info
gst-python
sugar
presence-service
wv
libabiword
pyabiword
libabiword-plugins
squeak
poppler
evince-olpc
sqlalchemy
xapian-core
xapian-bindings
pysqlite
pyxapian
datastore
xulrunner
hulahop
meta-sugar-platform
etoys
xbook
web-activity
chat-activity
block-party-activity
write
penguintv
journal-activity
connect-activity
meta-sugar-activities 

which has some python stuff in it. Then I built with

./sugar-jhbuild build


Emulation with qemu

Installed qemu with

yum install qemu

Got the the latest image, then following instructions on Emulating_the_XO/Quick_Start/Linux,

cd ~/olpc
mkdir emulation
cd emulation
bzcat olpc-redhat-stream-development-devel_ext3.img.bz2> laptop.img
export PORT=2221
qemu -soundhw es1370 -serial `tty`  -redir tcp:$PORT::22 -hda laptop.img

Did not do the multikey instruction, but reset root and olpc passwords. Once sugar was up, as root in the terminal

cd /usr/share/activities
curl -C - -O http://dev.laptop.org/~lucks/kuku.xo
unzip kuku.xo
killall X

Kuku icon then showed up in the activity bar, although the whole thing was so slow, could not get anything to run. Or activites can be put in ~/olpc/Activities

su olpc
cd ~
mkdir Activities
cd !$
wget http://dev.laptop.org/~lucks/kuku.xo
unzip kuku.xo
killall X

To be able to run activities from the command line, do

su olpc
cd ~
grep export /usr/bin/sugar > ~/env
source ~/env
sugar-activity Kuku

Adding kqemu acceleration

From http://atrpms.net/dist/f7/kqemu, downloaded

kqemu-1.3.0-2.fc7.i386.rpm
kqemu-kmdl-2.6.21-1.3228.fc7-1.3.0-2.fc7.i686.rpm

based on my kernel version listed in /boot.