| The Following 2 Users Say Thank You to qole For This Useful Post: | ||
#!/bin/sh
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
exec $0 $*
EOF
exit
fi
exec /home/user/MyDocs/bin/debian hilda $*
| The Following User Says Thank You to debernardis For This Useful Post: | ||
apt-get install xserver-xephyr apt-get install wmctrl
) with something like the following:#!/bin/sh #--------------------------------------- #Start the Xephyr server. Don't use host-cursor! There is none! export DISPLAY=:0 Xephyr :1 -screen 800x480x16 -dpi 96 -ac & #--------------------------------------- #Make Xephyr full screen and bring it to the front. wmctrl -r Xephyr -b toggle,fullscreen wmctrl -a Xephyr #--------------------------------------- #Make a bunch of important files writable #by the user. Maybe not needed in all setups. chown user /home/user/.ICEauthority chgrp users /home/user/.ICEauthority chown user /home/user/.cache chgrp users /home/user/.cache chown user /home/user/.dbus/session-bus chgrp users /home/user/.dbus/session-bus #--------------------------------------- #run xfce4 as user. su user -c 'export DISPLAY=:1; xfce4-session' &
sudo debian xephce4
