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
7fffc5d3
Commit
7fffc5d3
authored
May 26, 2007
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: in -unixpw, initial Escape means no echo username.
parent
cb227d4b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
187 additions
and
102 deletions
+187
-102
prepare_x11vnc_dist.sh
prepare_x11vnc_dist.sh
+1
-1
ChangeLog
x11vnc/ChangeLog
+4
-0
README
x11vnc/README
+119
-61
help.c
x11vnc/help.c
+22
-18
options.c
x11vnc/options.c
+2
-2
unixpw.c
x11vnc/unixpw.c
+14
-3
x11vnc.1
x11vnc/x11vnc.1
+24
-16
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
No files found.
prepare_x11vnc_dist.sh
View file @
7fffc5d3
#!/bin/bash
#!/bin/bash
VERSION
=
"0.9.
1
"
VERSION
=
"0.9.
2
"
cd
"
$(
dirname
"
$0
"
)
"
cd
"
$(
dirname
"
$0
"
)
"
...
...
x11vnc/ChangeLog
View file @
7fffc5d3
2007-05-26 Karl Runge <runge@karlrunge.com>
* x11vnc: set to version 0.9.2, back to NCACHE -12 for testing.
in -unixpw, initial Escape means no echo username (see ssvnc).
2007-05-21 Karl Runge <runge@karlrunge.com>
2007-05-21 Karl Runge <runge@karlrunge.com>
* x11vnc: set things up (NCACHE = -1) to not have -ncache
* x11vnc: set things up (NCACHE = -1) to not have -ncache
on by default; just give a blurb about it.
on by default; just give a blurb about it.
...
...
x11vnc/README
View file @
7fffc5d3
x11vnc
README
file
Date
:
Mon
May
21
17
:
57
:
42
EDT
2007
x11vnc
README
file
Date
:
Sat
May
26
19
:
09
:
57
EDT
2007
The
following
information
is
taken
from
these
URLs
:
The
following
information
is
taken
from
these
URLs
:
...
@@ -398,12 +398,12 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
...
@@ -398,12 +398,12 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
SourceForge
.
net
.
I
use
libvncserver
for
all
of
the
VNC
aspects
;
I
SourceForge
.
net
.
I
use
libvncserver
for
all
of
the
VNC
aspects
;
I
couldn
't have done without it. The full source code may be found and
couldn
't have done without it. The full source code may be found and
downloaded (either file-release tarball or CVS tree) from the above
downloaded (either file-release tarball or CVS tree) from the above
link. As of
Apr 2007, the [70]x11vnc-0.9
.tar.gz source package is
link. As of
May 2007, the [70]x11vnc-0.9.1
.tar.gz source package is
released (recommended download). The [71]x11vnc 0.9 release notes.
released (recommended download). The [71]x11vnc 0.9
.1
release notes.
The x11vnc package is the subset of the libvncserver package needed to
The x11vnc package is the subset of the libvncserver package needed to
build the x11vnc program. Also, you can get a copy of my latest,
build the x11vnc program. Also, you can get a copy of my latest,
bleeding edge [72]x11vnc-0.9.
1
.tar.gz tarball to build the most up to
bleeding edge [72]x11vnc-0.9.
2
.tar.gz tarball to build the most up to
date one.
date one.
Precompiled Binaries/Packages: See the [73]FAQ below for information
Precompiled Binaries/Packages: See the [73]FAQ below for information
...
@@ -436,13 +436,13 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
...
@@ -436,13 +436,13 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
Building x11vnc:
Building x11vnc:
If your OS has libjpeg.so and libz.so in standard locations you can
If your OS has libjpeg.so and libz.so in standard locations you can
build as follows (example given for the 0.9
release of x11vnc: replace
build as follows (example given for the 0.9
.1 release of x11vnc:
with the version you downloaded):
replace
with the version you downloaded):
(un-tar the x11vnc+libvncserver tarball)
(un-tar the x11vnc+libvncserver tarball)
# gzip -dc x11vnc-0.9.tar.gz | tar -xvf -
# gzip -dc x11vnc-0.9.
1.
tar.gz | tar -xvf -
(cd to the source directory)
(cd to the source directory)
# cd x11vnc-0.9
# cd x11vnc-0.9
.1
(run configure and then run make)
(run configure and then run make)
# ./configure
# ./configure
...
@@ -658,14 +658,14 @@ make
...
@@ -658,14 +658,14 @@ make
I
don
't have any formal beta-testers for the releases of x11vnc, so
I
don
't have any formal beta-testers for the releases of x11vnc, so
I'
d
appreciate
any
additional
testing
very
much
.
I'
d
appreciate
any
additional
testing
very
much
.
Thanks
to
those
who
suggested
features
and
helped
beta
test
x11vnc
0.9
Thanks
to
those
who
suggested
features
and
helped
beta
test
x11vnc
released
in
Apr
2007
!
0.9.1
released
in
May
2007
!
Please
help
test
and
debug
the
0.9.
1
version
for
release
sometime
in
Please
help
test
and
debug
the
0.9.
2
version
for
release
sometime
in
Summer
2007.
Summer
2007.
The
version
0.9.
1
beta
tarball
is
kept
here
:
The
version
0.9.
2
beta
tarball
is
kept
here
:
[
91
]
x11vnc
-
0.9.
1
.
tar
.
gz
[
91
]
x11vnc
-
0.9.
2
.
tar
.
gz
There
are
also
some
Linux
,
Solaris
,
Mac
OS
X
,
and
other
OS
test
There
are
also
some
Linux
,
Solaris
,
Mac
OS
X
,
and
other
OS
test
binaries
[
92
]
here
.
Please
kick
the
tires
and
report
bugs
,
performance
binaries
[
92
]
here
.
Please
kick
the
tires
and
report
bugs
,
performance
...
@@ -680,7 +680,7 @@ make
...
@@ -680,7 +680,7 @@ make
[
97
]
Enhanced
TightVNC
Viewer
(
SSVNC
)
page
.
[
97
]
Enhanced
TightVNC
Viewer
(
SSVNC
)
page
.
Here
are
some
features
that
will
appear
in
the
0.9.
1
release
:
Here
are
some
features
that
will
appear
in
the
0.9.
2
release
:
*
[
98
]
Viewer
-
side
pixmap
caching
.
This
one
will
benefit
from
much
*
[
98
]
Viewer
-
side
pixmap
caching
.
This
one
will
benefit
from
much
testing
.
A
large
area
of
pixels
(
at
least
2
-
3
times
as
big
as
the
testing
.
A
large
area
of
pixels
(
at
least
2
-
3
times
as
big
as
the
framebuffer
itself
;
the
bigger
the
better
...
default
is
12
X
)
is
framebuffer
itself
;
the
bigger
the
better
...
default
is
12
X
)
is
...
@@ -692,6 +692,9 @@ make
...
@@ -692,6 +692,9 @@ make
"-ncache 12"
.
The
unix
Enhanced
TightVNC
Viewer
[
99
]
ssvnc
has
a
"-ncache 12"
.
The
unix
Enhanced
TightVNC
Viewer
[
99
]
ssvnc
has
a
nice
[
100
]-
ycrop
option
to
help
hide
the
pixel
cache
area
from
nice
[
100
]-
ycrop
option
to
help
hide
the
pixel
cache
area
from
view
.
view
.
Here
are
some
features
that
appeared
in
the
0.9.1
release
:
*
The
[
101
]
UltraVNC
Java
viewer
has
been
enhanced
to
support
SSL
(
as
*
The
[
101
]
UltraVNC
Java
viewer
has
been
enhanced
to
support
SSL
(
as
the
TightVNC
viewer
had
been
previously
).
The
UltraVNC
Java
the
TightVNC
viewer
had
been
previously
).
The
UltraVNC
Java
supports
ultravnc
filetransfer
,
and
so
can
be
used
as
a
VNC
viewer
supports
ultravnc
filetransfer
,
and
so
can
be
used
as
a
VNC
viewer
...
@@ -6675,7 +6678,7 @@ EndSection
...
@@ -6675,7 +6678,7 @@ EndSection
Building: If you don'
t
have
the
X11
build
and
runtime
packages
Building: If you don'
t
have
the
X11
build
and
runtime
packages
installed
you
will
need
to
build
it
like
this
:
installed
you
will
need
to
build
it
like
this
:
(
cd
to
the
x11vnc
-
0.9
,
etc
,
source
directory
)
(
cd
to
the
e
.
g
.
x11vnc
-
0.9
,
source
directory
)
./
configure
--
without
-
x
./
configure
--
without
-
x
make
make
...
@@ -7551,9 +7554,9 @@ References
...
@@ -7551,9 +7554,9 @@ References
67. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
67. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
68. http://www.karlrunge.com/x11vnc/ssvnc.html
68. http://www.karlrunge.com/x11vnc/ssvnc.html
69. http://sourceforge.net/projects/libvncserver/
69. http://sourceforge.net/projects/libvncserver/
70. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=5
02277
70. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=5
10888
71. http://sourceforge.net/project/shownotes.php?
group_id=32584&release_id=502277
71. http://sourceforge.net/project/shownotes.php?
release_id=510888&group_id=32584
72. http://www.karlrunge.com/x11vnc/x11vnc-0.9.
1
.tar.gz
72. http://www.karlrunge.com/x11vnc/x11vnc-0.9.
2
.tar.gz
73. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
73. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
74. http://www.tightvnc.com/download.html
74. http://www.tightvnc.com/download.html
75. http://www.realvnc.com/download-free.html
75. http://www.realvnc.com/download-free.html
...
@@ -7572,7 +7575,7 @@ References
...
@@ -7572,7 +7575,7 @@ References
88. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
88. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
89. http://www.karlrunge.com/x11vnc/index.html#faq-macosx
89. http://www.karlrunge.com/x11vnc/index.html#faq-macosx
90. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
90. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
91. http://www.karlrunge.com/x11vnc/x11vnc-0.9.
1
.tar.gz
91. http://www.karlrunge.com/x11vnc/x11vnc-0.9.
2
.tar.gz
92. http://www.karlrunge.com/x11vnc/bins
92. http://www.karlrunge.com/x11vnc/bins
93. mailto:xvml-beta@karlrunge.com
93. mailto:xvml-beta@karlrunge.com
94. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
94. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel-int
...
@@ -10031,6 +10034,8 @@ Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer)
...
@@ -10031,6 +10034,8 @@ Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer)
*
[
5
]
Dynamic
VNC
Server
Port
determination
and
redirection
(
using
*
[
5
]
Dynamic
VNC
Server
Port
determination
and
redirection
(
using
ssh
's builtin SOCKS proxy, -D) for servers like x11vnc that print
ssh
's builtin SOCKS proxy, -D) for servers like x11vnc that print
out PORT= at startup.
out PORT= at startup.
* Unix Username and Password entry for use with "x11vnc -unixpw"
type login dialogs.
[6]Unix TightVNC Viewer improvements (these only apply to the Unix VNC
[6]Unix TightVNC Viewer improvements (these only apply to the Unix VNC
viewer):
viewer):
...
@@ -10056,15 +10061,16 @@ Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer)
...
@@ -10056,15 +10061,16 @@ Enhanced TightVNC Viewer (SSVNC: SSL/SSH VNC viewer)
(-grab/-graball option).
(-grab/-graball option).
* Fix for Popup menu positioning for old window managers (-popupfix
* Fix for Popup menu positioning for old window managers (-popupfix
option).
option).
* Option "-unixpw ..." for use with "x11vnc -unixpw" type login
dialogs.
* Improvements to the Popup menu, all of these can now be changed
* Improvements to the Popup menu, all of these can now be changed
dynamically via the menu: ViewOnly, Toggle Bell, CursorShape
dynamically via the menu: ViewOnly, Toggle Bell, CursorShape
updates, X11 Cursor, Cursor Alphablending, Toggle Tight/ZRLE,
updates, X11 Cursor, Cursor Alphablending, Toggle Tight/ZRLE,
Toggle JPEG, FullColor/16bpp/8bpp (256/64/8 colors), Greyscale for
Toggle JPEG, FullColor/16bpp/8bpp (256/64/8 colors), Greyscale for
low color modes.
low color modes.
* Support for UltraVNC extensions: Single Window, Disable
* Support for UltraVNC extensions: 1/n Server side scaling, Text
Server-side Input, 1/n Server side scaling, Text Chat (shell
Chat, Single Window, Disable Server-side Input. Both UltraVNC and
terminal UI). Both UltraVNC and x11vnc servers support these
x11vnc servers support these extensions.
extensions.
The list of software bundled in the archive files:
The list of software bundled in the archive files:
* TightVNC Viewer (windows, unix, macosx)
* TightVNC Viewer (windows, unix, macosx)
...
@@ -10305,13 +10311,43 @@ Enhanced TightVNC viewer (SSVNC) options:
...
@@ -10305,13 +10311,43 @@ Enhanced TightVNC viewer (SSVNC) options:
-noshm Disable use of MIT shared memory extension (not recommended
-noshm Disable use of MIT shared memory extension (not recommended
)
)
-termchat Do the UltraVNC chat in the terminal vncviewer is in
instead of in an independent window.
-unixpw str Useful for logging into x11vnc in -unixpw mode. "str" is a
string that allows many ways to enter the Unix Username
and Unix Password. These characters: username, newline,
password, newline are sent to the VNC server after any VNC
authentication has taken place. Under x11vnc they are
used for the -unixpw login. Other VNC servers could do
something similar.
You can also indicate "str" via the environment
variable SSVNC_UNIXPW.
Note that the Escape key is actually sent first to tell
x11vnc to not echo the Unix Username back to the VNC
viewer. Set SSVNC_UNIXPW_NOESC=1 to override this.
If str is ".", then you are prompted at the command line
for the username and password in the normal way. If str is
"-" the stdin is read via getpass(3) for username@password.
Otherwise if str is a file, it is opened and the first line
read is taken as the Unix username and the 2nd as the
password. If str prefixed by "rm:" the file is removed
after reading. Otherwise, if str has a "@" character,
it is taken as username@password. Otherwise, the program
exits with an error. Got all that?
New Popup actions:
New Popup actions:
ViewOnly: ~ -viewonly
Disable Bell: ~ -nobell
Cursor Shape: ~ -nocursorshape
Cursor Shape: ~ -nocursorshape
X11 Cursor: ~ -x11cursor
X11 Cursor: ~ -x11cursor
Cursor Alphablend: ~ -alpha
Cursor Alphablend: ~ -alpha
Disable JPEG: ~ -nojpeg
Disable JPEG: ~ -nojpeg
Prefer raw for localhost ~ -rawlocal
Full Color as many colors as local screen allows.
Full Color as many colors as local screen allows.
Grey scale (16 & 8-bpp) ~ -grey, for low colors 16/8bpp modes only.
Grey scale (16 & 8-bpp) ~ -grey, for low colors 16/8bpp modes only.
16 bit color (BGR565) ~ -16bpp / -bgr565
16 bit color (BGR565) ~ -16bpp / -bgr565
...
@@ -10320,14 +10356,15 @@ Enhanced TightVNC viewer (SSVNC) options:
...
@@ -10320,14 +10356,15 @@ Enhanced TightVNC viewer (SSVNC) options:
64 colors ~ -bgr222 / -use64
64 colors ~ -bgr222 / -use64
8 colors ~ -bgr111 / -use8
8 colors ~ -bgr111 / -use8
UltraVNC Extensions:
Disable Remote Input Ultravnc ext. Try to prevent input and
Disable Remote Input Ultravnc ext. Try to prevent input and
viewing of monitor at physical display.
viewing of monitor at physical display.
Single Window Ultravnc ext. Grab and view a single window.
Single Window Ultravnc ext. Grab and view a single window.
(click on the window you want).
(click on the window you want).
Set 1/n Server Scale Ultravnc ext. Scale desktop by 1/n.
Set 1/n Server Scale Ultravnc ext. Scale desktop by 1/n.
prompt is from the terminal.
prompt is from the terminal.
Text Chat Ultravnc ext. Do Text Chat
, currently
Text Chat Ultravnc ext. Do Text Chat
.
input via the terminal (no window).
Note: the Ultravnc extensions only apply to servers that support
Note: the Ultravnc extensions only apply to servers that support
them. x11vnc/libvncserver supports some of them.
them. x11vnc/libvncserver supports some of them.
...
@@ -10394,12 +10431,18 @@ es and source AND full archives in the zip dir. (~15MB)
...
@@ -10394,12 +10431,18 @@ es and source AND full archives in the zip dir. (~15MB)
You can try for an older one by replacing, e.g. ".16" by ".11", etc.
You can try for an older one by replacing, e.g. ".16" by ".11", etc.
Sorry for the inconvenience of lumping all the Unix binaries and
Here are the corresponding "development" bundles:
source together in one archive. To save space you can delete the src
[24]ssvnc_windows_only-1.0.17.zip
subdirectory if you like.
[25]ssvnc_no_windows-1.0.17.tar.gz
[26]ssvnc_unix_only-1.0.17.tar.gz
[27]ssvnc_unix_minimal-1.0.17.tar.gz
[28]ssvnc-1.0.17.tar.gz
[29]ssvnc-1.0.17.zip
[30]ssvnc_all-1.0.17.zip
A self-extracting and running file for the "ssvnc_unix_minimal"
A self-extracting and running file for the "ssvnc_unix_minimal"
package is here: [
24
]ssvnc. Save it as filename "ssvnc", type "chmod
package is here: [
31
]ssvnc. Save it as filename "ssvnc", type "chmod
755 ./ssvnc", and then launch the GUI via typing "./ssvnc". Note that
755 ./ssvnc", and then launch the GUI via typing "./ssvnc". Note that
this "ssvnc_unix_minimal" mode requires you install the "stunnel" and
this "ssvnc_unix_minimal" mode requires you install the "stunnel" and
"vncviewer" programs externally (for example, install your distros'
"vncviewer" programs externally (for example, install your distros'
...
@@ -10438,13 +10481,13 @@ es and source AND full archives in the zip dir. (~15MB)
...
@@ -10438,13 +10481,13 @@ es and source AND full archives in the zip dir. (~15MB)
redistribute the above because of cryptographic software they contain
redistribute the above because of cryptographic software they contain
or for other reasons. Please check out your situation and information
or for other reasons. Please check out your situation and information
at the following and related sites:
at the following and related sites:
[
25
]http://www.stunnel.org
[
32
]http://www.stunnel.org
[
26
]http://stunnel.mirt.net
[
33
]http://stunnel.mirt.net
[
27
]http://www.openssl.org
[
34
]http://www.openssl.org
[
28
]http://www.chiark.greenend.org.uk/~sgtatham/putty/
[
35
]http://www.chiark.greenend.org.uk/~sgtatham/putty/
[
29
]http://www.tightvnc.com
[
36
]http://www.tightvnc.com
[3
0
]http://www.realvnc.com
[3
7
]http://www.realvnc.com
[3
1
]http://sourceforge.net/projects/cotvnc/
[3
8
]http://sourceforge.net/projects/cotvnc/
_________________________________________________________________
_________________________________________________________________
Here is the toplevel README from the bundle:
Here is the toplevel README from the bundle:
...
@@ -10915,14 +10958,21 @@ References
...
@@ -10915,14 +10958,21 @@ References
21. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.16.tar.gz
21. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.16.tar.gz
22. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.16.zip
22. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.16.zip
23. http://www.karlrunge.com/x11vnc/etv/ssvnc_all-1.0.16.zip
23. http://www.karlrunge.com/x11vnc/etv/ssvnc_all-1.0.16.zip
24. http://www.karlrunge.com/x11vnc/etv/ssvnc
24. http://www.karlrunge.com/x11vnc/etv/ssvnc_windows_only-1.0.17.zip
25. http://www.stunnel.org/
25. http://www.karlrunge.com/x11vnc/etv/ssvnc_no_windows-1.0.17.tar.gz
26. http://stunnel.mirt.net/
26. http://www.karlrunge.com/x11vnc/etv/ssvnc_unix_only-1.0.17.tar.gz
27. http://www.openssl.org/
27. http://www.karlrunge.com/x11vnc/etv/ssvnc_unix_minimal-1.0.17.tar.gz
28. http://www.chiark.greenend.org.uk/~sgtatham/putty/
28. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.17.tar.gz
29. http://www.tightvnc.com/
29. http://www.karlrunge.com/x11vnc/etv/ssvnc-1.0.17.zip
30. http://www.realvnc.com/
30. http://www.karlrunge.com/x11vnc/etv/ssvnc_all-1.0.17.zip
31. http://sourceforge.net/projects/cotvnc/
31. http://www.karlrunge.com/x11vnc/etv/ssvnc
32. http://www.stunnel.org/
33. http://stunnel.mirt.net/
34. http://www.openssl.org/
35. http://www.chiark.greenend.org.uk/~sgtatham/putty/
36. http://www.tightvnc.com/
37. http://www.realvnc.com/
38. http://sourceforge.net/projects/cotvnc/
=======================================================================
=======================================================================
http://www.karlrunge.com/x11vnc/x11vnc_opts.html:
http://www.karlrunge.com/x11vnc/x11vnc_opts.html:
...
@@ -10935,7 +10985,7 @@ x11vnc: a VNC server for real X displays
...
@@ -10935,7 +10985,7 @@ x11vnc: a VNC server for real X displays
Here are all of x11vnc command line options:
Here are all of x11vnc command line options:
% x11vnc -opts (see below for -help long descriptions)
% x11vnc -opts (see below for -help long descriptions)
x11vnc: allow VNC connections to real X11 displays. 0.9.
1 lastmod: 2007-05-21
x11vnc: allow VNC connections to real X11 displays. 0.9.
2 lastmod: 2007-05-26
x11vnc options:
x11vnc options:
-display disp -auth file -N
-display disp -auth file -N
...
@@ -11049,7 +11099,7 @@ libvncserver-tight-extension options:
...
@@ -11049,7 +11099,7 @@ libvncserver-tight-extension options:
%
x11vnc
-
help
%
x11vnc
-
help
x11vnc
:
allow
VNC
connections
to
real
X11
displays
.
0.9.
1
lastmod
:
2007
-
05
-
21
x11vnc
:
allow
VNC
connections
to
real
X11
displays
.
0.9.
2
lastmod
:
2007
-
05
-
26
(
type
"x11vnc -opts"
to
just
list
the
options
.)
(
type
"x11vnc -opts"
to
just
list
the
options
.)
...
@@ -11631,27 +11681,32 @@ Options:
...
@@ -11631,27 +11681,32 @@ Options:
send
one
before
a
25
second
timeout
.
Existing
clients
send
one
before
a
25
second
timeout
.
Existing
clients
are
view
-
only
during
this
period
.
are
view
-
only
during
this
period
.
If
the
first
character
received
is
"Escape"
then
the
unix
username
will
not
be
displayed
after
"login:"
as
it
is
typed
.
This
could
be
of
use
for
VNC
viewers
that
automatically
type
the
username
and
password
.
Since
the
detailed
behavior
of
su
(
1
)
can
vary
from
Since
the
detailed
behavior
of
su
(
1
)
can
vary
from
OS
to
OS
and
for
local
configurations
,
test
the
mode
OS
to
OS
and
for
local
configurations
,
test
the
mode
carefully
on
your
systems
before
using
it
in
production
.
carefully
.
x11vnc
will
attempt
to
be
conservative
and
Test
different
combinations
of
valid
/
invalid
usernames
and
valid
/
invalid
passwords
to
see
if
it
behaves
as
expected
.
x11vnc
will
attempt
to
be
conservative
and
reject
a
login
if
anything
abnormal
occurs
.
reject
a
login
if
anything
abnormal
occurs
.
On
FreeBSD
and
the
other
BSD
's by default it is
On
e
case
to
note
:
FreeBSD
and
the
other
BSD
's by
impossible for the user running x11vnc to validate
default it is impossible for the user running x11vnc to
his *own* password via su(1) (evidently
commenting out
validate his *own* password via su(1) (
commenting out
the pam_self.so entry in /etc/pam.d/su eliminates this
the pam_self.so entry in /etc/pam.d/su eliminates this
problem). So the x11vnc login will always *fail
* for
behavior). So the x11vnc login will always *FAIL
* for
this case (even when the correct password is supplied).
this case (even when the correct password is supplied).
A possible workaround for this would be to start
A possible workaround for this on *BSD would be to
x11vnc as root with the "-users +nobody" option to
start x11vnc as root with the "-users +nobody" option
immediately switch to user nobody. Another source of
to immediately switch to user nobody where the su'
ing
problems are PAM modules that prompt for extra info,
will
proceed
normally
.
e.g. password aging modules. These logins will fail
as well even when the correct password is supplied.
Another
source
of
potential
problems
are
PAM
modules
that
prompt
for
extra
info
,
e
.
g
.
password
aging
modules
.
These
logins
will
fail
as
well
even
when
the
correct
password
is
supplied
.
**
IMPORTANT
**:
to
prevent
the
Unix
password
being
sent
**
IMPORTANT
**:
to
prevent
the
Unix
password
being
sent
in
*
clear
text
*
over
the
network
,
one
of
two
schemes
in
*
clear
text
*
over
the
network
,
one
of
two
schemes
...
@@ -12720,6 +12775,9 @@ t
...
@@ -12720,6 +12775,9 @@ t
commands
,
RFB_SSL_CLIENT_CERT
will
be
set
to
the
commands
,
RFB_SSL_CLIENT_CERT
will
be
set
to
the
client
's x509 certificate string.
client
's x509 certificate string.
The sslpeer= mode can aid finding X sessions via the
FINDDISPLAY and FINDCREATEDISPLAY mechanisms.
To immediately switch to a user *before* connections
To immediately switch to a user *before* connections
to the X display are made or any files opened use the
to the X display are made or any files opened use the
"=" character: "-users =bob". That user needs to
"=" character: "-users =bob". That user needs to
...
...
x11vnc/help.c
View file @
7fffc5d3
...
@@ -603,27 +603,32 @@ void print_help(int mode) {
...
@@ -603,27 +603,32 @@ void print_help(int mode) {
" send one before a 25 second timeout. Existing clients
\n
"
" send one before a 25 second timeout. Existing clients
\n
"
" are view-only during this period.
\n
"
" are view-only during this period.
\n
"
"
\n
"
"
\n
"
" If the first character received is
\"
Escape
\"
then the
\n
"
" unix username will not be displayed after
\"
login:
\"\n
"
" as it is typed. This could be of use for VNC viewers
\n
"
" that automatically type the username and password.
\n
"
"
\n
"
" Since the detailed behavior of su(1) can vary from
\n
"
" Since the detailed behavior of su(1) can vary from
\n
"
" OS to OS and for local configurations, test the mode
\n
"
" OS to OS and for local configurations, test the mode
\n
"
" carefully on your systems before using it in production.
\n
"
" carefully. x11vnc will attempt to be conservative and
\n
"
" Test different combinations of valid/invalid usernames
\n
"
" and valid/invalid passwords to see if it behaves as
\n
"
" expected. x11vnc will attempt to be conservative and
\n
"
" reject a login if anything abnormal occurs.
\n
"
" reject a login if anything abnormal occurs.
\n
"
"
\n
"
"
\n
"
" On
FreeBSD and the other BSD's by default it is
\n
"
" On
e case to note: FreeBSD and the other BSD's by
\n
"
"
impossible for the user running x11vnc to validate
\n
"
"
default it is impossible for the user running x11vnc to
\n
"
"
his *own* password via su(1) (evidently
commenting out
\n
"
"
validate his *own* password via su(1) (
commenting out
\n
"
" the pam_self.so entry in /etc/pam.d/su eliminates this
\n
"
" the pam_self.so entry in /etc/pam.d/su eliminates this
\n
"
"
problem). So the x11vnc login will always *fail
* for
\n
"
"
behavior). So the x11vnc login will always *FAIL
* for
\n
"
" this case (even when the correct password is supplied).
\n
"
" this case (even when the correct password is supplied).
\n
"
"
\n
"
"
\n
"
" A possible workaround for this would be to start
\n
"
" A possible workaround for this on *BSD would be to
\n
"
" x11vnc as root with the
\"
-users +nobody
\"
option to
\n
"
" start x11vnc as root with the
\"
-users +nobody
\"
option
\n
"
" immediately switch to user nobody. Another source of
\n
"
" to immediately switch to user nobody where the su'ing
\n
"
" problems are PAM modules that prompt for extra info,
\n
"
" will proceed normally.
\n
"
" e.g. password aging modules. These logins will fail
\n
"
"
\n
"
" as well even when the correct password is supplied.
\n
"
" Another source of potential problems are PAM modules
\n
"
" that prompt for extra info, e.g. password aging modules.
\n
"
" These logins will fail as well even when the correct
\n
"
" password is supplied.
\n
"
"
\n
"
"
\n
"
" **IMPORTANT**: to prevent the Unix password being sent
\n
"
" **IMPORTANT**: to prevent the Unix password being sent
\n
"
" in *clear text* over the network, one of two schemes
\n
"
" in *clear text* over the network, one of two schemes
\n
"
...
@@ -676,10 +681,6 @@ void print_help(int mode) {
...
@@ -676,10 +681,6 @@ void print_help(int mode) {
" (default port 5500). Please use a ssh or stunnel port
\n
"
" (default port 5500). Please use a ssh or stunnel port
\n
"
" redirection to the viewer machine to tunnel the reverse
\n
"
" redirection to the viewer machine to tunnel the reverse
\n
"
" connection over an encrypted channel.
\n
"
" connection over an encrypted channel.
\n
"
#if 0
" Note that in -ssl\n"
" mode reverse connection are disabled (see below). XXX\n"
#endif
"
\n
"
"
\n
"
" In -inetd mode the Method 1) will be enforced (not
\n
"
" In -inetd mode the Method 1) will be enforced (not
\n
"
" Method 2). With -ssl in effect reverse connections
\n
"
" Method 2). With -ssl in effect reverse connections
\n
"
...
@@ -1707,6 +1708,9 @@ void print_help(int mode) {
...
@@ -1707,6 +1708,9 @@ void print_help(int mode) {
" commands, RFB_SSL_CLIENT_CERT will be set to the
\n
"
" commands, RFB_SSL_CLIENT_CERT will be set to the
\n
"
" client's x509 certificate string.
\n
"
" client's x509 certificate string.
\n
"
"
\n
"
"
\n
"
" The sslpeer= mode can aid finding X sessions via the
\n
"
" FINDDISPLAY and FINDCREATEDISPLAY mechanisms.
\n
"
"
\n
"
" To immediately switch to a user *before* connections
\n
"
" To immediately switch to a user *before* connections
\n
"
" to the X display are made or any files opened use the
\n
"
" to the X display are made or any files opened use the
\n
"
"
\"
=
\"
character:
\"
-users =bob
\"
. That user needs to
\n
"
"
\"
=
\"
character:
\"
-users =bob
\"
. That user needs to
\n
"
...
...
x11vnc/options.c
View file @
7fffc5d3
...
@@ -206,8 +206,8 @@ int wireframe_local = 1;
...
@@ -206,8 +206,8 @@ int wireframe_local = 1;
#ifdef NO_NCACHE
#ifdef NO_NCACHE
#define NCACHE 0
#define NCACHE 0
#else
#else
#define
xx
NCACHE -12
#define NCACHE -12
#define NCACHE -1
#define
xx
NCACHE -1
#endif
#endif
#endif
#endif
...
...
x11vnc/unixpw.c
View file @
7fffc5d3
...
@@ -1126,6 +1126,7 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
...
@@ -1126,6 +1126,7 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
int
x
,
y
,
i
,
rc
,
nmax
=
100
;
int
x
,
y
,
i
,
rc
,
nmax
=
100
;
static
char
user_r
[
100
],
user
[
100
],
pass
[
100
];
static
char
user_r
[
100
],
user
[
100
],
pass
[
100
];
static
int
u_cnt
=
0
,
p_cnt
=
0
,
first
=
1
;
static
int
u_cnt
=
0
,
p_cnt
=
0
,
first
=
1
;
static
int
echo
=
1
;
char
keystr
[
100
];
char
keystr
[
100
];
char
*
str
;
char
*
str
;
...
@@ -1143,6 +1144,7 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
...
@@ -1143,6 +1144,7 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
in_login
=
1
;
in_login
=
1
;
in_passwd
=
0
;
in_passwd
=
0
;
unixpw_denied
=
0
;
unixpw_denied
=
0
;
echo
=
1
;
if
(
init
==
1
)
{
if
(
init
==
1
)
{
tries
=
0
;
tries
=
0
;
}
}
...
@@ -1209,6 +1211,11 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
...
@@ -1209,6 +1211,11 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
}
else
if
(
!
down
)
{
}
else
if
(
!
down
)
{
return
;
return
;
}
}
if
(
in_login
&&
keysym
==
XK_Escape
&&
u_cnt
==
0
)
{
echo
=
0
;
rfbLog
(
"unixpw_keystroke: echo off.
\n
"
);
return
;
}
if
(
in_login
)
{
if
(
in_login
)
{
if
(
keysym
==
XK_BackSpace
||
keysym
==
XK_Delete
)
{
if
(
keysym
==
XK_BackSpace
||
keysym
==
XK_Delete
)
{
...
@@ -1295,8 +1302,10 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
...
@@ -1295,8 +1302,10 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
x
=
text_x
();
x
=
text_x
();
y
=
text_y
();
y
=
text_y
();
rfbDrawString
(
pscreen
,
&
default8x16Font
,
x
,
y
,
if
(
echo
)
{
str
,
white_pixel
());
rfbDrawString
(
pscreen
,
&
default8x16Font
,
x
,
y
,
str
,
white_pixel
());
}
mark_rect_as_modified
(
x
,
y
-
char_h
,
x
+
char_w
,
mark_rect_as_modified
(
x
,
y
-
char_h
,
x
+
char_w
,
y
,
scaling
);
y
,
scaling
);
char_col
++
;
char_col
++
;
...
@@ -1340,7 +1349,9 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
...
@@ -1340,7 +1349,9 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
if
(
db
&&
db
<=
2
)
fprintf
(
stderr
,
"u_cnt: %d %d/%d ks: 0x%x '%s'
\n
"
,
u_cnt
,
x
,
y
,
keysym
,
keystr
);
if
(
db
&&
db
<=
2
)
fprintf
(
stderr
,
"u_cnt: %d %d/%d ks: 0x%x '%s'
\n
"
,
u_cnt
,
x
,
y
,
keysym
,
keystr
);
rfbDrawString
(
pscreen
,
&
default8x16Font
,
x
,
y
,
keystr
,
white_pixel
());
if
(
echo
)
{
rfbDrawString
(
pscreen
,
&
default8x16Font
,
x
,
y
,
keystr
,
white_pixel
());
}
mark_rect_as_modified
(
x
,
y
-
char_h
,
x
+
char_w
,
y
,
scaling
);
mark_rect_as_modified
(
x
,
y
-
char_h
,
x
+
char_w
,
y
,
scaling
);
char_col
++
;
char_col
++
;
...
...
x11vnc/x11vnc.1
View file @
7fffc5d3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.TH X11VNC "1" "May 2007" "x11vnc " "User Commands"
.TH X11VNC "1" "May 2007" "x11vnc " "User Commands"
.SH NAME
.SH NAME
x11vnc - allow VNC connections to real X11 displays
x11vnc - allow VNC connections to real X11 displays
version: 0.9.
1, lastmod: 2007-05-21
version: 0.9.
2, lastmod: 2007-05-26
.SH SYNOPSIS
.SH SYNOPSIS
.B x11vnc
.B x11vnc
[OPTION]...
[OPTION]...
...
@@ -718,31 +718,36 @@ to supply the correct password in 3 tries or does not
...
@@ -718,31 +718,36 @@ to supply the correct password in 3 tries or does not
send one before a 25 second timeout. Existing clients
send one before a 25 second timeout. Existing clients
are view-only during this period.
are view-only during this period.
.IP
.IP
If the first character received is "Escape" then the
unix username will not be displayed after "login:"
as it is typed. This could be of use for VNC viewers
that automatically type the username and password.
.IP
Since the detailed behavior of
Since the detailed behavior of
.IR su (1)
.IR su (1)
can vary from
can vary from
OS to OS and for local configurations, test the mode
OS to OS and for local configurations, test the mode
carefully on your systems before using it in production.
carefully. x11vnc will attempt to be conservative and
Test different combinations of valid/invalid usernames
and valid/invalid passwords to see if it behaves as
expected. x11vnc will attempt to be conservative and
reject a login if anything abnormal occurs.
reject a login if anything abnormal occurs.
.IP
.IP
On
FreeBSD and the other BSD's by default it is
On
e case to note: FreeBSD and the other BSD's by
impossible for the user running x11vnc to validate
default it is impossible for the user running x11vnc to
his *own* password via
validate
his *own* password via
.IR su (1)
.IR su (1)
(
evidently
commenting out
(commenting out
the pam_self.so entry in /etc/pam.d/su eliminates this
the pam_self.so entry in /etc/pam.d/su eliminates this
problem). So the x11vnc login will always *fail
* for
behavior). So the x11vnc login will always *FAIL
* for
this case (even when the correct password is supplied).
this case (even when the correct password is supplied).
.IP
.IP
A possible workaround for this would be to start
A possible workaround for this on *BSD would be to
x11vnc as root with the "\fB-users\fR \fI+nobody\fR" option to
start x11vnc as root with the "\fB-users\fR \fI+nobody\fR" option
immediately switch to user nobody. Another source of
to immediately switch to user nobody where the su'ing
problems are PAM modules that prompt for extra info,
will proceed normally.
e.g. password aging modules. These logins will fail
.IP
as well even when the correct password is supplied.
Another source of potential problems are PAM modules
that prompt for extra info, e.g. password aging modules.
These logins will fail as well even when the correct
password is supplied.
.IP
.IP
**IMPORTANT**: to prevent the Unix password being sent
**IMPORTANT**: to prevent the Unix password being sent
in *clear text* over the network, one of two schemes
in *clear text* over the network, one of two schemes
...
@@ -1934,6 +1939,9 @@ env. vars. (see \fB-accept)\fR passed to external cmd=
...
@@ -1934,6 +1939,9 @@ env. vars. (see \fB-accept)\fR passed to external cmd=
commands, RFB_SSL_CLIENT_CERT will be set to the
commands, RFB_SSL_CLIENT_CERT will be set to the
client's x509 certificate string.
client's x509 certificate string.
.IP
.IP
The sslpeer= mode can aid finding X sessions via the
FINDDISPLAY and FINDCREATEDISPLAY mechanisms.
.IP
To immediately switch to a user *before* connections
To immediately switch to a user *before* connections
to the X display are made or any files opened use the
to the X display are made or any files opened use the
"=" character: "\fB-users\fR \fI=bob\fR". That user needs to
"=" character: "\fB-users\fR \fI=bob\fR". That user needs to
...
...
x11vnc/x11vnc_defs.c
View file @
7fffc5d3
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.9.
1 lastmod: 2007-05-21
"
;
char
lastmod
[]
=
"0.9.
2 lastmod: 2007-05-26
"
;
/* X display info */
/* X display info */
...
...
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