prisonerのdesktopをVDIにする。
jailerから各設定ファイルを直接編集する。各設定ファイルのプレフィックスは/usr/jail/desktopとなる。
# *.err;kern.warning;auth.notice;mail.crit /dev/console
# 1,31 0-5 * * * root adjkerntz -a
minuid 2201 maxuid 2300 mingid 2201 maxgid 2300
domain "ドメイン名" nameserver "さくらのVPS指定 1" nameserver "さくらのVPS指定 2"
127.0.0.1 localhost localhost.example.com 192.168.100.254 gw gw.example.com 192.168.100.1 web web.example.com 192.168.100.2 desktop desktop.example.com 192.168.100.2 desktop.example.com. 192.168.100.253 vps vps.example.com
hostname="desktop.example.com" ifconfig_epair3b="inet 192.168.100.2 netmask 255.255.255.0" defaultrouter="192.168.100.254" firewall_enable="YES" firewall_type="open" ssd_enable="YES" dbus_enable="YES" hald_enable="YES"
prisoner desktopを起動後、以下の設定を行う。
# jexec desktop /bin/sh
# newaliases /etc/mail/aliases: 27 aliases, longest 10byte, 275 bytes total
ChallengeResponseAuthentication no
# service sshd restart
#cat "ユーザの公開鍵" >> authorized_keys
pkgにて、以下を導入。
Mode | Key | Command |
---|---|---|
Composition | Ctrl Space | IMEOn |
DirectInput | Ctrl Space | IMEOn |
Composition | Ctrl Space | CancelAndIMEOff |
Conversion | Ctrl Space | CancelAndIMEOff |
Precomposition | Ctrl Space | CancelAndIMEOff |
#!/bin/sh export LANG=ja_JP.UTF-8 export LC_ALL=ja_JP.UTF-8 export GTK_IM_MODULE=ibus export QT_IM_MODULE=xim export XMODIFIERS=@im=ibus /usr/local/bin/mozc start /usr/local/bin/ibus-daemon -r --daemonize --xim /usr/local/bin/gnucash
$ ssh -f -Y -i <秘密鍵> -p <ポート番号> <ユーザ名>@<接続先> <path>gnucash_x11.sh
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
# cd /var/db/dbus # dbus-uuidgen > machine-id
ssh -X -i <秘密鍵> <ユーザ名>@<ログイン先> -p <ポート番号>
$ vncserver You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? n #以下略
$ vncserver -kill :1
geometry=<width>x<height>