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
Next revision Both sides next revision
vps:vps4th_06 [2016/12/31 17:02]
hoge@hoge [xfce4]
vps:vps4th_06 [2019/02/26 23:23]
127.0.0.1 external edit
Line 69: Line 69:
 #cat "​ユーザの公開鍵"​ >> authorized_keys #cat "​ユーザの公開鍵"​ >> authorized_keys
 </​code>​ </​code>​
 +
  
 ===== ソフトウェア導入 ===== ===== ソフトウェア導入 =====
Line 74: Line 75:
 pkgにて、以下を導入。 pkgにて、以下を導入。
   * xorg   * xorg
-  * xfce 
-    * xfce4ではない 
-  * firefox 
-  * tigervnc 
   * gnucash   * gnucash
 +  * chromium
 +  * tigervnc
   * ja-ibus-mozc   * ja-ibus-mozc
   * ja-font-ipa   * ja-font-ipa
-  * ja-font-ipa-uigothic 
-  * ja-font-ipaex 
-  * ja-font-ipamjm 
  
 +==== i-bus / mozc  ====
 +  * X転送を有効にして ssh ログイン
 +  * ibus-setup を起動
 +  * [Input Method] で mozc 以外を Remove
 +  * mozcの設定
 +    * [General] で [Keymap style]を ATOKに変更後 Customize
 +    * keymap を変更
  
-==== vncserver ==== + Mode   Key  ^  Command ​ ^ 
-=== 設定 === +|Composition|Ctrl Space|IMEOn| 
-  * $HOME/​.vnc/​xstartupを作成する。<​code>​ +|DirectInput|Ctrl Space|IMEOn| 
-#!/bin/sh +|Composition|Ctrl Space|CancelAndIMEOff| 
- +|Conversion|Ctrl Space|CancelAndIMEOff| 
-startxfce4 +|Precomposition|Ctrl Space|CancelAndIMEOff|
-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 149: Line 118:
   - リモート側に 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.txt · Last modified: 2019/06/16 15:16 (external edit)