HowTos/OPIE and GPE

From OpenZaurus

copied over from the old howto, needs formatting and an update. The German version is in better shape right now.

OPIE & GPE at the same time

I (author unknown) started with the Opie OZ image. You can likely start with the GPE image, but these instructions start from the Opie image.

Flash your Zaurus with Opie. I suggest using a kernel which gives you the maximum amount of memory. I used the 64-0 image on my collie.

Move your root filesystem to a linux formatted SD card (I use ext2) or use an loop-mounted altboot image. You may not have to do this, but if you don’t you’ll likely have to install the GPE packages to your SD card or CF card and ipkg-link them.

Change Opie to start on Virtual Terminal 3. Edit your /etc/init.d/opie script. Change all instances of “-terminal 2″ to “-terminal 3″. I found two of these.

Restart Opie. Opie will now be on Virtual Terminal 3.

Set up all of the OZ feeds in your /etc/ipkg.conf. Here are all of the ones I have for my Collie:

src/gz base http://feeds.openzaurus.org/3.5.4.1/feed/base
src/gz x11 http://feeds.openzaurus.org/3.5.4.1/feed/x11
src/gz x11_prev http://feeds.openzaurus.org/3.5.4/feed/x11
src/gz machine_prev http://feeds.openzaurus.org/3.5.4/feed/machine/collie
src/gz machine-upgrades http://feeds.openzaurus.org/3.5.4.1/feed/upgrades/machine/collie
src/gz machine-upgrades_prev http://feeds.openzaurus.org/3.5.4/feed/upgrades/machine/collie
src/gz opie http://feeds.openzaurus.org/3.5.4.1/feed/opie
src/gz upgrades http://feeds.openzaurus.org/3.5.4.1/feed/upgrades

Update your package lists and install the GPE packages

ipkg update;ipkg install gpe-task-base gpe-base-depends

After a reboot, GPE should be running on "chvt 2" and Opie on "chvt 3"

There are also a few other things I’ve added to make GPE more usable. The first allows you to switch to Opie easily from GPE.

Put this in “/gotoopie.sh”.

#!/bin/sh
chvt 3

Then put this in /usr/share/applications/goto-opie.desktop:

[Desktop Entry]
Name=Goto Opie
Comment=Switch to Opie
Exec=/gotoopie.sh
Terminal=0
Type=Application
Icon=/opt/QtPalmtop/pics/logo/opielogo.png
Categories=Utility;GPE
StartupNotify=False

Go to the Utilities group and you should now have “Goto Opie” icon.

I also added a “Suspend” icon since I couldn’t find one in GPE. Put this in “/suspend.sh”:

#!/bin/sh
apm -s

This may cause a C series Zaurus to not wake up after suspending. If this happens, try this instead:

#!/bin/sh
echo 1 > /proc/sys/pm/suspend

And put this in “/usr/share/applications/suspend.desktop”:

[Desktop Entry]
Name=Suspend
Comment=Suspend
Exec=/suspend.sh
Terminal=0
Type=Application
Icon=gpe-config-sleep.png
Categories=Utility;GPE
StartupNotify=False


You may need to logout of GPE and log back in for the above icons to show up.