Wednesday, July 11, 2007

X and OPIE - the saga continues

I decided that the proper way to make X work along side with OPIE is to follow the HowTos/OPIE and GPE.
So after changing -terminal 2 to -terminal 3 in /etc/init.d/opie

I first installed gpe-dm thinking (wrongly) that this will solve the problem,

# ipkg install -d loop0 gpe-dm
# ipkg-link -d loop0 gpe-dm

then ipkg install again to fix the errors. gpe-dm started X which I had to stop from command line by /etc/init.d/gpe-dm stop

I installed gpe-task & gpe-base-depends
# ipkg install -d loop0 gpe-task-base gpe-base-depends
# ipkg-link add bl ; ipkg-link add gpe-base-depends ; ipkg-link add xcursor-transparent-theme ; ipkg-link add detect-stylus ; ipkg-link add esd ; ipkg-link add gpe-autostarter ; ipkg-link add gpe-conf ; ipkg-link add gpe-confd ; ipkg-link add gpe-login ; ipkg-link add gpe-screenshot ; ipkg-link add gpe-soundserver ; ipkg-link add gpe-task-base ; ipkg-link add gpe-theme-industrial ; ipkg-link add gtk-engine-industrial ; ipkg-link add gtk-engine-mist ; ipkg-link add gtk2-theme-angelistic ; ipkg-link add hotplug-dbus ; ipkg-link add ipaq-sleep ; ipkg-link add libfontconfig-utils ; ipkg-link add libgtkstylus ; ipkg-link add libxsettings0 ; ipkg-link add libxss1 ; ipkg-link add matchbox-themes-gtk ; ipkg-link add rxvt-unicode ; ipkg-link add startup-monitor ; ipkg-link add suspend-desktop ; ipkg-link add teleport ; ipkg-link add ttf-bitstream-vera ; ipkg-link add xst
then ipkg install again to fix the errors.

Now reboot, gpe and opie will run after reboot...
Ok, now there is some kind of a problem with fluxbox, so I changed the x-window-session symlink to point to the matchbox-session,
# ln -s /usr/bin/matchbox-session /usr/bin/x-window-manager
Now everything runs fine (but with the matchbox windowmanager).

To disable the the login screen, set AUTOLOGIN to true in /etc/sysconfig/gpelogin

After fixing ~/.profile (removing the exec command from .profile and fixing passwd - see the following post) and linking x-window-manager,
# ln -s /usr/bin/matchbox-session /usr/bin/x-window-manager
fluxbox starts ok.

To prevent from GPE to start on boot remove it from the boot sequence,
# rm /etc/rc5.d/S99gpe-dm

No comments:

Post a Comment