View Single Post
juandp77's Avatar
Posts: 203 | Thanked: 201 times | Joined on Jun 2010 @ Ecuador
#192
Originally Posted by stalker View Post
Juandp77 i tried ubuntu, it works flawless, keyboard works perfect/behaves like on maemo OS.., but i have an issue on fedora keyboard, up down, left and right, function didnt work on fedora, how do i fix them? Thanks mate
I tried on fedora and works flawless thanks

@anthonie, sorry for not make me understand lol

maybe if I provied instructions you could understand better

so what I want to do basically its to insted of using the script startubuntu to start the desktop environment, use xephwm5

so please make a new script
Code:
cd ubuntu
touch ubuntuxephwm5
chmod +x ubuntuxephwm5
nano ubuntuxephwm5
now copy this

Code:
#!/bin/sh

xephwm5
ok so now edit the ubuntu script

Code:
nano ubuntu
at the end change this

Code:
$SCRIPTDIR/chrootubuntu $SCRIPTDIR/startubuntu
to this

Code:
$SCRIPTDIR/chrootubuntu $SCRIPTDIR/ubuntuxephwm5
now chroot into ubuntu and change this parameters
Code:
nano /usr/bin/xephwm5
Code:
#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
WMNAME="$1" ; WMEXEC="$2"
[ "x$WMNAME" != x ] ||  WMNAME="Xephyr"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde2"
##################################
export DISPLAY=:0
export TSLIB_TSDEVICE=/dev/input/event3
#export TSLIB_CALIBFILE=/etc/pointercal
export GTK_MODULES=libgtkstylus.so
zenity --display=:0 --info --text="Welcome to Ubuntu LXDE. This window is needed to gain keyboard focus in LXDE. Click OK." &
/usr/bin/Xephyr :2 -screen 800x480 -br -ac &
while [ "x$PARWIN" = "x" ] ; do
  # wait for Xephyr window to appear
  export PARWIN=`wmctrl -l | grep -i $WMNAME | awk '{print $1}'`
  echo "($PARWIN)"
done
DISPLAY=:2 ; habak -mf /usr/share/fonts/truetype/DroidSans-Bold.ttf \
     -ht 'Ctrl-back to return to dashboard.'
DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Ubuntu'
wmctrl -i -r $PARWIN -b toggle,fullscreen
while [ "x$TWOWIN" = "x" ] ; do
  # wait for Zenity dialog to pop up...
  export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
done
#echo window id: $TWOWIN
wmctrl -i -a $TWOWIN

let me know if it work

Last edited by juandp77; 2010-12-09 at 16:44.