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
726cedb8
Commit
726cedb8
authored
Nov 24, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install ss_vncviewer 755, -prog option, HTTPONCE new socket for -inetd.
parent
43f38781
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1533 additions
and
1336 deletions
+1533
-1336
prepare_x11vnc_dist.sh
prepare_x11vnc_dist.sh
+4
-1
ChangeLog
x11vnc/ChangeLog
+6
-0
README
x11vnc/README
+1489
-1318
help.c
x11vnc/help.c
+10
-6
remote.c
x11vnc/remote.c
+1
-1
user.c
x11vnc/user.c
+2
-2
x11vnc.1
x11vnc/x11vnc.1
+14
-7
x11vnc.c
x11vnc/x11vnc.c
+6
-0
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
No files found.
prepare_x11vnc_dist.sh
View file @
726cedb8
...
@@ -84,7 +84,10 @@ cp classes/ssl/Makefile.am classes/ssl/Makefile.am.LibVNCServer
...
@@ -84,7 +84,10 @@ cp classes/ssl/Makefile.am classes/ssl/Makefile.am.LibVNCServer
sed
-e
's/EXTRA_DIST=/EXTRA_DIST=tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch tightvnc-1.3dev7_javasrc-vncviewer-cursor-colors+no-tab-traversal.patch /'
\
sed
-e
's/EXTRA_DIST=/EXTRA_DIST=tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch tightvnc-1.3dev7_javasrc-vncviewer-cursor-colors+no-tab-traversal.patch /'
\
classes/ssl/Makefile.am.LibVNCServer
>
classes/ssl/Makefile.am
classes/ssl/Makefile.am.LibVNCServer
>
classes/ssl/Makefile.am
echo
'pkgdatadir = $(datadir)/@PACKAGE@/classes/ssl'
>>
classes/ssl/Makefile.am
echo
'pkgdatadir = $(datadir)/@PACKAGE@/classes/ssl'
>>
classes/ssl/Makefile.am
echo
'pkgdata_DATA=VncViewer.jar index.vnc SignedVncViewer.jar proxy.vnc ssl_vncviewer README'
>>
classes/ssl/Makefile.am
echo
'pkgdata_DATA=VncViewer.jar index.vnc SignedVncViewer.jar proxy.vnc README'
>>
classes/ssl/Makefile.am
echo
'pkgdata_SCRIPTS=ss_vncviewer'
>>
classes/ssl/Makefile.am
chmod
755 classes/ssl/ss_vncviewer
mv
acinclude.m4 acinclude.m4.LibVNCServer
mv
acinclude.m4 acinclude.m4.LibVNCServer
...
...
x11vnc/ChangeLog
View file @
726cedb8
2006-11-23 Karl Runge <runge@karlrunge.com>
* prepare_x11vnc_dist.sh: make ss_vncviewer installed 755.
* x11vnc: for HTTPONCE open new http port in -inetd mode.
-prog option to indicate full path to program (not know
when in -inetd and tcpd)
2006-11-21 Karl Runge <runge@karlrunge.com>
2006-11-21 Karl Runge <runge@karlrunge.com>
* x11vnc: macosx: problem with padded framebuffer rows, wait for
* x11vnc: macosx: problem with padded framebuffer rows, wait for
user to switch back, CutText xfer support, ignore a few more
user to switch back, CutText xfer support, ignore a few more
...
...
x11vnc/README
View file @
726cedb8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
x11vnc/help.c
View file @
726cedb8
...
@@ -448,7 +448,7 @@ void print_help(int mode) {
...
@@ -448,7 +448,7 @@ void print_help(int mode) {
" encrypted, only obscured with a fixed key).
\n
"
" encrypted, only obscured with a fixed key).
\n
"
"
\n
"
"
\n
"
" If the filename is prefixed with
\"
read:
\"
it will
\n
"
" If the filename is prefixed with
\"
read:
\"
it will
\n
"
" periodically be checked for changes and reread. It i
t
\n
"
" periodically be checked for changes and reread. It i
s
\n
"
" guaranteed to be reread just when a new client connects
\n
"
" guaranteed to be reread just when a new client connects
\n
"
" so that the latest passwords will be used.
\n
"
" so that the latest passwords will be used.
\n
"
"
\n
"
"
\n
"
...
@@ -656,8 +656,8 @@ void print_help(int mode) {
...
@@ -656,8 +656,8 @@ void print_help(int mode) {
" to use -users unixpw= to switch the process user after
\n
"
" to use -users unixpw= to switch the process user after
\n
"
" the user logs in.
\n
"
" the user logs in.
\n
"
"
\n
"
"
\n
"
"-unixpw_cmd
str
As -unixpw above, however do not use su(1) but rather
\n
"
"-unixpw_cmd
cmd
As -unixpw above, however do not use su(1) but rather
\n
"
" run the externally supplied command
\"
str
\"
. The first
\n
"
" run the externally supplied command
\"
cmd
\"
. The first
\n
"
" line of its stdin will the username and the second line
\n
"
" line of its stdin will the username and the second line
\n
"
" the received password. If the command exits with status
\n
"
" the received password. If the command exits with status
\n
"
" 0 (success) the VNC client will be accepted. It will be
\n
"
" 0 (success) the VNC client will be accepted. It will be
\n
"
...
@@ -758,9 +758,11 @@ void print_help(int mode) {
...
@@ -758,9 +758,11 @@ void print_help(int mode) {
" port 5800 and allow the Java vncviewer to be downloaded
\n
"
" port 5800 and allow the Java vncviewer to be downloaded
\n
"
" by client web browsers. For example:
\n
"
" by client web browsers. For example:
\n
"
"
\n
"
"
\n
"
" 5815 stream tcp nowait root /usr/sbin/tcpd .../x11vnc
\\\n
"
" 5815 stream tcp nowait root /usr/sbin/tcpd /.../x11vnc
\\\n
"
" -inetd -q -http_ssl -display WAIT:cmd=HTTPONCE
\n
"
" -inetd -q -http_ssl -prog /.../x11vnc
\\\n
"
" -display WAIT:cmd=HTTPONCE
\n
"
"
\n
"
"
\n
"
" Where /.../x11vnc is the full path to x11vnc.
\n
"
" It is used in the Apache SSL-portal example (see FAQ).
\n
"
" It is used in the Apache SSL-portal example (see FAQ).
\n
"
"
\n
"
"
\n
"
" Finally, one can insert a geometry between colons,
\n
"
" Finally, one can insert a geometry between colons,
\n
"
...
@@ -1609,6 +1611,8 @@ void print_help(int mode) {
...
@@ -1609,6 +1611,8 @@ void print_help(int mode) {
" avoid shell script wrappers, etc. to set the env. var.
\n
"
" avoid shell script wrappers, etc. to set the env. var.
\n
"
" You may specify as many of these as needed on the
\n
"
" You may specify as many of these as needed on the
\n
"
" command line.
\n
"
" command line.
\n
"
"-prog /path/to/x11vnc Set the full path to the x11vnc program for cases when
\n
"
" it cannot be determined from argv[0] (e.g. tcpd/inetd)
\n
"
"
\n
"
"
\n
"
"-h, -help Print this help text.
\n
"
"-h, -help Print this help text.
\n
"
"-?, -opts Only list the x11vnc options.
\n
"
"-?, -opts Only list the x11vnc options.
\n
"
...
@@ -2869,7 +2873,7 @@ void print_help(int mode) {
...
@@ -2869,7 +2873,7 @@ void print_help(int mode) {
" pointer) use
\"
touch
\"
or
\"
touch=WxH
\"
.
\n
"
" pointer) use
\"
touch
\"
or
\"
touch=WxH
\"
.
\n
"
"
\n
"
"
\n
"
" If you set the env. var X11VNC_UINPUT_THRESHOLDS then
\n
"
" If you set the env. var X11VNC_UINPUT_THRESHOLDS then
\n
"
" the thresh=n mode will be enabled. It i
t
currently
\n
"
" the thresh=n mode will be enabled. It i
s
currently
\n
"
" not working well. If |dx| <= thresh and |dy| < thresh
\n
"
" not working well. If |dx| <= thresh and |dy| < thresh
\n
"
" no acceleration is applied. Use
\"
thresh=+n
\"
|dx| +
\n
"
" no acceleration is applied. Use
\"
thresh=+n
\"
|dx| +
\n
"
" |dy| < thresh to be used instead (X11?)
\n
"
" |dy| < thresh to be used instead (X11?)
\n
"
...
...
x11vnc/remote.c
View file @
726cedb8
...
@@ -277,7 +277,7 @@ int check_httpdir(void) {
...
@@ -277,7 +277,7 @@ int check_httpdir(void) {
struct
stat
sbuf
;
struct
stat
sbuf
;
int
len
;
int
len
;
rfbLog
(
"check_httpdir: trying to guess httpdir...
\n
"
);
rfbLog
(
"check_httpdir: trying to guess httpdir...
%s
\n
"
,
program_name
);
if
(
program_name
[
0
]
==
'/'
)
{
if
(
program_name
[
0
]
==
'/'
)
{
prog
=
strdup
(
program_name
);
prog
=
strdup
(
program_name
);
}
else
{
}
else
{
...
...
x11vnc/user.c
View file @
726cedb8
...
@@ -1020,8 +1020,8 @@ rfbBool custom_passwd_check(rfbClientPtr cl, const char *response, int len) {
...
@@ -1020,8 +1020,8 @@ rfbBool custom_passwd_check(rfbClientPtr cl, const char *response, int len) {
static
void
handle_one_http_request
(
void
)
{
static
void
handle_one_http_request
(
void
)
{
rfbLog
(
"handle_one_http_request: begin.
\n
"
);
rfbLog
(
"handle_one_http_request: begin.
\n
"
);
if
(
screen
->
httpPort
==
0
)
{
if
(
inetd
||
screen
->
httpPort
==
0
)
{
int
port
=
find_free_port
(
5800
,
58
5
0
);
int
port
=
find_free_port
(
5800
,
58
6
0
);
if
(
port
)
{
if
(
port
)
{
screen
->
httpPort
=
port
;
screen
->
httpPort
=
port
;
}
else
{
}
else
{
...
...
x11vnc/x11vnc.1
View file @
726cedb8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.TH X11VNC "1" "November 2006" "x11vnc " "User Commands"
.TH X11VNC "1" "November 2006" "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.8.4, lastmod: 2006-11-2
1
version: 0.8.4, lastmod: 2006-11-2
3
.SH SYNOPSIS
.SH SYNOPSIS
.B x11vnc
.B x11vnc
[OPTION]...
[OPTION]...
...
@@ -549,7 +549,7 @@ password file should not be readable by untrusted users
...
@@ -549,7 +549,7 @@ password file should not be readable by untrusted users
encrypted, only obscured with a fixed key).
encrypted, only obscured with a fixed key).
.IP
.IP
If the filename is prefixed with "read:" it will
If the filename is prefixed with "read:" it will
periodically be checked for changes and reread. It i
t
periodically be checked for changes and reread. It i
s
guaranteed to be reread just when a new client connects
guaranteed to be reread just when a new client connects
so that the latest passwords will be used.
so that the latest passwords will be used.
.IP
.IP
...
@@ -780,12 +780,12 @@ in /etc/shadow can then be authenticated. You may want
...
@@ -780,12 +780,12 @@ in /etc/shadow can then be authenticated. You may want
to use \fB-users\fR unixpw= to switch the process user after
to use \fB-users\fR unixpw= to switch the process user after
the user logs in.
the user logs in.
.PP
.PP
\fB-unixpw_cmd\fR \fI
str
\fR
\fB-unixpw_cmd\fR \fI
cmd
\fR
.IP
.IP
As \fB-unixpw\fR above, however do not use
As \fB-unixpw\fR above, however do not use
.IR su (1)
.IR su (1)
but rather
but rather
run the externally supplied command \fI
str
\fR. The first
run the externally supplied command \fI
cmd
\fR. The first
line of its stdin will the username and the second line
line of its stdin will the username and the second line
the received password. If the command exits with status
the received password. If the command exits with status
0 (success) the VNC client will be accepted. It will be
0 (success) the VNC client will be accepted. It will be
...
@@ -888,9 +888,11 @@ This is usually done in \fB-inetd\fR mode to run on, say,
...
@@ -888,9 +888,11 @@ This is usually done in \fB-inetd\fR mode to run on, say,
port 5800 and allow the Java vncviewer to be downloaded
port 5800 and allow the Java vncviewer to be downloaded
by client web browsers. For example:
by client web browsers. For example:
.IP
.IP
5815 stream tcp nowait root /usr/sbin/tcpd .../x11vnc \\
5815 stream tcp nowait root /usr/sbin/tcpd /.../x11vnc \\
\fB-inetd\fR \fB-q\fR \fB-http_ssl\fR \fB-display\fR WAIT:cmd=HTTPONCE
\fB-inetd\fR \fB-q\fR \fB-http_ssl\fR \fB-prog\fR /.../x11vnc \\
\fB-display\fR WAIT:cmd=HTTPONCE
.IP
.IP
Where /.../x11vnc is the full path to x11vnc.
It is used in the Apache SSL-portal example (see FAQ).
It is used in the Apache SSL-portal example (see FAQ).
.IP
.IP
Finally, one can insert a geometry between colons,
Finally, one can insert a geometry between colons,
...
@@ -1855,6 +1857,11 @@ avoid shell script wrappers, etc. to set the env. var.
...
@@ -1855,6 +1857,11 @@ avoid shell script wrappers, etc. to set the env. var.
You may specify as many of these as needed on the
You may specify as many of these as needed on the
command line.
command line.
.PP
.PP
\fB-prog\fR \fI/path/to/x11vnc\fR
.IP
Set the full path to the x11vnc program for cases when
it cannot be determined from argv[0] (e.g. tcpd/inetd)
.PP
\fB-h,\fR \fB-help\fR
\fB-h,\fR \fB-help\fR
.IP
.IP
Print this help text.
Print this help text.
...
@@ -3358,7 +3365,7 @@ device is a touchscreen (assumed to have an absolute
...
@@ -3358,7 +3365,7 @@ device is a touchscreen (assumed to have an absolute
pointer) use "touch" or "touch=WxH".
pointer) use "touch" or "touch=WxH".
.IP
.IP
If you set the env. var X11VNC_UINPUT_THRESHOLDS then
If you set the env. var X11VNC_UINPUT_THRESHOLDS then
the thresh=n mode will be enabled. It i
t
currently
the thresh=n mode will be enabled. It i
s
currently
not working well. If |dx| <= thresh and |dy| < thresh
not working well. If |dx| <= thresh and |dy| < thresh
no acceleration is applied. Use "thresh=+n" |dx| +
no acceleration is applied. Use "thresh=+n" |dx| +
|dy| < thresh to be used instead (X11?)
|dy| < thresh to be used instead (X11?)
...
...
x11vnc/x11vnc.c
View file @
726cedb8
...
@@ -1946,6 +1946,12 @@ int main(int argc, char* argv[]) {
...
@@ -1946,6 +1946,12 @@ int main(int argc, char* argv[]) {
;
/* done above */
;
/* done above */
}
else
if
(
!
strcmp
(
arg
,
"-env"
))
{
}
else
if
(
!
strcmp
(
arg
,
"-env"
))
{
i
++
;
/* done above */
i
++
;
/* done above */
}
else
if
(
!
strcmp
(
arg
,
"-prog"
))
{
CHECK_ARGC
if
(
program_name
)
{
free
(
program_name
);
}
program_name
=
strdup
(
argv
[
++
i
]);
}
else
if
(
!
strcmp
(
arg
,
"-h"
)
||
!
strcmp
(
arg
,
"-help"
))
{
}
else
if
(
!
strcmp
(
arg
,
"-h"
)
||
!
strcmp
(
arg
,
"-help"
))
{
print_help
(
0
);
print_help
(
0
);
}
else
if
(
!
strcmp
(
arg
,
"-?"
)
||
!
strcmp
(
arg
,
"-opts"
))
{
}
else
if
(
!
strcmp
(
arg
,
"-?"
)
||
!
strcmp
(
arg
,
"-opts"
))
{
...
...
x11vnc/x11vnc_defs.c
View file @
726cedb8
...
@@ -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.8.4 lastmod: 2006-11-2
1
"
;
char
lastmod
[]
=
"0.8.4 lastmod: 2006-11-2
3
"
;
/* 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