summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/x11vnc/XX_x11vnc.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-01-11 13:51:53 +0100
committerDirk von Suchodoletz2009-01-11 13:51:53 +0100
commit47ad9da0db3e502447b7440417556821814f1483 (patch)
tree57399cedef3e865c7fd1db88de27de87bd33ffb1 /os-plugins/plugins/x11vnc/XX_x11vnc.sh
parentFixes to x11vnc plugin, updated AUTHORS list. (diff)
downloadcore-47ad9da0db3e502447b7440417556821814f1483.tar.gz
core-47ad9da0db3e502447b7440417556821814f1483.tar.xz
core-47ad9da0db3e502447b7440417556821814f1483.zip
Some fixes to x11vnc plugin (x11mod).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2462 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/x11vnc/XX_x11vnc.sh')
-rw-r--r--os-plugins/plugins/x11vnc/XX_x11vnc.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/os-plugins/plugins/x11vnc/XX_x11vnc.sh b/os-plugins/plugins/x11vnc/XX_x11vnc.sh
index 2c58665e..75346cd8 100644
--- a/os-plugins/plugins/x11vnc/XX_x11vnc.sh
+++ b/os-plugins/plugins/x11vnc/XX_x11vnc.sh
@@ -22,12 +22,19 @@ addvnc2xorg () {
-e '/\"Module\"/a\\ \ Load "vnc"' \
-e '/n \"Device\"/a\\ \ Option "usevnc" "yes"' \
-e '/n \"Device\"/a\\ \ Option "rfbauth" "/etc/X11/vncpasswd"' \
- -i /mnt/etc/X11/xorg.conf
- # password setting
- echo "$x11vnc_pass" > /mnt/etc/X11/vncpasswd
- echo -e "__BEGIN_VIEWONLY__\n$x11vnc_viewonlypass" >> /mnt/etc/X11/vncpasswd
- # multiuser handling
- sed -i "s/,/\n/" /mnt/etc/X11/vncpasswd
+ -e '/e \"Generic Mouse\"/a\\ \ InputDevice "VNC Keyboard" "ExtraKeyboard"' \
+ -e '/e \"Generic Mouse\"/a\\ \ InputDevice "VNC Mouse" "ExtraPointer"' \
+ -e '/\"CorePointer\"/ {
+a\
+EndSection\
+Section "InputDevice"\
+ Identifier "VNC Keyboard"\
+ Driver "rfbkeyb"\
+EndSection\
+Section "InputDevice"\
+ Identifier "VNC Mouse"\
+ Driver "rfbmouse"
+}' -i /mnt/etc/X11/xorg.conf
}
# main script
@@ -116,6 +123,9 @@ if [ -e /initramfs/plugin-conf/x11vnc.conf ]; then
# x11mod offers access to the running X server via module
elif [ "$x11vnc_mode" = "x11mod" ]; then
+ # password setting (use stage4 environment)
+ echo -e "$x11vnc_pass\n$x11vnc_viewonlypass" | chroot /mnt vncpasswd -f \
+ > /mnt/etc/X11/vncpasswd
( waitfor /mnt/etc/X11/xorg.conf 10000; addvnc2xorg ) &
fi
fi