User Tools

Site Tools


vps:vps4th_06

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
Previous revision
vps:vps4th_06 [2016/12/31 17:03]
hoge@hoge [pkg]
vps:vps4th_06 [2019/06/16 15:16] (current)
Line 38: Line 38:
 firewall_type="​open"​ firewall_type="​open"​
 ssd_enable="​YES"​ ssd_enable="​YES"​
 +dbus_enable="​YES"​
 +hald_enable="​YES"​
 </​code>​ </​code>​
     * ifcofig_epair3b\\ jailerで作成したepair3の一端。jailerからprisonerであるdesktopに割り当てる。     * ifcofig_epair3b\\ jailerで作成したepair3の一端。jailerからprisonerであるdesktopに割り当てる。
Line 69: Line 71:
 #cat "​ユーザの公開鍵"​ >> authorized_keys #cat "​ユーザの公開鍵"​ >> authorized_keys
 </​code>​ </​code>​
 +
  
 ===== ソフトウェア導入 ===== ===== ソフトウェア導入 =====
Line 75: Line 78:
   * xorg   * xorg
   * gnucash   * gnucash
 +  * chromium
 +  * tigervnc
   * ja-ibus-mozc   * ja-ibus-mozc
 +  * ja-font-ipa
  
 +==== i-bus / mozc  ====
 +  * X転送を有効にして ssh ログイン
 +  * ibus-setup を起動
 +  * [Input Method] で mozc 以外を Remove
 +  * mozcの設定
 +    * [General] で [Keymap style]を ATOKに変更後 Customize
 +    * keymap を変更
  
- + Mode   Key  ^  Command ​ ^ 
-==== vncserver ==== +|Composition|Ctrl Space|IMEOn| 
-=== 設定 === +|DirectInput|Ctrl Space|IMEOn| 
-  * $HOME/​.vnc/​xstartupを作成する。<​code>​ +|Composition|Ctrl Space|CancelAndIMEOff| 
-#!/bin/sh +|Conversion|Ctrl Space|CancelAndIMEOff| 
- +|Precomposition|Ctrl Space|CancelAndIMEOff|
-startxfce4 +
-vncserver -kill ${DISPLAY} +
-</​code>​ +
-  * chmod<​code>​ +
-# chmod 744 xstartup +
-</​code>​ +
-  * 起動例<​code>​ +
-$ vncserver -geometry 1280x800 +
-</​code>​ +
-  *スクリプト例 startvnc<​code>​ +
-#!/bin/sh +
- +
-DISP=${1} +
- +
-if [ $# -ne 0 ] +
-then +
-          case ${DISP} in +
-                  "​0"​) GEO="​800x600";;​ +
-                  "​1"​) GEO="​1024x768";;​ +
-                  "​2"​) GEO="​1280x800";;​ +
-          esac +
- +
-          vncserver -geometry ${GEO} -depth 15 +
-else +
-          echo "No ARG" +
-fi +
-</​code>​ +
- +
-=== 使用方法 === +
-  - リモート環境より、以下の様に接続する。<​code>​ +
-ssh -i <​秘密鍵>​ <​ユーザ名@接続先>​ -p <​ポート番号>​ -<​ポートフォワード例 L6666:​localhost:​5901>​ +
-</​code>​ +
-  - ログイン後、desktop側でvncserverを起動する。 +
-  - リモート側でvncviewerなどで接続する。+
  
 ==== gnucash ​ ==== ==== gnucash ​ ====
 === 設定 === === 設定 ===
- 
   * 外部からのssh接続でgnucashを利用するため、$HOME/​Tools/​gnucash_x11.shを作成する。<​code>​   * 外部からのssh接続でgnucashを利用するため、$HOME/​Tools/​gnucash_x11.shを作成する。<​code>​
 #!/bin/sh #!/bin/sh
Line 142: Line 120:
   - リモート側に gnucash が出力される。   - リモート側に gnucash が出力される。
  
 +==== firefox ​ ====
 +=== 設定 ===
 +  * 起動時に以下のエラーが出る。<​code>​
 +process 3512: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/​etc/​machine-id":​ No such file or directory
 +See the manual page for dbus-uuidgen to correct this issue.
 +  D-Bus not compiled with backtrace support so unable to print a backtrace
 +Redirecting call to abort() to mozalloc_abort
 +</​code>​
 +  * 対処として、desktop で以下を実行する<​code>​
 +# cd /​var/​db/​dbus
 +# dbus-uuidgen > machine-id
 +</​code>​
 +
 +=== 使用方法 ===
 +  * X転送で使用<​code>​
 +ssh -X -i <​秘密鍵> ​ <​ユーザ名>​@<​ログイン先>​ -p <​ポート番号>​
 +</​code>​
 +
 +==== tigervnc ​ ====
 +=== 設定 ===
 +  * desktop のユーザで初回実行。<​code>​
 +$ vncserver
 +
 +You will require a password to access your desktops.
 +
 +Password:
 +Verify:
 +Would you like to enter a view-only password (y/n)? n
 +#以下略
 +</​code>​
 +
 +  * 起動後、vncserverを停止する。<​code>​
 +$ vncserver -kill :1
 +</​code>​
 +
 +  * $HOME/​.vnc/​config を編集<​code>​
 +geometry=<​width>​x<​height>​
 +</​code>​
vps/vps4th_06.1483171413.txt.gz · Last modified: 2019/06/16 15:16 (external edit)