This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vps:vps4th2nd_10 [2019/03/31 10:42] hoge@hoge |
vps:vps4th2nd_10 [2019/04/21 18:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ブラウザでの desktop 接続 ====== | ||
- | prisoner desktop にブラウザで接続する。 | ||
- | |||
- | ===== web 設定 ===== | ||
- | ==== pkg ==== | ||
- | pkgにて、以下を導入。 | ||
- | * novnc | ||
- | * bash | ||
- | * git | ||
- | |||
- | === WebSockify 設定 === | ||
- | WebSockify のダウンロードと設定する。 | ||
- | * websockify をダウンロードするため、launch.sh を一度実行する。<code> | ||
- | # cd /usr/local/libexec/novnc/utils | ||
- | # chmod 744 launch.sh | ||
- | # ./launch.sh | ||
- | <中略> | ||
- | Filed to start WebSockets proxy | ||
- | # | ||
- | </code> | ||
- | * /usr/local/libexec/novnc/utils/websockify/run 修正<code> | ||
- | #!/usr/bin/env python3.6 (python を python3.6 に修正) | ||
- | </code> | ||
- | |||
- | === inetd 設定 === | ||
- | novnc 向け設定を行う。 | ||
- | * /usr/local/etc/rc.d/novnc を作成する。<code> | ||
- | #!/bin/sh | ||
- | # | ||
- | |||
- | # PROVIDE: novnc | ||
- | |||
- | . /etc/rc.subr | ||
- | |||
- | name="novnc" | ||
- | rcvar=novnc_enable | ||
- | command="/usr/local/libexec/novnc/utils/launch.sh" | ||
- | command_args=${novnc_options} | ||
- | |||
- | load_rc_config $name | ||
- | run_rc_command "$1" | ||
- | </code> | ||
- | * /etc/rc.conf を編集する。<code> | ||
- | inetd_enable="YES" | ||
- | novnc_enable="YES" | ||
- | novnc_option="--vnc 192.168.100.2:5901" | ||
- | </code> | ||
- | |||
- | == apache 設定 == | ||
- | WebSockify ディレクトリを組み込む。 | ||
- | * /usr/local/etc/apache24/extra/httpd-ssl.conf を設定する。<code> | ||
- | |||
- | </code> | ||