Am Dienstag, 12. Dezember 2006 07:15 schrieb Wade Curry:
> Hi,
>
> I've just been playing with vnc for the first time.  I've been
> using xdmcp successfully, and didn't have a lot of motivation to
> switch to anything else.  However, I *was* missing the ability to
> just leave a desktop session, and then connect to it from anywhere
> else on the network (I'm spoiled from heavy use of screen :-)  ).
>
> I've been successful in getting it running, but I have a practical
> beef with it. I'm hoping someone has a clever way to get around the
> fact that you start up the server with a specific geometry, and
> then the client has to display that size screen.
>
> I connect to this session from 2 desktop machines that have
> different resolution screens, and more often from a laptop that has
> a fairly small screen.  Am I stuck with using a teensy window on my
> desktop machines, or else having a display that scrolls on the
> laptop?  The session is already set to use the max resolution of
> the laptop display, and I'd prefer to avoid having to scroll/pan
> the display.
>
> I thought that setting up two servers could possibly help, but
> I have no idea if it's even possible to have them use the same
> session.  The more I think about it, the less likely it seems.
>
> Wade Curry
> syntaxman

Here is the script I use for viewing what's going on my secondary machine, 
it's based on the script by x11vnc's author Karl Runge and requieres x11vnc 
to be installed on the remote machine:


#!/bin/sh
#--------------------------------------------------------------------------------
# usage: rx <host>:<xdisplay>
#  e.g.: rx snoopy.peanuts.com:0

#SCALE='-scale 9/10'
OPTIONS="$SCALE -localhost -norc -notruecolor"
host=`echo $1 | awk -F: '{print $1}'`
disp=`echo $1 | awk -F: '{print $2}'`
if [ "x$disp" = "x" ]; then disp=0; fi

$HOME/.vnc/vnclog -mouse"
cmd="x11vnc -display :$disp -nap -o $HOME/.vnc/vnclog $OPTIONS"

ssh -f -c blowfish -L 5900:localhost:5900 $host "$cmd"
sleep 4

vncviewer localhost:0

#--------------------------------------------------------------------------------


Note your session is encrypted via ssh and can't be hijacked easily. Next you 
can add extra security with pub keys.
What you want however is SCALE - simply uncomment and provide a fraction. 
Works nice here. It's done serverside, too, so you can use any vnc client.
I haven't tried connecting from 2 machines simultaneosly tho. Would require 
some more hacking, I guess.

Dex

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to