Wed Jan 23, 2013 4:41 am
Wed Jan 23, 2013 3:49 pm
Wed Jan 23, 2013 4:11 pm
#!/bin/sh
# vncssh
# adapted from x11vnc_ssh script at http://www.karlrunge.com/x11vnc/
# usage: vncssh <host>:<xdisplay>
# e.g.: vncssh snoopy.peanuts.com:0
# (user@host:N or user@host also work)
host=`echo $1 | awk -F: '{print $1}'`
disp=`echo $1 | awk -F: '{print $2}'`
if [ "x$disp" = "x" ]; then disp=0; fi
cmd="/usr/local/bin/vncserv"
enc="copyrect tight zrle hextile zlib corre rre raw"
ssh -f -t -L 5900:localhost:5900 $host "$cmd"
sleep 6
vncviewer -encodings "$enc" localhost:$disp
exit 0
Wed Jan 23, 2013 6:37 pm
Xvfb
#!/usr/bin/env bash
# vncserv
if [[ $DISPLAY ]]; then
# #gdm3 in squeeze
# authfile=$(ps ax |grep auth | awk '/gdm3/ { print $13 }')
# #lightdm in wheezy
authfile=$(ps ax |grep auth | awk '/lightdm/ { print $8 }')
x11vnc -auth $authfile -localhost -display :0
else
x11vnc -create -env FD_PROG=/usr/bin/xfce4-session \
-env X11VNC_FINDDISPLAY_ALWAYS_FAILS=1 \
-env X11VNC_CREATE_GEOM=${1:-1024x768x16} \
-gone 'killall Xvfb' \
-bg -nopw
fi
exit 0
vncssh user@remote-host
Thu Jan 24, 2013 5:47 am
Fri Jan 25, 2013 10:58 am
#!/usr/bin/env bash
# vncserv
# #gdm3 in squeeze
# authfile=$(ps ax |grep auth | awk '/gdm3/ { print $13 }')
# #lightdm in wheezy
authfile=$(ps ax |grep auth | awk '/lightdm/ { print $8 }')
# Test for authfile instead of DISPLAY, because DISPLAY will be null
# when lightdm is running and no one is logged in.
if [[ -n $authfile ]] ; then
x11vnc -auth $authfile -localhost -display :0
else
x11vnc -create -env FD_PROG=/usr/bin/xfce4-session \
-env X11VNC_FINDDISPLAY_ALWAYS_FAILS=1 \
-env X11VNC_CREATE_GEOM=${1:-1024x768x16} \
-gone 'killall Xvfb' \
-bg -nopw
fi
exit 0
Sat Feb 02, 2013 1:36 pm
Sun Feb 03, 2013 1:33 pm
nadir wrote:btw: I still couldn't figure out why for me xtightvnc offers a gui-session remote (however i do it does not matter, starting xtightvncserver will give me a gui if i vnc-connect).
Sun Feb 03, 2013 2:40 pm
Tue Feb 05, 2013 3:22 am
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
<skip-slash>etc/X11/Xsession