User Tools

Site Tools


vps:vps4th2nd_10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
vps:vps4th2nd_10 [2019/05/30 21:58]
hoge@hoge [xdm]
vps:vps4th2nd_10 [2019/05/31 21:41]
hoge@hoge [novnc 設定]
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>​
  
vps/vps4th2nd_10.txt · Last modified: 2019/10/20 23:30 by hoge@hoge