This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
vps:vps4th2nd_10 [2019/04/21 18:54] hoge@hoge [apache 設定] |
vps:vps4th2nd_10 [2019/05/31 21:41] hoge@hoge [novnc 設定] |
||
---|---|---|---|
Line 35: | Line 35: | ||
xdm_enable="YES" | xdm_enable="YES" | ||
</code> | </code> | ||
- | * /usr/local/lib/X11/xdm/Xaccess 編集<code> | + | * /usr/local/etc/X11/xdm/Xaccess 編集<code> |
* #any host can get a login window | * #any host can get a login window | ||
</code> | </code> | ||
Line 82: | Line 82: | ||
* /usr/local/etc/rc.d/novnc を作成する。<code> | * /usr/local/etc/rc.d/novnc を作成する。<code> | ||
#!/bin/sh | #!/bin/sh | ||
- | # | ||
# PROVIDE: novnc | # PROVIDE: novnc | ||
Line 90: | Line 89: | ||
name="novnc" | name="novnc" | ||
- | rcvar="novnc_enable" | + | rcvar="${name}_enable" |
- | command="/usr/local/libexec/novnc/utils/websockify/run" | + | |
- | command_args=${novnc_options} | + | |
start_cmd="novnc_start" | start_cmd="novnc_start" | ||
novnc_start() | novnc_start() | ||
{ | { | ||
- | ${command} ${command_args} | + | echo "Start run" |
+ | echo ${command_args} | ||
+ | /usr/local/libexec/novnc/utils/websockify/run --daemon ${novnc_local} ${novnc_remote} | ||
} | } | ||
Line 107: | Line 105: | ||
* /etc/rc.conf を編集する。<code> | * /etc/rc.conf を編集する。<code> | ||
novnc_enable="YES" | novnc_enable="YES" | ||
- | novnc_options="--daemon 6080 192.168.100.2:5901" | + | novnc_local="6080" |
+ | novnc_remote="192.168.100.2:5901" | ||
</code> | </code> | ||