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/30 22:17]
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 74: Line 77:
 pkgにて、以下を導入。 pkgにて、以下を導入。
   * xorg   * xorg
-  * xfce +  * gnucash 
-    * xfce4ではない +  * chromium
-  * firefox+
   * tigervnc   * tigervnc
-  * gnucash 
   * ja-ibus-mozc   * ja-ibus-mozc
   * ja-font-ipa   * ja-font-ipa
-  * ja-font-ipa-uigothic 
-  * ja-font-ipaex 
-  * ja-font-ipamjm 
  
-===== xfce4 ===== +==== i-bus / mozc  ​==== 
-  * 一度、xfce4起動し、終了する。$HOME.configディレクトリが作成される。 +  * X転送有効して ssh ログイン 
-  * xinitrc作成する。<​code>​ +  * ibus-setup ​起動 
-$ cp /​usr/​local/​etc/​xdg/​xfce4/​xinitrc $HOME/​.config/​xfce4 +  * [Input Method] で mozc 以外を Remove 
-</​code>​ +  * mozc設定 
-  * xinitrc の編集行う。<​code>​ +    * [General] ​で [Keymap style]を ATOK変更後 Customize 
-export LANG=ja_JP.UTF-8 +    * keymap ​を変更
-export LC_ALL=ja_JP.UTF-8 +
-export GTK_IM_MODULE=ibus +
-export QT_IM_MODULE=xim +
-export XMODIFIERS=@im=ibus +
-</​code>​ +
-  * $HOME/​.config/​autostart/​ibus.desktopを編集((/​usr/​local/​etc/​xdg/​autostart/​ibus.desktop記述のままだと、Gnucash の入力域Backspace, arrow key などの反応が非常悪く使用に耐えない。そのため、ibus-daemonの起動オプションを変更している。))する。<​code>​ +
-Exec=ibus-daemon -r --daemonize --xim +
-</​code>​+
  
-==== 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 164: 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.1483103842.txt.gz · Last modified: 2019/06/16 15:16 (external edit)