Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
8938cda1
Commit
8938cda1
authored
Oct 19, 2008
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync SSVNC changes: fullscreen fixes, local scaling, -chatonly, iso-8859-1/utf8 etc., etc.
parent
73f19d71
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5715 additions
and
1399 deletions
+5715
-1399
vncviewer.sh
...d_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh
+1
-1
ssvnc
x11vnc/misc/enhanced_tightvnc_viewer/bin/ssvnc
+4
-1
ssvnc_cmd
x11vnc/misc/enhanced_tightvnc_viewer/bin/ssvnc_cmd
+3
-1
ss_vncviewer
x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer
+81
-15
ssvnc.tcl
x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
+893
-212
build.unix
x11vnc/misc/enhanced_tightvnc_viewer/build.unix
+15
-4
ssvncviewer.1
x11vnc/misc/enhanced_tightvnc_viewer/man/man1/ssvncviewer.1
+18
-1
_bundle
x11vnc/misc/enhanced_tightvnc_viewer/src/patches/_bundle
+1
-1
tight-vncviewer-full.patch
...ed_tightvnc_viewer/src/patches/tight-vncviewer-full.patch
+4699
-1163
No files found.
x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh
View file @
8938cda1
...
...
@@ -14,7 +14,7 @@ if [ "X$SSVNC_DYLD_LIBRARY_PATH" != "X" ]; then
export
DYLD_LIBRARY_PATH
fi
if
[
"X
$DISPLAY
"
!=
"X"
]
;
then
if
[
"X
$DISPLAY
"
!=
"X"
-a
"X
$DARWIN_COTVNC
"
!=
"X1"
]
;
then
"
$dir
/vncviewer.x11"
"
$@
"
else
args
=
""
...
...
x11vnc/misc/enhanced_tightvnc_viewer/bin/ssvnc
View file @
8938cda1
...
...
@@ -140,7 +140,10 @@ if [ -f "$dir/util/ultraftp.jar" ]; then
export
SSVNC_ULTRA_FTP_JAR
fi
if
[
"X
$WISH
"
=
"Xwish"
]
;
then
if
[
"X
$1
"
=
"X-cmd"
]
;
then
shift
exec
ssvnc_cmd
"
$@
"
elif
[
"X
$WISH
"
=
"Xwish"
]
;
then
exec
ssvnc.tcl
"
$@
"
else
exec
$WISH
$dir
/util/ssvnc.tcl
"
$@
"
...
...
x11vnc/misc/enhanced_tightvnc_viewer/bin/ssvnc_cmd
View file @
8938cda1
...
...
@@ -209,7 +209,7 @@ fi
if
[
"X
$DARWIN_COTVNC
"
!=
"X1"
-a
"X
$VNCVIEWERCMD
"
=
"Xvncviewer"
]
;
then
hstr
=
`
$VNCVIEWERCMD
-h
2>&1 |
head
-5
`
if
echo
"
$hstr
"
|
grep
'
^TightVNC.*version 1\.[23]
'
>
/dev/null
;
then
if
echo
"
$hstr
"
|
grep
'
SSVNC.*TightVNC.*version 1\.3
'
>
/dev/null
;
then
# we need to avoid raw encoding
use_ours
=
1
fi
...
...
@@ -245,6 +245,8 @@ if [ $use_ours = 1 ]; then
# avoid system vncviewer app-defaults
#XFILESEARCHPATH="/tmp/path/nowhere"; export XFILESEARCHPATH
SSVNC_USE_OURS
=
1
;
export
SSVNC_USE_OURS
if
[
"X
$base
"
=
"Xtightvncviewer"
]
;
then
$VNCVIEWERCMD
-encodings
'copyrect tight zrle zlib hextile'
"
$@
"
else
...
...
x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer
View file @
8938cda1
...
...
@@ -229,6 +229,22 @@ do
;;
"-grab") VNCVIEWER_GRAB_SERVER=1; export VNCVIEWER_GRAB_SERVER
;;
"-x11cursor") VNCVIEWER_X11CURSOR=1; export VNCVIEWER_X11CURSOR
;;
"-rawlocal") VNCVIEWER_RAWLOCAL=1; export VNCVIEWER_RAWLOCAL
;;
"-scale") shift; SSVNC_SCALE="$1"; export SSVNC_SCALE
;;
"-ssvnc_encodings") shift; VNCVIEWER_ENCODINGS="$1"; export VNCVIEWER_ENCODINGS
;;
"-rfbversion") shift; VNCVIEWER_RFBVERSION="$1"; export VNCVIEWER_RFBVERSION
;;
"-nobell") VNCVIEWER_NOBELL=1; export VNCVIEWER_NOBELL
;;
"-popupfix") VNCVIEWER_POPUP_FIX=1; export VNCVIEWER_POPUP_FIX
;;
"-realvnc4") VNCVIEWER_IS_REALVNC4=1; export VNCVIEWER_IS_REALVNC4
;;
"-h"*) help; exit 0
;;
"--h"*) help; exit 0
...
...
@@ -273,6 +289,7 @@ if [ "X$reverse" != "X" ]; then
echo "*Warning*: -listen and a single proxy/gateway does not make sense."
sleep 3
fi
SSVNC_LISTEN_ONCE=1; export SSVNC_LISTEN_ONCE
fi
fi
if [ "X$ssh_cmd" = "X" ]; then
...
...
@@ -342,6 +359,9 @@ if [ "X$SSVNC_ULTRA_DSM" != "X" ]; then
use_ssh=""
use_sshssl=""
direct_connect=1
if echo "$SSVNC_ULTRA_DSM" | grep 'noultra:' > /dev/null; then
SSVNC_NO_ULTRA_DSM=1; export SSVNC_NO_ULTRA_DSM
fi
fi
# (possibly) tell the vncviewer to only listen on lo:
...
...
@@ -1448,9 +1468,16 @@ Kecho proxy=$proxy
echo ""
echo "NOTE: Press Ctrl-C to terminate viewer LISTEN mode."
echo ""
echo "$VNCVIEWERCMD" "$@" -listen $N
N2=$N
if [ "X$VNCVIEWER_IS_REALVNC4" = "X1" ]; then
N2=`echo "$N2" | sed -e 's/://g'`
if [ $N2 -le 200 ]; then
N2=`expr $N2 + 5500`
fi
fi
echo "$VNCVIEWERCMD" "$@" -listen $N2
echo ""
$VNCVIEWERCMD "$@" -listen $N
$VNCVIEWERCMD "$@" -listen $N
2
fi
exit $?
...
...
@@ -1536,15 +1563,20 @@ if [ "X$direct_connect" != "X" ]; then
echo ""
echo "Using UltraVNC DSM Plugin key for encryption:"
echo ""
echo " $SSVNC_ULTRA_DSM PORT HOST:PORT"
ustr=`echo "$SSVNC_ULTRA_DSM" | sed -e 's/pw=[^ ]*/pw=******/g'`
echo " $ustr PORT HOST:PORT"
echo ""
elif [ "X$getport" = "X" ]; then
echo ""
echo "Running viewer for direct connection:"
if echo X"$@" | grep chatonly > /dev/null; then
:
else
echo ""
echo "** NOTE: THERE WILL BE NO SSL OR SSH ENCRYPTION **"
echo ""
fi
fi
x=""
if [ "X$SSVNC_NO_ENC_WARN" != "X" ]; then
if [ "X$getport" = "X" ]; then
...
...
@@ -1594,9 +1626,25 @@ if [ "X$direct_connect" != "X" ]; then
if [ "X$reverse" = "X" ]; then
hostdisp="$host:$disp"
if [ "X$SSVNC_ULTRA_DSM" != "X" ]; then
if [ "X$SSVNC_USE_OURS" = "X1" ]; then
hostdisp="exec=$SSVNC_ULTRA_DSM 0 $host:$port"
else
pf=`findfree 5970`
cmd="$SSVNC_ULTRA_DSM -$pf $host:$port"
pf=`expr $pf - 5900`
hostdisp="localhost:$pf"
ustr=`echo "$cmd" | sed -e 's/pw=[^ ]*/pw=******/g'`
echo "Running:"
echo
echo "$ustr &"
echo
$cmd &
dsm_pid=$!
sleep 2
fi
echo "$VNCVIEWERCMD" "$@" "$hostdisp"
fi
hostdisp2=`echo "$hostdisp" | sed -e 's/pw=[^ ]*/pw=******/g'`
echo "$VNCVIEWERCMD" "$@" "$hostdisp2"
trap "final" 0 2 15
echo ""
$VNCVIEWERCMD "$@" "$hostdisp"
...
...
@@ -1614,13 +1662,17 @@ if [ "X$direct_connect" != "X" ]; then
trap "final" 0 2 15
if [ "X$SSVNC_ULTRA_DSM" != "X" ]; then
echo "NOTE: The ultravnc_dsm_helper only runs once. So after the first LISTEN"
echo " ends, you
will have to Press Ctrl-C and restart for a new
connection."
echo " ends, you
may have to Press Ctrl-C and restart for another
connection."
echo ""
SSVNC_LISTEN_ONCE=1; export SSVNC_LISTEN_ONCE
VNCVIEWER_LISTEN_LOCALHOST=1
export VNCVIEWER_LISTEN_LOCALHOST
dport=`expr 5500 + $disp`
cmd="$SSVNC_ULTRA_DSM $dport localhost:$use"
ustr=`echo "$cmd" | sed -e 's/pw=[^ ]*/pw=******/g'`
echo "Running:"
echo
echo "$
cmd
&"
echo "$
ustr
&"
echo
$cmd &
dsm_pid=$!
...
...
@@ -1630,9 +1682,16 @@ if [ "X$direct_connect" != "X" ]; then
disp=`expr $disp - 5500`
fi
fi
echo "$VNCVIEWERCMD" "$@" -listen $disp
disp2=$disp
if [ "X$VNCVIEWER_IS_REALVNC4" = "X1" ]; then
disp2=`echo "$disp2" | sed -e 's/://g'`
if [ $disp2 -le 200 ]; then
disp2=`expr $disp2 + 5500`
fi
fi
echo "$VNCVIEWERCMD" "$@" -listen $disp2
echo ""
$VNCVIEWERCMD "$@" -listen $disp
$VNCVIEWERCMD "$@" -listen $disp
2
fi
exit $?
fi
...
...
@@ -1793,7 +1852,7 @@ if [ "X$stunnel_exec" = "X" ]; then
if [ "X$mycert" != "X" ]; then
sleep 1
echo ""
echo "(
pausing for possible certificate passphrase dialog
)"
echo "(
** pausing for possible certificate passphrase dialog **
)"
echo ""
sleep 4
fi
...
...
@@ -1829,7 +1888,14 @@ else
echo ""
echo "NOTE: Press Ctrl-C to terminate viewer LISTEN mode."
echo ""
echo "$VNCVIEWERCMD" "$@" -listen $N
N2=$N
if [ "X$VNCVIEWER_IS_REALVNC4" = "X1" ]; then
N2=`echo "$N2" | sed -e 's/://g'`
if [ $N2 -le 200 ]; then
N2=`expr $N2 + 5500`
fi
fi
echo "$VNCVIEWERCMD" "$@" -listen $N2
trap "final" 0 2 15
echo ""
if [ "X$proxy" != "X" ]; then
...
...
@@ -1838,7 +1904,7 @@ else
PPROXY_KILLPID=+1; export PPROXY_KILLPID;
$ptmp &
fi
$VNCVIEWERCMD "$@" -listen $N
$VNCVIEWERCMD "$@" -listen $N
2
fi
sleep 1
x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
View file @
8938cda1
This diff is collapsed.
Click to expand it.
x11vnc/misc/enhanced_tightvnc_viewer/build.unix
View file @
8938cda1
...
...
@@ -134,14 +134,16 @@ libs="$tmp/libs"
mkdir
-p
$libs
||
exit
1
for
liba
in
libz.a libjpeg.a libssl.a libcrypto.a
do
if
[
"X
$SSVNC_BUILD_
NO_STATIC
"
!
=
"X"
]
;
then
if
[
"X
$SSVNC_BUILD_
STATIC
"
=
"X"
]
;
then
break
fi
for
dir
in
/usr/lib /lib /usr/local/lib /usr/pkg/lib /usr/sfw/lib /usr/openwin/lib
do
if
[
"
$name
"
=
"Linux.x86_64"
-o
"
$name
"
=
"Linux.ppc64"
]
;
then
dir64
=
`
echo
"
$dir
"
|
sed
-e
's,lib,lib64,'
`
if
[
-d
$dir64
]
;
then
if
[
"X
$SSVNC_BUILD_NO_LINUX64
"
!=
"X"
]
;
then
:
elif
[
-d
$dir64
]
;
then
dir
=
$dir64
fi
fi
...
...
@@ -151,7 +153,7 @@ do
fi
done
done
if
[
"X
$SSVNC_BUILD_
NO_STATIC
"
=
"X"
]
;
then
if
[
"X
$SSVNC_BUILD_
STATIC
"
!
=
"X"
]
;
then
echo
"Found these static archive libraries, will try to use them..."
ls
-ld
$libs
ls
-l
$libs
...
...
@@ -180,7 +182,7 @@ END
fi
fi
if
[
-d
/var/tmp/LIBS
-a
"X
$SSVNC_BUILD_
NO_STATIC
"
=
"X"
]
;
then
if
[
-d
/var/tmp/LIBS
-a
"X
$SSVNC_BUILD_
STATIC
"
!
=
"X"
]
;
then
LDFLAGS_OS
=
"
$LDFLAGS_OS
-L/var/tmp/LIBS"
fi
...
...
@@ -435,6 +437,15 @@ if [ "X$SSVNC_BUILD_SKIP_VNCSTOREPW" = "X" ]; then
cd
"
$start
"
cp
-p
$tmp
/vncstorepw/vncstorepw
$tmp
/vncstorepw/lim_accept.so
$dest
echo
""
cd
$tmp
/vncstorepw
make clean
env
LD_SSL
=
"-L
$start
/
$libs
$LDFLAGS_OS
"
CPP_SSL
=
"
$CPPFLAGS_OS
"
make ultravnc_dsm_helper
cd
"
$start
"
cp
-p
$tmp
/vncstorepw/ultravnc_dsm_helper
$dest
echo
""
fi
...
...
x11vnc/misc/enhanced_tightvnc_viewer/man/man1/ssvncviewer.1
View file @
8938cda1
...
...
@@ -11,7 +11,7 @@
.\" License as specified in the file LICENCE.TXT that comes with the
.\" TightVNC distribution.
.\"
.TH ssvncviewer 1 "
August
2008" "" "SSVNC"
.TH ssvncviewer 1 "
October
2008" "" "SSVNC"
.SH NAME
ssvncviewer \- an X viewer client for VNC
.SH SYNOPSIS
...
...
@@ -246,6 +246,16 @@ Use alphablending transparency for local cursors
requires: x11vnc server, both client and server
must be 32bpp and same endianness.
.TP
\fB\-scale\fR \fIstr\fR
Scale the desktop locally. The string "str" can
a floating point ratio, e.g. "0.9", or a fraction,
e.g. "3/4", or WxH, e.g. 1280x1024. Use "fit"
to fit in the current screen size.
Use "auto" to fit in the window size.
Note that scaling is done in software and can be slow
and requires more memory. "str" can also be set by
the env. var. SSVNC_SCALE.
.TP
\fB\-ycrop\fR n
Only show the top n rows of the framebuffer. For
use with x11vnc \fB\-ncache\fR client caching option
...
...
@@ -356,6 +366,11 @@ THAT supply -ultradsm to tell THIS viewer to modify the RFB
data sent so as to work with the UltraVNC Server. For some
reason, each RFB msg type must be sent twice under DSM.
.TP
\fB\-chatonly\fR
Try to be a client that only does UltraVNC text chat. This
mode is used by x11vnc to present a chat window on the physical
X11 console (i.e. to chat with the person at the display).
.TP
\fB-env\fR \fIVAR=VALUE\fR
To save writing a shell script to set environment
variables, specify as many as you need on the command line. For example,
...
...
@@ -386,8 +401,10 @@ XENVIRONMENT or XAPPLRESDIR.
256 colors ~ -bgr233 default # of colors.
64 colors ~ -bgr222 / -use64
8 colors ~ -bgr111 / -use8
Scale Viewer ~ -scale
Set Y Crop (y-max) ~ -ycrop
Set Scrollbar Width ~ -sbwidth
XGrabServer ~ -graball
UltraVNC Extensions:
...
...
x11vnc/misc/enhanced_tightvnc_viewer/src/patches/_bundle
View file @
8938cda1
#!/bin/sh
rm
-rf
./src/tmp/
*
||
exit
1
vers
=
1.0.2
0
vers
=
1.0.2
1
cd
..
||
exit
1
...
...
x11vnc/misc/enhanced_tightvnc_viewer/src/patches/tight-vncviewer-full.patch
View file @
8938cda1
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment