2022-05-24 12:27:31 +00:00
|
|
|
#!/bin/sh
|
2022-08-20 21:49:06 +00:00
|
|
|
# start vnc server and listen for connections
|
|
|
|
# on port specced in `$VNC_SERVER_PORT`
|
2022-05-24 12:27:31 +00:00
|
|
|
|
|
|
|
x11vnc \
|
2022-07-26 13:47:36 +00:00
|
|
|
-listen 127.0.0.1 \
|
|
|
|
-allow 127.0.0.1 \
|
2022-08-20 21:49:06 +00:00
|
|
|
-rfbport "${VNC_SERVER_PORT}" \
|
2022-05-24 12:27:31 +00:00
|
|
|
-display :1 \
|
|
|
|
-forever \
|
|
|
|
-shared \
|
2022-08-20 21:49:06 +00:00
|
|
|
-bg \
|
|
|
|
-nowf \
|
|
|
|
-noxdamage \
|
|
|
|
-noxfixes \
|
|
|
|
|
2022-07-26 13:47:36 +00:00
|
|
|
|
2022-08-20 21:49:06 +00:00
|
|
|
# -nowcr \
|
|
|
|
# TODO: can't use this because of ``asyncvnc`` issue:
|
2022-05-24 12:27:31 +00:00
|
|
|
# https://github.com/barneygale/asyncvnc/issues/1
|
2022-06-03 14:17:50 +00:00
|
|
|
# -passwd 'ibcansmbz'
|
2022-08-20 21:49:06 +00:00
|
|
|
|
|
|
|
# XXX: optional graphics caching flags that seem to rekt the overlay
|
|
|
|
# of the 2 gw windows? When running a single gateway
|
|
|
|
# this seems to maybe optimize some memory usage?
|
|
|
|
# -ncache_cr \
|
|
|
|
# -ncache \
|
|
|
|
# -no6 \
|
|
|
|
# -noipv6 \
|
|
|
|
|
|
|
|
# NOTE: this will prevent logs from going to the console.
|
|
|
|
# -logappend /var/log/x11vnc.log \
|
|
|
|
|
|
|
|
# where to start allocating ports
|
|
|
|
# -autoport "${VNC_SERVER_PORT}" \
|