Upgrade to Pro — share decks privately, control downloads, hide ads and more …

リモートキーボードマウス共有(rkvmを試す)

 リモートキーボードマウス共有(rkvmを試す)

Kenichiro MATOHARA

August 14, 2021
Tweet

More Decks by Kenichiro MATOHARA

Other Decks in Technology

Transcript

  1. synergy/barrierの問題 synergy/barrierの問題 Wayland非対応 装飾キーがおかしくなることがある ShiftやCtrlなどの装飾キーが押しっぱなしになってしまうことがあ る Debian sid(2.3.3+dfsg-1.1) → bullseye(2.3.3+dfsg-1.1)

    環境で頻発して困 っている 現象が起こったときに はある Wayland support? [Donations are being accepted, 61% has been collected so far] · Issue #109 · debauchee/barrier · GitHub 解除するワークアラウンド 4 / 15
  2. 装飾キーリセットワークアラウ 装飾キーリセットワークアラウ ンド例 ンド例 ssh経由で叩いてリセットしている. WMNAME="i3" USERID=$( id -u )

    DISPLAYPID=$( pgrep -u "${USERID}" "${WMNAME}"$ ) export DISPLAY==$( strings /proc/"$DISPLAYPID"/environ | grep ^DISPLAY= ) setxkbmap -layout us xdotool keyup Shift_L Shift_R Control_L Control_R Alt_L Alt_R Super_L Super_R Hyper_L Hyper_R 5 / 15
  3. rkvm setup(server) rkvm setup(server) 1 設定ディレクトリ用意 2 鍵ペア作成 3 設定ファイル作成

    $ mkdir ~/.config/rkvm $ ./target/release/certificate-gen ~/.config/rkvm/identity.p12 \ ~/.config/rkvm/certificate.pem key -d t430s.local Generating a RSA private key .......................................+++++ .....+++++ writing new private key to 'key' ----- Enter Export Password: Verifying - Enter Export Password: $ cp example/server.toml ~/.config/rkvm/ $ vi ~/.config/rkvm/server.toml $ cat ~/.config/rkvm/server.toml listen-address = "0.0.0.0:5258" # Switch to next client by pressing the left alt key. switch-keys = ["LeftAlt"] identity-path = "identity.p12" # Leave unset if no password is set. identity-password = "123456789" 1 2 3 8 / 15
  4. rkvm setup(client) rkvm setup(client) 1 設定ディレクトリ用意 2 鍵コピー 3 設定ファイル作成

    $ mkdir ~/.config/rkvm $ rsync -avc server:~/.config/rkvm/certificate.pem ~/.config/rkvm/ $ cp example/client.toml ~/.config/rkvm/ $ vi ~/.config/rkvm/client.toml $ cat ~/.config/rkvm/client.toml server = "localhost:5258" certificate-path = "certificate.pem" 1 2 3 9 / 15
  5. rkvm server起動 rkvm server起動 起動に失敗する README.md より /dev/uinput への権限が足りない? $

    target/release/server ~/.config/rkvm/server.toml [INFO server] Listening on 0.0.0.0:5258 [ERROR server] Error: Permission denied (os error 13) On Linux, you either need to run either of the programs as root or make /dev/uinput accessible by the user it runs as. 10 / 15
  6. /dev/uinput /dev/uinput 権限確認 権限確認 大丈夫そう( 利用ユーザは matoken ) $ ls

    -l /dev/uinput crw-rw----+ 1 root root 10, 223 Aug 14 12:16 /dev/uinput $ getfacl /dev/uinput getfacl: Removing leading '/' from absolute path names # file: dev/uinput # owner: root # group: root user::rw- user:matoken:rw- group::--- mask::rw- other::--- 11 / 15
  7. rkvm server起動(sudo) rkvm server起動(sudo) とりあえず sudo 経由で起動 起動すると何故かNetwork/Bluetoothが切断される&KVM利用不可 console切り替えもできずmagic SysRqで再起動……

    issueには見当たらないので多分自分の環境の問題(◞‸◟) クリーンな環境を用意して再挑戦する予定(今日Bullseye出るし) $ sudo target/release/server ~matoken/.config/rkvm/server.toml [INFO server] Listening on 0.0.0.0:5258 12 / 15
  8. 奥付 奥付 発表 発表者 利用ソフトウェア ライセンス CC BY-NC-SA 4.0 小江戸らぐ

    8月のオフな集まり(第229回) Kenichiro Matohara(matoken) Asciidoctor Reveal.js 15 / 15