0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Barriar を使って Ubuntu から Windows のマウスキーボード操作を行う

Posted at

Linux PC と Windows PC を並べて使用中に、1組のマウス・キーボードで操作することのできる Barriar を使ってみます。

今回は、 Ubuntu PC に接続した マウス・キーボードから Windows を操作してみます。

環境

  • Ubuntu 22.04 LTS
  • Windows 11 Pro
  • Barrier 2.4.0

Ubuntu PC の設定

現在は apt でインストールできるようです。


$ sudo apt install barrier

起動して、Language を日本語にします。

image.png

「サーバー」設定で進めます。
image.png

起動したところ。192.168.1.176 であることがわかります。
image.png

Windows PC での設定

GitHub で公開されているバイナリを使います。

以下のリンクから、
https://github.com/debauchee/barrier/releases

release の実行ファイルをダウンロードしました。今回は 2.4.0 です。
image.png

ダウンロードした BarrierSetup-2.4.0-release.exe を実行します。

Ubuntu と同様に、Language を日本語にして進めます。

image.png

「クライアント」設定で進めます。
image.png
「OK」を押します。
image.png

Barriar Ver2.4.0 では問題があり、「Barrier」-「設定の変更」で、「SSLを使用」を外す必要があるようです。

image.png
必ず「適用」を押して反映します。
image.png

モニター名:「DESKTOP-TTIQII5」を控えておきます。

サーバー側を設定する

Ubuntu 側で、「サーバーの構成設定」を押して、先程控えた「ESKTOP-TTIQII5」を以下のように登録します。
image.png

サーバー側も、「Barriar」-「設定の変更」で「SSLを使用」を外しておく必要があります。

image.png

「適用」を押して反映すると接続でき、Windows 側を操作できるようになります。
image.png

使ってみて

  • サーバー側で「Print Screen」を押してもクライアント側でうまく反映されないようです。
    Windowsキー+Alt+Shirt で代用するようにしています。

  • カクつきが発生します。有線LANを使うのが有効ぽいですが、他にもいろいろなアプローチがあるようです。

image.png

トラブルシューティング

クライアント側のログが以下のようになっているときは、「サーバーの構成設定」ができていません。

image.png

クライアント側のログが以下のようになっているときは、「SSLを使用」を外す必要があります。

image.png

[2025-02-11T21:20:23] ERROR: could not load client certificates
[2025-02-11T21:20:23] ERROR: ssl certificate doesn't exist: C:\Users\admin\AppData\Local\Barrier\SSL\Barrier.pem
[2025-02-11T21:20:23] ERROR: could not load client certificates
[2025-02-11T21:20:23] ERROR: ssl error occurred (generic failure)
[2025-02-11T21:20:23] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
[2025-02-11T21:20:23] ERROR: failed to connect secure socket
[2025-02-11T21:20:38] WARNING: failed to connect to server: Timed out
[2025-02-11T21:20:39] NOTE: connecting to '192.168.1.176': 192.168.1.176:24800
[2025-02-11T21:20:39] INFO: OpenSSL 1.0.2l  25 May 2017
[2025-02-11T21:20:39] ERROR: ssl certificate doesn't exist: C:\Users\admin\AppData\Local\Barrier\SSL\Barrier.pem
[2025-02-11T21:20:39] ERROR: could not load client certificates
[2025-02-11T21:20:39] ERROR: ssl certificate doesn't exist: C:\Users\admin\AppData\Local\Barrier\SSL\Barrier.pem
[2025-02-11T21:20:39] ERROR: could not load client certificates
[2025-02-11T21:20:39] ERROR: ssl error occurred (generic failure)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?