Montag, 19. Februar 2007
Gentoo auf TabletPC mit xvkbd beim kdm-login
Endlich habe ich es geschafft, dass vor dem Login auf dem TabletPC xvkbd angezeigt und nach dem Login auch wieder beendet wird.
Dazu muss zwei Dateien folgendermassen abändern:
und damit das xvkbd auch wieder beendet wird:
Gentoo auf TabletPC mit xvkbd beim ... Geschrieben von Christoph Hermann
in Computer um
11:19
Kommentar (1) Trackbacks (0)
Dazu muss zwei Dateien folgendermassen abändern:
/usr/kde/3.5/share/config/kdm/Xsetup
#! /bin/sh
# Xsetup - run as root before the login dialog appears
#xconsole -geometry 480x130-0-0 -notify -verbose -fn fixed -exitOnFail -file /dev/xconsole &
# /usr/X11R6/bin/xvkbd -compact -modal -always-on-top &
xvkbd=/usr/bin/xvkbd
#
# start xvkbd in xdm do be able to input username and password
#
if test -x $xvkbd ; then
# Bug 149957
( declare -i t=100
while test $((t--)) -gt 0 ; do
case "$(xwininfo -root -children)" in
*greet*|xlogin) break ;;
esac
sleep 0.1
done
HOME=/root exec $xvkbd -compact -geometry -0-0 -xdm
) & echo $! > /var/run/xvkbd.pid
fi
und damit das xvkbd auch wieder beendet wird:
/usr/kde/3.5/share/config/kdm/Xstartup
#! /bin/sh
# Xstartup - run as root before session starts
# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output. This way a random user can invoke xterm -C without
# causing serious grief; still, it can cause havoc, so xconsole is started
# by Xsetup usually.
# This is not required if you use PAM with the pam_console module.
#
#chown $USER /dev/console
#exec sessreg -a -l $DISPLAY -h "`echo $DISPLAY | cut -d: -f1`" $USER
# kill xvkbd if running
XVKBDPID=$(less /var/run/xvkbd.pid)
TESTPID=$(ps -p $XVKBDPID | tail -n1 | awk '{print $1}')
if [ "$TESTPID" -eq "$XVKBDPID" ] ; then
HOME=/root exec /bin/kill $XVKBDPID
fi
# NOTE: The session is aborted if the last command returns non-zero.
Kommentar (1) Trackbacks (0)