This is an old revision of the document!
pkgにて以下を導入。
prisner desktop 起動時に xdm を起動する。
#!/bin/sh # # PROVIDE: xdm # REQUIRE: DAEMON ldconfig . /etc/rc.subr name="xdm" rcvar="xdm_enable" command="/usr/local/bin/xdm" start_cmd="xdm_start" xdm_start() { ${command} } load_rc_config $name run_rc_command "$1"
xdm_enable="YES"
* #any host can get a login window
!DisplayManager.requestPort: 0
TigerVNC を inetd で制御する。
vnc 5901/tcp
vnc stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 1440x900 -securitytypes=none
inetd_enable="YES"
pkgにて、以下を導入。
WebSockify のダウンロードと設定する。
# cd /usr/local/libexec/novnc/utils # chmod 744 launch.sh # ./launch.sh <中略> Filed to start WebSockets proxy #
python3.6 -m websockify $0 (python を python3.6 に修正)
noVNC 向け設定を行う。
#!/bin/sh # PROVIDE: novnc PATH=$PATH:/usr/local/bin . /etc/rc.subr name="novnc" rcvar="${name}_enable" start_cmd="novnc_start" novnc_start() { echo "Start run" echo ${command_args} /usr/local/libexec/novnc/utils/websockify/run --daemon ${novnc_local} ${novnc_remote} } load_rc_config $name run_rc_command "$1"
novnc_enable="YES" novnc_local="6080" novnc_remote="192.168.100.2:5901"
LoadModule proxy_module libexec/apache24/mod_proxy.so LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
SSLCACertificateFile "/usr/local/etc/apache24/ssl.crt/cacert.pem" ProxyRequests Off ProxyPass /websockify ws://localhost:6080/websockify retry=3 ProxyPassReverse /websockify ws://localhost:6080/websockify retry=3 RedirectMatch permanent /<パス>$ /<パス>/ Alias /<パス> /usr/local/libexec/novnc <Directory /usr/local/libexec/novnc> AllowOverride all Order allow,deny Allow from all Require all granted </Directory> <Location /websockify/> SSLVerifyClient require </Location>