1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Last updated at Posted at 2025-12-30

「Barriar を使って Ubuntu から Windows のマウスキーボード操作を行う」
https://qiita.com/nanbuwks/items/add2531afc8d38d79c44

では Ubuntu PC の キーボード・マウスで MS-Windows 操作を行いました。

しばらく使っていましたが、何日かに一度接続が切れたり、反応がいまいち悪かったりすることがありました。

Barriar は GitHub 上での進展がもう何年もない状態で、
「Is this project dead? · Issue #1989 · debauchee/barrier」
https://github.com/debauchee/barrier/issues/1989
では、deskflow や input-leap が紹介されている。

https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap

今回、 barriar に変えて deskflow を試してみました。

環境

  • サーバ(キーボード・マウスで操作する側)
    • Ubuntu 22.04 LTS
  • クライアント(サーバより操作される側)
    • MS-Windows11 Pro
    • Ubuntu 24.04 LTS

インストール

Ubuntu 22.04 LTS / 24.LTS へのインストール

「第847回 Deskflowでキーボードとマウスを複数のPCから共用する | gihyo.jp」
https://gihyo.jp/admin/serial/01/ubuntu-recipe/0847

では以下のようにあり、

Deskflowは原則としては24.04 LTSではビルドできません。

記事で勧められている通り Flatpak 版をインストールすることにしました。

事前準備

Flatpak が入っていない場合は以下の記事のように設定。

「Ubuntu に Flatpak をインストール」
https://qiita.com/nanbuwks/items/2db4a0a6b34c21af035b

deskflow インストール

以下のコマンドを実行。

$ flatpak install flathub org.deskflow.deskflow

以下のように進みます。

Required runtime for org.deskflow.deskflow/x86_64/stable (runtime/org.kde.Platform/x86_64/6.10) found in remote flathub
Do you want to install it? [Y/n]: y

org.deskflow.deskflow permissions:
    ipc      network      fallback-x11      wayland      x11      dri      file access [1]     dbus access [2]

    [1] xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.StatusNotifierWatcher, org.kde.kconfig.notify


        ID                                                Branch                 Op            Remote             Download
 1. [✗] org.freedesktop.Platform.GL.default               25.08                  i             flathub             65.9 MB / 140.1 MB
 2. [✗] org.freedesktop.Platform.GL.default               25.08-extra            i             flathub             65.1 MB / 140.1 MB
 3. [✗] org.freedesktop.Platform.VAAPI.Intel              25.08                  i             flathub             13.8 MB / 13.2 MB
 4. [✗] org.freedesktop.Platform.codecs-extra             25.08-extra            i             flathub              4.4 kB / 14.4 MB
 5. [✗] org.kde.Platform.Locale                           6.10                   i             flathub              1.8 kB / 400.3 MB
 6. [✗] org.kde.Platform                                  6.10                   i             flathub             13.6 MB / 386.3 MB
 7. [ ] org.deskflow.deskflow                             stable                 i             flathub            < 3.8 MB

Proceed with these changes to the system installation? [Y/n]: Y

Warning: Error pulling from repo: GPG verification enabled, but no signatures found (use gpg-verify=false in remote config to disable)
Installation complete.

起動

image.png

サーバとして起動します。

image.png

「nanbuwks-B550M-S2H」および「192.168.1.182」と表示されています。

MS-Windows へのインストール

以下のサイトから
https://github.com/deskflow/deskflow?tab=readme-ov-file
image.png

v1.25.0 をダウンロード、インストールします。
image.png

接続できない

サーバ側でのログが、以下のようにして接続がうまくできません。


[2025-12-30T11:13:32.581] INFO: network encryption protocol: TLSv1.3
[2025-12-30T11:13:32.581] NOTE: accepted client connection
[2025-12-30T11:13:33.568] NOTE: new client disconnected
[2025-12-30T11:13:34.713] IPC: peer fingerprint: 7DD611F71D44904ADC258C315C0B43F628229AEA9F10D01F398C3CDE9873882C
[2025-12-30T11:13:34.713] INFO: accepted secure socket
[2025-12-30T11:13:34.713] INFO: network encryption protocol: TLSv1.3
[2025-12-30T11:13:34.713] NOTE: accepted client connection
[2025-12-30T11:13:36.712] NOTE: new client disconnected
[2025-12-30T11:13:37.761] IPC: peer fingerprint: 7DD611F71D44904ADC258C315C0B43F628229AEA9F10D01F398C3CDE9873882C
[2025-12-30T11:13:37.761] INFO: accepted secure socket

サーバ・クライアント双方で「TLS暗号化を有効にする」チェックを外したら接続できました。

image.png

接続できたら、画面配置を設定し「OK」で適用します。
image.png

ここまでホスト名で接続先を指定していましたが、再起動したら以下のようになったのでIPアドレスに変更しました。
image.png

使ってみて

barriar に比べて操作の引っ掛かり感などが少なくてかなり快適です。
まだ使用期間はあまり長くありませんが、今のところ突然接続が切れている、なんてことはなさそうです。

clipboard

残念ながら Ubuntu では clipboard へのコピーが効きません。 Wayland が原因ぽいです。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?