cd ubuntu touch ubuntuxephwm5 chmod +x ubuntuxephwm5 nano ubuntuxephwm5
#!/bin/sh xephwm5
nano ubuntu
$SCRIPTDIR/chrootubuntu $SCRIPTDIR/startubuntu
$SCRIPTDIR/chrootubuntu $SCRIPTDIR/ubuntuxephwm5
nano /usr/bin/xephwm5
#!/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

| The Following User Says Thank You to juandp77 For This Useful Post: | ||
sudo cp <path to the icon> /usr/share/hicolor/scalable
| The Following User Says Thank You to juandp77 For This Useful Post: | ||
sudo cp <path to the icon> /usr/share/hicolor/scalable
[Desktop Entry] Encoding=UTF-8 Name=Ubuntu LXDE GenericName=Ubuntu LXDE Exec=/usr/bin/ubuntu-lxde Icon=/usr/share/icons/hicolor/scalable/ubuntu.png X-Osso-Type=application/x-executable X-HildonDesk-ShowInToolbar=true Type=Application StartupNotify=true
[Desktop Entry] Encoding=UTF-8 Name=Ubuntu LXDE GenericName=Ubuntu LXDE Exec=/usr/bin/ubuntu-lxde Icon=/usr/share/icons/hicolor/scalable/ubuntu.png X-Osso-Type=application/x-executable X-HildonDesk-ShowInToolbar=true Type=Application StartupNotify=true
| The Following User Says Thank You to juandp77 For This Useful Post: | ||
[Desktop Entry] Encoding=UTF-8 Name=Ubuntu LXDE GenericName=Ubuntu LXDE Exec=/usr/bin/ubuntu-lxde Icon=ubuntu X-Osso-Type=application/x-executable X-HildonDesk-ShowInToolbar=true Type=Application StartupNotify=true