UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

Ubuntu Serverとしてインストールしたけど普通のデスクトップPCとして使える様にしたい

Surface Go 2をUbuntu Serverとしてインストールしたけど普通のデスクトップPCとして使える様にしたい


概要

更新履歴

  • 2026/05/10 初版

目次

はじめに

  • このドキュメントは,Microsoft Surface Go 2にUbuntu Serverをインストールしたのだが,あとからデスクトップPCとして利用する為に色々なアプリや設定を入れていった履歴を記録したもの.

スクリーンショットツールの環境整備

Flameshotをインストール

  • 資料作成に必須なのでまず最初に.
sudo apt update🆑
sudo apt install flameshot -y🆑
  • インストールが終わったら,メニューに登録される.
  • 時間を置いて撮影するには,コマンドで実行.5秒の例.
flameshot gui --delay 5000🆑
  • 画面全体のスクショを撮る方法.
flameshot full --delay 5000🆑
  • リモートからスクショを撮る場合.
    • 画面とリモート接続しているユーザが同じである必要あり.
$ DISPLAY=:0 flameshot full --delay 5000🆑
flameshot: info: Capture saved as /home/server/Pictures/2026-05-09_23-47.png
ujpadmin@serveradmin:~$

Printキーに割り当てる

  • Printキーを押したらFlameshotが起動する様に設定する.

  • Shortcut Keysを選択.




  • OKボタンを押して,Printキーを押してみる.

  • エラーが出てスクショも撮られない・・・
  • scrotがインストールされているか探す.
ujpadmin@serveradmin:~$ which scrot🆑
ujpadmin@serveradmin:~$
  • 無い.
  • ショートカットキーの設定で,Printキーの定義を確認.
ujpadmin@serveradmin:~$ grep -r "Print" ~/.config/lxqt/🆑
/home/server/.config/lxqt/globalkeyshortcuts.conf:[Print.33]🈁
ujpadmin@serveradmin:~$
  • Print.33の定義を確認.
[Print.33]
Comment=Screen Shot
Enabled=true
Exec=/usr/bin/flameshot, gui, -d, 3000
  • 先ほど定義したものだけで,scrotの定義はなかった.
  • X Desktop Groupの設定を確認.
ujpadmin@serveradmin:~$ grep -r "scrot" /etc/xdg/🆑
/etc/xdg/openbox/rc.xml:  <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed -->
/etc/xdg/openbox/rc.xml:    <action name="Execute"><command>scrot -s</command></action>
/etc/xdg/openbox/rc.xml:  <!-- Launch scrot when Print is pressed -->
/etc/xdg/openbox/rc.xml:    <action name="Execute"><command>scrot</command></action>
ujpadmin@serveradmin:~$
  • OpenBoxの設定の中に設定があった.
    • 現在使っているウィンドウマネージャのLXqtがOpenboxを利用しているので,その設定を継承した模様.

Openboxの設定を個人用にカスタマイズする

  • カスタマイズするために,設定ファイルを自分様にコピーする.
ujpadmin@serveradmin:~$ mkdir -p ~/.config/openbox🆑
ujpadmin@serveradmin:~$ cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml🆑
ujpadmin@serveradmin:~$
  • scrot部分をflameshotに書き換える.
ujpadmin@serveradmin:~$ vi ~/.config/openbox/rc.xml🆑
ujpadmin@serveradmin:~$ diff /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml🆑
250c250
<     <action name="Execute"><command>scrot -s</command></action>
---
>     <action name="Execute"><command>flameshot gui -d 5000</command></action>
317c317
<     <action name="Execute"><command>scrot</command></action>
---
>     <action name="Execute"><command>flameshot gui</command></action>
ujpadmin@serveradmin:~$
  • OpenBoxの設定を再読み込み.
ujpadmin@serveradmin:~$  openbox --reconfigure🆑
ujpadmin@serveradmin:~$
  • これでPrintキーを押せばスクリーンショット画面,alt+Printキーを押せば5秒後にスクリーンショット画面が出る様になる.
  • なお,ショートカットキーの設定は不要なので削除する.

MIcrosoft製品をインストール

リポジトリの登録

  • Microsoft製品を使うために,リポジトリを登録する.
ujpadmin@serveradmin:~$ sudo apt update🆑
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:5 https://pkg.surfacelinux.com/debian release InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
63 packages can be upgraded. Run 'apt list --upgradable' to see them.
ujpadmin@serveradmin:~$ sudo apt install software-properties-common apt-transport-https wget -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.4-1ubuntu4.1).
wget set to manually installed.
The following NEW packages will be installed:
  apt-transport-https
The following packages will be upgraded:
  python3-software-properties software-properties-common
2 upgraded, 1 newly installed, 0 to remove and 61 not upgraded.
Need to get 48.4 kB of archives.

ー略ー

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$ wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -🆑
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
ujpadmin@serveradmin:~$ sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"🆑
Repository: 'deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main'
Description:
Archive for codename: stable components: main
More info: https://packages.microsoft.com/repos/edge
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel. ↩️改行キー🆑
  • Microsoftのリポジトリの登録が完了.
  • リポジトリの情報更新.
ujpadmin@serveradmin:~$ sudo apt update🆑
Hit:1 https://packages.microsoft.com/repos/edge stable InRelease🈁
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu noble InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:5 http://jp.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:6 https://pkg.surfacelinux.com/debian release InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
61 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://packages.microsoft.com/repos/edge/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
ujpadmin@serveradmin:~$
  • Wとしてワーニングが出ている.Debian系で非推奨となったtrusted.gpg形式を使っていること.将来的に別方式になるそう.
  • つまり何年か?後にはこの手順は使えないかも.

Microsoft Edgeをインストール

  • Microsoft Edgeのパッケージインストール.
ujpadmin@serveradmin:~$ sudo apt install microsoft-edge-stable🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fonts-liberation fonts-liberation-sans-narrow libauthen-sasl-perl libclone-perl libdata-dump-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl
  libnet-ssleay-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl libwww-perl
  libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
  perl-openssl-defaults xdg-utils
Suggested packages:
  libdigest-hmac-perl libgssapi-perl libio-compress-brotli-perl libcrypt-ssleay-perl libsub-name-perl
  libauthen-ntlm-perl libunicode-map8-perl libunicode-string-perl xml-twig-tools debhelper
The following NEW packages will be installed:
  fonts-liberation fonts-liberation-sans-narrow libauthen-sasl-perl libclone-perl libdata-dump-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl
  libnet-ssleay-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl libwww-perl
  libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
  microsoft-edge-stable perl-openssl-defaults xdg-utils
0 upgraded, 38 newly installed, 0 to remove and 61 not upgraded.
Need to get 186 MB of archives.
After this operation, 655 MB of additional disk space will be used.
Do you want to continue? [Y/n]
  • インストール作業で655MBつかう模様.
  • インストールを進めるためにyを入力.
Do you want to continue? [Y/n] y🆑
Get:1 https://packages.microsoft.com/repos/edge stable/main amd64 microsoft-edge-stable amd64 148.0.3967.54-1 [182 MB]
Get:2 http://jp.archive.ubuntu.com/ubuntu noble/main amd64 fonts-liberation all 1:2.1.5-3 [1,603 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu noble/main amd64 xdg-utils all 1.1.3-4.1ubuntu3 [62.0 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu noble/main amd64 fonts-liberation-sans-narrow all 1:1.07.6-4 [197 kB]
ー略ー
No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$

  • インストールしたらアプリケーションメニューに登録されるので起動.
  • 初期画面は次の通り.

  • 起動したらWindows版と遜色ない感じ.

MIcrosoftのUbuntu用のリポジトリを登録

  • MicrosoftがUbuntu用に提供しているソフトウェアが収録されているリポジトリを登録.
  • Google AIモードがFQDNを表示できないバグがいまあるので,URLを変数に入れて呼び出す方式になってる.
RELEASE=$(lsb_release -rs)🆑
echo $RELEASE🆑
curl -sSL https://microsoft.com -o /tmp/microsoft-prod.list🆑
sudo mv /tmp/microsoft-prod.list /etc/apt/sources.list.d/microsoft-prod.list🆑
MS_DOMAIN="packages.microsoft.com"🆑
OS_VER="24.04"🆑
echo "deb [arch=amd64,arm64,armhf] https://$MS_DOMAIN/ubuntu/$OS_VER/prod noble main" | sudo tee /etc/apt/sources.list.d/microsoft-prod.list🆑
  • 次の様に表示された.
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/ubuntu/24.04/prod noble main
  • 署名キーの登録.
ujpadmin@serveradmin:~$ curl -sSL https://$MS_DOMAIN/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null🆑
ujpadmin@serveradmin:~$
  • パッケージリストのアップデート.
ujpadmin@serveradmin:~$ sudo apt update🆑
Hit:1 https://packages.microsoft.com/repos/edge stable InRelease
Hit:2 https://packages.microsoft.com/repos/edge-stable stable InRelease
Get:3 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease [3,600 B]🈁
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:5 http://jp.archive.ubuntu.com/ubuntu noble InRelease
Get:6 https://packages.microsoft.com/ubuntu/24.04/prod noble/main armhf Packages [11.6 kB]🈁
Hit:7 http://jp.archive.ubuntu.com/ubuntu noble-updates InRelease
Get:8 https://packages.microsoft.com/ubuntu/24.04/prod noble/main arm64 Packages [112 kB]
Get:9 https://packages.microsoft.com/ubuntu/24.04/prod noble/main all Packages [643 B]
Get:10 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 Packages [139 kB]
Hit:11 http://jp.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:12 https://pkg.surfacelinux.com/debian release InRelease
Fetched 266 kB in 2s (163 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
41 packages can be upgraded. Run 'apt list --upgradable' to see them.
ujpadmin@serveradmin:~$
  • Ubuntu用のMicrosoftのリポジトリが追加された.
  • どの様なパッケージが入っているか確認.
ujpadmin@serveradmin:~$ grep -h "^Package: " /var/lib/apt/lists/packages.microsoft.com_ubuntu_24.04_prod_dists_noble_main_binary-amd64_Packages | cut -d ' ' -f 2|sort|uniq🆑
aadsshlogin
aadsshlogin-selinux
acms-client
adutil
aks-node-controller
aks-secure-tls-bootstrap-client
azcmagent
azcopy
azfilesauth
aziot-edge
aziot-identity-service
aznfs
aztfexport
azure-acr-credential-provider
azure-functions-core-tools
azure-functions-core-tools-4
azurelustre-csi
blobfuse2
blobfuse2-preview
containerd-accelerated-container-image
containerd-overlaybd
containernetworking-plugins
dcgm-exporter
deviceupdate-agent
dotnet-apphost-pack-6.0
ig
intune-portal
jaz
jcd🈁 超能力を持った cd コマンド
k8s-device-plugin
kubeadm
kubectl
kubectl-gadget
kubectx
kubelet
kubelogin
kubens
kubernetes-coredns
kubernetes-cri-tools
libkmpp
libkmpp-client
libkmpp-containers
libkmpp-containers-client
libkmpp-containers-dev
libkmpp-containers-test
libkmpp-dev
libmsquic
mdatp
mde-netfilter🈁
mde-netfilter-src
microsoft-identity-broker
microsoft-identity-diagnostics
moby-buildx
moby-cli
moby-compose
moby-containerd
moby-engine
moby-runc
moby-tini
msft-golang🈁
msodbcsql17
msodbcsql18
msopenjdk-11
msopenjdk-17
msopenjdk-21
msopenjdk-25🈁
mssql-tools🈁
mssql-tools18
node-exporter-kubernetes
node-problem-detector-kubernetes
nvidia-device-plugin
omi
powershell🈁
powershell-lts
powershell-preview
procdump🈁
procmon🈁
scx
symcrypt
symcrypt-openssl
sysinternalsebpf
sysmonforlinux🈁
trivy🈁
virtualclient
ujpadmin@serveradmin:~$
  • いろいろあるなぁ.

Microsoft Defenderのインストール

  • 私はOffice 365 Personalを契約しているので,AI曰く,利用できるらしい.
ujpadmin@serveradmin:~$ sudo apt install mdatp -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  mdatp
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 170 MB of archives.
After this operation, 474 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 mdatp amd64 101.26032.0000 [170 MB]
Fetched 170 MB in 30s (5,727 kB/s)
Selecting previously unselected package mdatp.
(Reading database ... 135315 files and directories currently installed.)
Preparing to unpack .../mdatp_101.26032.0000_amd64.deb ...
Unpacking mdatp (101.26032.0000) ...
Setting up mdatp (101.26032.0000) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor
  • サービスが起動しているか動作確認.
ujpadmin@serveradmin:~$ mdatp health🆑
ATTENTION: No license found. Contact your administrator for help.
healthy                                     : false🈁
health_issues                               : ["missing license"]🈁
licensed                                    : false
engine_version                              : "1.1.26010.1004"
engine_load_status                          : "Engine load succeeded"
app_version                                 : "101.26032.0000"
org_id                                      : ""
log_level                                   : "info"
machine_guid                                : "7f1e8e4f-23f3-463a-beb5-1af66a457ec7"
release_ring                                : "Production"
product_expiration                          : unavailable
cloud_enabled                               : true
cloud_automatic_sample_submission_consent   : "safe"
cloud_diagnostic_enabled                    : false
cloud_pin_certificate_thumbs                : false
passive_mode_enabled                        : true
behavior_monitoring                         : "disabled"
real_time_protection_enabled                : false
real_time_protection_available              : true
real_time_protection_subsystem              : "fanotify"
supplementary_events_subsystem              : "ebpf"
automatic_definition_update_enabled         : true
definitions_updated                         : May 10, 2026 at 12:08:42 AM
definitions_updated_minutes_ago             : 26
definitions_version                         : "1.449.529.0"
definitions_status                          : "up_to_date"
edr_early_preview_enabled                   : "disabled"
edr_device_tags                             : []
edr_group_ids                               : ""
edr_configuration_version                   : unavailable
edr_machine_id                              : "844db18cb0bd4b909beee157b4ddcf210e178a6e"
ecs_configuration_version                   : unavailable
conflicting_applications                    : []
network_protection_status                   : "stopped"
network_protection_enforcement_level        : "disabled"
ujpadmin@serveradmin:~$
  • ライセンスがないと言われた.その後,よくよく調べると結局Office PersonalにはLinuxでDefenderを使うライセンスは無いとのこと.
    • AIのハルシネーション.もっともらしく嘘をつく.
  • アンインストール.
ujpadmin@serveradmin:~$ sudo apt remove --purge mdatp🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  mdatp*
0 upgraded, 0 newly installed, 1 to remove and 41 not upgraded.
After this operation, 474 MB disk space will be freed.
Do you want to continue? [Y/n] y🆑
(Reading database ... 135677 files and directories currently installed.)
Removing mdatp (101.26032.0000) ...
(Reading database ... 135317 files and directories currently installed.)
Purging configuration files for mdatp (101.26032.0000) ...
ujpadmin@serveradmin:~$
  • 後片付け完了.

procmonをインストール

  • Windowsだとsysinternalで用意されているプロセスモニターのLinux版.
ujpadmin@serveradmin:~$ sudo apt install procmon -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  sysinternalsebpf🈁
The following NEW packages will be installed:
  procmon sysinternalsebpf
0 upgraded, 2 newly installed, 0 to remove and 41 not upgraded.
Need to get 3,492 kB of archives.
After this operation, 22.6 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 sysinternalsebpf amd64 1.6.0 [808 kB]
Get:2 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 procmon amd64 2.2.1 [2,685 kB]
Fetched 3,492 kB in 3s (1,248 kB/s)
Selecting previously unselected package sysinternalsebpf.
(Reading database ... 135315 files and directories currently installed.)
Preparing to unpack .../sysinternalsebpf_1.6.0_amd64.deb ...
Unpacking sysinternalsebpf (1.6.0) ...
Selecting previously unselected package procmon.
Preparing to unpack .../procmon_2.2.1_amd64.deb ...
Unpacking procmon (2.2.1) ...
Setting up sysinternalsebpf (1.6.0) ...
Success!
Library installed to    /usr/lib/x86_64-linux-gnu/libsysinternalsEBPF.so
Header installed to    /usr/include/libsysinternalsEBPF.h
Support files installed to /opt/sysinternalsEBPF
Setting up procmon (2.2.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • 一緒にインストールされたsysinternals-ebpf は,Microsoftが提供しているツール群(Procmon, Sysmon for Linuxなど)をUbuntuなどのLinux上で動かすための基盤(バックエンド)となるライブラリ.
  • procmonを起動する.
sudo procmon🆑
  • コンソールの画面が次の様になる.

  • 次の様なエラーが出てる.
libbpf: failed to find valid kernel BTF
libbpf: Error loading vmlinux BTF: -ESRCH
  • Ubuntu 24.04(比較的新しい環境)で eBPF(システムの動きを覗く仕組み)がカーネル内部の設計図(BTF)を見つけられない ときに発生する典型的な現象.
  • カーネルのデバッグ情報をインストールする
ujpadmin@serveradmin:~$ sudo apt install linux-tools-common linux-tools-$(uname -r) -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-tools-6.18.7-surface-1
E: Couldn't find any package by glob 'linux-tools-6.18.7-surface-1'
ujpadmin@serveradmin:~$
  • surface用のカスタムカーネルなのでエラーになってる.
  • 今あるカーネルから直接「設計図(BTF)」を読み込ませる方法にする.
ujpadmin@serveradmin:~$ sudo apt install linux-tools-common -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-tools-common is already the newest version (6.8.0-111.111).
linux-tools-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
ujpadmin@serveradmin:~$
  • これでエラーは出なくなったけど,Segmentation faultになる.
  • アンインストールする.
sudo apt remove --purge procmon🆑
  • Linux-Surfaceカーネルだと敷居が高いか.

Visual Sudio Code(VS Code)

  • エディタをインストールする.
ujpadmin@serveradmin:~$ sudo apt install code🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

No apt package "code", but there is a snap with that name.
Try "snap install code"

E: Unable to locate package code
 100 ujpadmin@serveradmin:~$ sudo apt install code -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

No apt package "code", but there is a snap with that name.
Try "snap install code"

E: Unable to locate package code
 100 ujpadmin@serveradmin:~
  • microsoft-prod.list には、VS Code が含まれていない.
  • 直接インストールする.
ujpadmin@serveradmin:~$ MS_FQDN="packages.microsoft.com"🆑
ujpadmin@serveradmin:~$ curl -sSL https://$MS_FQDN/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/packages.microsoft.gpg > /dev/null🆑
ujpadmin@serveradmin:~$ echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://$MS_FQDN/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list🆑
deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main🈁
ujpadmin@serveradmin:~$
  • リポジトリの更新
ujpadmin@serveradmin:~$ sudo apt update🆑
Hit:1 https://packages.microsoft.com/repos/edge stable InRelease
Hit:2 https://packages.microsoft.com/repos/edge-stable stable InRelease
Hit:3 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease
Get:4 https://packages.microsoft.com/repos/code stable InRelease [3,590 B]
Get:5 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:6 http://jp.archive.ubuntu.com/ubuntu noble InRelease
Get:7 http://jp.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:8 https://packages.microsoft.com/repos/code stable/main armhf Packages [26.9 kB]🈁
Get:9 https://packages.microsoft.com/repos/code stable/main arm64 Packages [26.9 kB]🈁
Get:10 https://packages.microsoft.com/repos/code stable/main amd64 Packages [26.8 kB]🈁
Hit:11 https://pkg.surfacelinux.com/debian release InRelease
Get:12 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.9 kB]
Get:13 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [74.2 kB]
Get:14 http://jp.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:15 http://jp.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [178 kB]
Get:16 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [386 kB]
Get:17 http://jp.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:18 http://jp.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [5,740 B]
Get:19 http://jp.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [10.5 kB]
Fetched 1,140 kB in 3s (391 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
41 packages can be upgraded. Run 'apt list --upgradable' to see them.
ujpadmin@serveradmin:~$
  • 3つほど追加された模様.
  • インストールする.
ujpadmin@serveradmin:~$ sudo apt install code -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  socat
The following NEW packages will be installed:
  code socat
0 upgraded, 2 newly installed, 0 to remove and 41 not upgraded.
Need to get 148 MB of archives.

ー略ー

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • メニューにProgrammingカテゴリが追加され,Visual Studio Codeが追加された.
  • コマンドでもアプリは起動できる.

Microsoft Fontsのインストール

  • Microsoftが提供するフォントをインストールする.
  • 日本語フォント,メイリオやMSゴシック等は含まれていない.
ujpadmin@serveradmin:~$ sudo apt install ttf-mscorefonts-installer🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  cabextract🈁
The following NEW packages will be installed:
  cabextract ttf-mscorefonts-installer
0 upgraded, 2 newly installed, 0 to remove and 41 not upgraded.
Need to get 50.3 kB of archives.
  • cabextractも追加インストールされる.
    • .cabファイルを展開するツール.
  • 次の様に表示される.

  • 利用規約.

  • 次に様に聞かれているので,同意する倍はYesを.(TABキーで選択できる)
    • このパッケージをインストールするには、ライセンス条項「TrueType Web用コアフォントEULA」に同意する必要があります。同意しない場合、インストールはキャンセルされます。EULAライセンス条項に同意しますか?
  • Yesにすると次の様にインストールされるフォント名などがわかる.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.

Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/andale32.exe
  extracting fontinst.inf
  extracting andale.inf
  extracting fontinst.exe
  extracting AndaleMo.TTF
  extracting ADVPACK.DLL
  extracting W95INF32.DLL
  extracting W95INF16.DLL

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/arial32.exe
  extracting FONTINST.EXE
  extracting fontinst.inf
  extracting Ariali.TTF
  extracting Arialbd.TTF
  extracting Arialbi.TTF
  extracting Arial.TTF

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/arialb32.exe
  extracting fontinst.exe
  extracting fontinst.inf
  extracting AriBlk.TTF

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/comic32.exe
  extracting fontinst.inf
  extracting Comicbd.TTF
  extracting Comic.TTF
  extracting fontinst.exe

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/courie32.exe
  extracting cour.ttf
  extracting courbd.ttf
  extracting courbi.ttf
  extracting fontinst.inf
  extracting couri.ttf
  extracting fontinst.exe

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/georgi32.exe
  extracting fontinst.inf
  extracting Georgiaz.TTF
  extracting Georgiab.TTF
  extracting Georgiai.TTF
  extracting Georgia.TTF
  extracting fontinst.exe

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/impact32.exe
  extracting fontinst.exe
  extracting Impact.TTF
  extracting fontinst.inf

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/times32.exe
  extracting fontinst.inf
  extracting Times.TTF
  extracting Timesbd.TTF
  extracting Timesbi.TTF
  extracting Timesi.TTF
  extracting FONTINST.EXE

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/trebuc32.exe
  extracting FONTINST.EXE
  extracting trebuc.ttf
  extracting Trebucbd.ttf
  extracting trebucbi.ttf
  extracting trebucit.ttf
  extracting fontinst.inf

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/verdan32.exe
  extracting fontinst.exe
  extracting fontinst.inf
  extracting Verdanab.TTF
  extracting Verdanai.TTF
  extracting Verdanaz.TTF
  extracting Verdana.TTF

All done, no errors.
Extracting cabinet: /var/lib/update-notifier/package-data-downloads/partial/webdin32.exe
  extracting fontinst.exe
  extracting Webdings.TTF
  extracting fontinst.inf
  extracting Licen.TXT

All done, no errors.
All fonts downloaded and installed.
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • 次の様に書かれてる.
    • You are free to download these fonts and use them for your own use,but you may not redistribute them in modified form, including changes to the file name or packaging format.
      • これらのフォントは自由にダウンロードしてご自身の用途にご利用いただけますが、ファイル名やパッケージ形式の変更など、改変した形で再配布することはできません。
  • 日本語フォントは配布されてないので,Windowsが動作するパソコンからコピーで持ってくるしか無い.
    • Google AIモードに聞いてみた.
      • Q:
        • Windowsのフォントをコピーするのはライセンス違反になる?ちなみにSurface上でUbuntuを動かしています.
      • A:
        • 結論から言うと、厳密にはグレー(あるいは契約違反の可能性が高い)ですが、Microsoft 365を契約し、同じハードウェア(Surface)上で使用している場合は、実質的に「許容範囲内」とみなされることが多いです。

その他のブラウザのインストール

Brave Browser

  • リポジトリを追加してダウンロード.
ujpadmin@serveradmin:~$ sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg \
  https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg🆑
ujpadmin@serveradmin:~$ echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] \
  https://brave-browser-apt-release.s3.brave.com/ stable main" | \
  sudo tee /etc/apt/sources.list.d/brave-browser-release.list🆑
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg]   https://brave-browser-apt-release.s3.brave.com/ stable main
ujpadmin@serveradmin:~$ sudo apt update && sudo apt install brave-browser -y🆑
Get:1 https://brave-browser-apt-release.s3.brave.com stable InRelease [7,546 B]🈁
Hit:2 https://packages.microsoft.com/repos/edge stable InRelease
Get:3 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages [29.8 kB]
Hit:4 http://jp.archive.ubuntu.com/ubuntu noble InRelease

ー略ー

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • 特に問題なく完了.

Midoriのインストール

  • 軽量ブラウザらしい.かつてはWebKitだったけど現在はGeckoをエンジンとしている.
  • 今回はSnapという仕組みでインストール.
ujpadmin@serveradmin:~$ sudo snap install midori🆑
[sudo] password for server:
midori v8.0-31-gf6b3b1e from Christian Dywan (kalikiana) installed
ujpadmin@serveradmin:~$

  • インストールして起動してみたら日本語が表示されない
  • バージョンが古い.
  • Midori v8.0-31 は、Snapなどで配布されていたが古いものらしい.
    • リポジトリの管理者が悪いのか,
    • アプリケーション配布元が悪い
    • バージョンアップの必要性がない

Flatpakをインストール

  • Midoriの最新版をインストールするために,Flatpakという仕組みを導入.
ujpadmin@serveradmin:~$ sudo apt install flatpak -y🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libavahi-glib1 libmalcontent-0-0 libostree-1-1 p11-kit p11-kit-modules xdg-dbus-proxy
Suggested packages:

ー略ー

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • リポジトリからインストールする.
ujpadmin@serveradmin:~$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo🆑
ujpadmin@serveradmin:~$ flatpak install flathub org.midori_browser.Midori🆑

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/server/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

ー略ー

org.midori_browser.Midori permissions:
    ipc                   network               fallback-x11                 pulseaudio       wayland       x11       dri
    file access [1]       dbus access [2]       system dbus access [3]

    [1] xdg-download
    [2] org.freedesktop.Notifications, org.freedesktop.secrets
    [3] org.freedesktop.GeoClue2


        ID                                               Branch                 Op            Remote             Download
 1.     org.freedesktop.Platform.GL.default              23.08                  i             flathub            < 170.0 MB
 2.     org.freedesktop.Platform.GL.default              23.08-extra            i             flathub            < 170.0 MB
 3.     org.freedesktop.Platform.VAAPI.Intel             23.08                  i             flathub             < 13.6 MB
 4.     org.freedesktop.Platform.openh264                2.4.1                  i             flathub            < 976.5 kB
 5.     org.gnome.Platform.Locale                        46                     i             flathub            < 386.7 MB (partial)
 6.     org.gnome.Platform                               46                     i             flathub            < 367.4 MB
 7.     org.midori_browser.Midori.Locale                 stable                 i             flathub              < 1.9 MB (partial)
 8.     org.midori_browser.Midori                        stable                 i             flathub             < 46.8 MB

Proceed with these changes to the system installation? [Y/n]:
  • 関連するプログラムパッケージも含めて確認の模様.1GBくらい入りそう・・・これ本当に軽いのだろうか.まぁファイルサイズと動作が軽快なのは比例しないかもしれない.
==== AUTHENTICATING FOR org.freedesktop.Flatpak.modify-repo ====
Authentication is required to modify a system repository
Authenticating as: server
Password:🔑
  • この様なダイアログが8パッケージ分,毎回でてくる...

org.midori_browser.Midori permissions:
    ipc                   network               fallback-x11                 pulseaudio       wayland       x11       dri
    file access [1]       dbus access [2]       system dbus access [3]

    [1] xdg-download
    [2] org.freedesktop.Notifications, org.freedesktop.secrets
    [3] org.freedesktop.GeoClue2


        ID                                               Branch                 Op            Remote             Download
 1. [✓] org.freedesktop.Platform.GL.default              23.08                  i             flathub            169.3 MB / 170.0 MB
 2. [✓] org.freedesktop.Platform.GL.default              23.08-extra            i             flathub             23.7 MB / 170.0 MB
 3. [✗] org.freedesktop.Platform.VAAPI.Intel             23.08                  i             flathub             13.4 MB / 13.6 MB🈁
 4. [✓] org.freedesktop.Platform.openh264                2.4.1                  i             flathub            920.7 kB / 976.5 kB
 5. [✓] org.gnome.Platform.Locale                        46                     i             flathub             18.2 kB / 386.7 MB
 6. [✓] org.gnome.Platform                               46                     i             flathub            310.8 MB / 367.4 MB
 7. [✓] org.midori_browser.Midori.Locale                 stable                 i             flathub              7.9 kB / 1.9 MB
 8. [✓] org.midori_browser.Midori                        stable                 i             flathub             46.2 MB / 46.8 MB

Warning: Failed to get revokefs-fuse socket from system-helper: Flatpak system operation GetRevokefsFd not allowed for user
Warning: Flatpak system operation Deploy not allowed for user
Installation complete.
ujpadmin@serveradmin:~$
  • パスワード打ち間違えか何かで1つだけパッケージのインストールをしないままになった.
  • 単体でインストールする.
ujpadmin@serveradmin:~$ flatpak install flathub org.freedesktop.Platform.VAAPI.Intel🆑

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/server/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for matches…
Similar refs found for ‘org.freedesktop.Platform.VAAPI.Intel’ in remote ‘flathub’ (system):

   1) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08
   2) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/24.08
   3) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08
   4) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/25.08
   5) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6
   6) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/20.08
   7) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08
   8) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.08
   9) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/23.08🈁

Which do you want to use (0 to abort)? [0-9]: 9🆑

Info: runtime org.freedesktop.Platform.VAAPI.Intel branch 23.08 is end-of-life, with reason:
   org.freedesktop.Platform 23.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.


        ID                                              Branch            Op           Remote            Download
 1. [✓] org.freedesktop.Platform.VAAPI.Intel            23.08             i            flathub           13.4 MB / 13.6 MB

Installation complete.
ujpadmin@serveradmin:~$

  • インストールするバージョンを選べと言われたので,先ほどインストールしようとされていた23.08を選択した.
  • インストールに成功したので起動してみる.
  • バージョンが9.0.
  • flatpakのリポジトリにある最新のバージョンを確認.
ujpadmin@serveradmin:~$ flatpak remote-info flathub org.midori_browser.Midori🆑
         ID: org.midori_browser.Midori
        Ref: app/org.midori_browser.Midori/x86_64/stable
       Arch: x86_64
     Branch: stable
 Collection: org.flathub.Stable
   Download: 46.8 MB
  Installed: 123.8 MB
    Runtime: org.gnome.Platform/x86_64/46
        Sdk: org.gnome.Sdk/x86_64/46

     Commit: ba1f1dd298316d2881c294fbe4de8937f3a693a07c50dab0ca65cf48ee1345e5
     Parent: c8c01f6e582e832295d0ea8bcf9f1e386c184f30506275329a9a8eea1832ac8e
End-of-life: The WebkitGtk version of Midori is discontinued. Please consider switching to https://astian.org/midori-browser/
    Subject: EOL (34b6c5e6)
       Date: 2024-09-30 12:27:45 +0000🈁
ujpadmin@serveradmin:~$
  • どちらにしても2024年なので古そう.
  • Snapでバージョンを調べてみる.
ujpadmin@serveradmin:~$ snap info midori🆑
name:      midori
summary:   a lightweight, fast, and free web browser
publisher: Christian Dywan (kalikiana)
store-url: https://snapcraft.io/midori
contact:   christian@twotoasts.de
license:   unset
description: |
  Midori is a lightweight yet powerful web browser which runs just as well on little embedded
  computers named for delicious pastries as it does on beefy machines with a core temperature
  exceeding that of planet earth. And it looks good doing that, too. Oh, and of course it's free
  software.

  Privacy out of the box:

      • Adblock filter list support.
      • Private browsing.
      • Manage cookies and scripts.

  Productivity features:

      • Open a 1000 tabs instantly.
      • Easy web apps creation.
      • Customizable side panels.
      • User scripts and styles a la Greasemonkey.
      • Web developer tools powered by WebKit.
commands:
  - midori
snap-id:      PZyTTgd3zCbAxCcecqeDgeUPItOv58KT
tracking:     latest/stable
refresh-date: today at 02:41 JST
channels:
  latest/stable:    v8.0-31-gf6b3b1e 2019-08-05 (550) 169MB -
  latest/candidate: ↑
  latest/beta:      ↑
  latest/edge:      v9.0-7-gd8546ca  2019-10-12 (576) 168MB -🈁
installed:          v8.0-31-gf6b3b1e            (550) 169MB -🈁
ujpadmin@serveradmin:~$
  • インストールされているのがv8.0-31で最新版がv9.0-7.
  • v8.0-31はWebKitの最後のバージョンらしい.
  • なんか管理体制の把握が面倒なので取りやめします.

Falkonのインストール

  • Midoriは挫折したので,別の軽量ブラウザを試す.
ujpadmin@serveradmin:~$ sudo apt install falkon🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.

ー略ー
User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • インストール完了したので動かす.
  • これも古い.24.01.75というのは,24年1月75版らしい.
  • しかし安定版らしい.日本語も問題なさそうだし.

Seamonkeyのインストール

  • これまでMidoriとかリポジトリで苦労したので,Seamonkeyはダウンロードしてインストール.
  • うちでは主にComposerをHTMLエディタとして使ってる.
ujpadmin@serveradmin:~$ cd ~/Downloads🆑
ujpadmin@serveradmin:~/Downloads$ wget "https://archive.seamonkey-project.org/releases/2.53.23/linux-x86_64/ja/seamonkey-2.53.23.ja.linux-x86_64.tar.bz2"🆑
ujpadmin@serveradmin:~/Downloads$ tar -xjf seamonkey-2.53.23.ja.linux-x86_64.tar.bz2🆑
ujpadmin@serveradmin:~/Downloads$ sudo mv seamonkey /opt/🆑
[sudo] password for server:🔑
ujpadmin@serveradmin:~/Downloads$ /opt/seamonkey/seamonkey &🆑
  • 簡単で良い.しかしスタートメニュー?みたいなのに登録されない.

日本語入力環境を整える

  • Ubuntu Serverでインストールしたので日本語入力エンジンがインストールされてない.
  • 標準(デファクトスタンダード)となっている日本語入力ソフトは Mozc(モズク) らしい.
  • 「Google 日本語入力」のオープンソース版とのこと.

MozcとFcitx 5のインストール

  • 入力メソッドはFcitx 5,入力エンジンがMozcの組み合わせがトレンドらしいのでそれらをインストール.
ujpadmin@serveradmin:~$ sudo apt install -y fcitx5 fcitx5-mozc🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:

ー略ー

Restarting services...

Service restarts being deferred:
 systemctl restart NetworkManager.service

No containers need to be restarted.

User sessions running outdated binaries:
 server @ session #1: lxqt-session[1713], xinit[1696]
 server @ user manager service: sh[2171], systemd[1415]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • システムの入力メソッドを変更する.
ujpadmin@serveradmin:~/Downloads$ im-config -n fcitx5🆑
ujpadmin@serveradmin:~/Downloads$
  • 一旦ログアウト.(X-Windowsを終了)
  • 再ログイン.(startxコマンドでX-Windowsを起動)
  • 設定ツールを起動.
ujpadmin@serveradmin:~$ fcitx5-configtool🆑
  • 設定ツールで,Input Methodタブを開く.
  • Available Input Methodでmozcを検索.

  • ←アイコンを押して左側ペインに追加.


  • 右下のApplyボタンを押下.
  • 動作しました.

fcitxの日本語設定

  • インプットメソッドのFcitx 5の設定画面が英語.
  • なので,これを日本語で表示させる様にする.
  • fcitx5-chinese-addons-dataをインストール.これはchineseとあるがアジア圏の画面設定用データがはいっているものとのこと.

[code]
server@serveradmin:~$ sudo apt install -y fcitx5-chinese-addons-data fcitx5-modules🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
fcitx5-modules is already the newest version (5.1.7-1build3).
fcitx5-modules set to manually installed.
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common
  libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin
  libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  fcitx5-chinese-addons-data
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 42.1 kB of archives.

ー略ー
[/code]

  • 以下の様な言語関連の環境変数を設定されているか確認.

[code]
export LANG=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8
[/code]

  • 環境変数をセットする.

[code]
server@serveradmin:~$ export LANG=ja_JP.UTF-8🆑
server@serveradmin:~$ export LC_ALL=ja_JP.UTF-8🆑
-bash: warning: setlocale: LC_ALL: cannot change locale (ja_JP.UTF-8)
server@serveradmin:~$
[/code]

  • 日本語ロケールが入ってないので生成する.

[code]
server@serveradmin:~$ sudo locale-gen ja_JP.UTF-8🆑
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (ja_JP.UTF-8)
Generating locales (this might take a while)...
  ja_JP.UTF-8... done
Generation complete.
server@serveradmin:~$
[/code]

  • 生成完了.
  • システムデフォルトに設定する.

[code]
server@serveradmin:~$ sudo update-locale LANG=ja_JP.UTF-8🆑
server@serveradmin:~$
[/code]

  • .profileファイルを確認.

[code]
server@serveradmin:~$ cat /home/server/.profile🆑
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi
server@serveradmin:~$
[/code]

  • 設定がなかったので,.profileに追記する.

[code]
server@serveradmin:~$ vi /home/server/.profile🆑
server@serveradmin:~$ cat /home/server/.profile🆑
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

export LANG=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8

server@serveradmin:~$
[/code]

  • ログアウトして,ログインし,再度ロケールを設定する.

[code]
server@serveradmin:~$ echo $LANG🆑
ja_JP.UTF-8
server@serveradmin:~$ echo $LC_ALL🆑
ja_JP.UTF-8
server@serveradmin:~$
[/code]

  • 設定されていることが確認できた.
  • X Windowsを起動し,Mozcの設定を呼び出す.

  • この画面がそもそも日本語化されてる...
  • 日本語化成功しました.
  • Fcitx だけじゃなくて全体が変わりました.

macOSみたいに無変換・変換キーで日本語入力切り替えをする

  • 画面右下のMozcのメニューを右クリックで設定を開く.

  • 入力メソッドを選択.

  • Mozcを選択して,設定アイコンをクリック.


  • Configration Toolの設定を選択.

  • 一般タブのキー設定から編集を選択.

  • 編集を押下.

  • エントリーを追加を選択.
  • IMEの無効化と有効化をこの通りに設定する.

  • ダブルクリックとかを駆使して設定することになる.

alacarteをインストールしてアプリケーションメニューにSeamonkeyを追加する

  • seamonkeyはaptじゃなくてダウンロードしてファイルを配置してインストールしたので,インストーラーを使ってない.
  • その関係か,アプリケーションメニューにアプリが登録されないので,手動で追加する.
  • 追加する際に,GUIで追加できるalacarteをインストールする.
ujpadmin@serveradmin:~$ sudo apt install alacarte🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  sysinternalsebpf
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gmenu-3.0 gir1.2-gtk-3.0 gir1.2-harfbuzz-0.0 gir1.2-pango-1.0 gnome-menus libgnome-menu-3-0 libharfbuzz-gobject0
  python3-cairo
The following NEW packages will be installed:
  alacarte gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gmenu-3.0 gir1.2-gtk-3.0 gir1.2-harfbuzz-0.0 gir1.2-pango-1.0 gnome-menus libgnome-menu-3-0 libharfbuzz-gobject0
  python3-cairo
0 upgraded, 12 newly installed, 0 to remove and 41 not upgraded.
ー略ー
The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ujpadmin@serveradmin:~$
  • インストールすると,alacarteじゃなくてMain Menuになる模様.
  • GUIで追加すると,カテゴリーが設定できないので,Othersに入ってしまう模様.
  • 設定ファイルを確認し,CategoriesとMimeTypeを追加.
ujpadmin@serveradmin:~$ cd ~/.local/share/applications🆑
ujpadmin@serveradmin:~/.local/share/applications$ cat alacarte-made.desktop🆑
[Desktop Entry]
Name=SeaMenkey
Exec=/opt/seamonkey/seamonkey-bin
Comment=Composer
Terminal=false
Icon=gnome-panel-launcher
Type=Application
Categories=Network;WebBrowser;GTK;🈁
MimeType=text/html;text/xml;application/xhtml+xml;🈁
ujpadmin@serveradmin:~/.local/share/applications$
  • 書き換えた設定を反映させる.
ujpadmin@serveradmin:~$ update-desktop-database ~/.local/share/applications🆑
ujpadmin@serveradmin:~$
  • 次の様になる.

  • 登録されました.

その他インターネット関連ツール

Thunderbirdをインストール

  • このページのこれまでの経緯から,aptとSnapとFlatpakを使う方法があるが,Ubuntuが公式に推奨しているというSnap版でインストールする.
ujpadmin@serveradmin:~$ sudo snap install thunderbird🆑
thunderbird 140.10.1esr-2 from Canonical✓ installed
ujpadmin@serveradmin:~$
  • あっさりインストールされた.



FileZillaのインストール

  • SFTPツール.
ujpadmin@serveradmin:~$ sudo apt install filezilla🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0
  libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  filezilla-common libfilezilla-common libfilezilla42t64 libpugixml1v5 libwxbase3.2-1t64 libwxgtk3.2-1t64
The following NEW packages will be installed:
ー略ー
  • これもあっさりだ.

バッテリ管理ツール(TLP)

  • 鉄板ツールらしい「TLP - Optimize Linux Laptop Battery Life」をインストール.
ujpadmin@serveradmin:~$ sudo apt install tlp tlp-rdw🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0
  libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  iw
Suggested packages:
  tp-smapi-dkms smartmontools linux-tools-generic | linux-tools
The following NEW packages will be installed:
  iw tlp tlp-rdw
0 upgraded, 3 newly installed, 0 to remove and 41 not upgraded.
Need to get 208 kB of archives.

ー略ー
  • インストール後,バッテリーのステータスを確認.
ujpadmin@serveradmin:~$ sudo tlp-stat -b🆑
--- TLP 1.6.1 --------------------------------------------

+++ Battery Care
Plugin: generic
Supported features: none available

+++ Battery Status: BAT1
/sys/class/power_supply/BAT1/manufacturer                   = SMP
/sys/class/power_supply/BAT1/model_name                     = Uhu
/sys/class/power_supply/BAT1/cycle_count                    =     31
/sys/class/power_supply/BAT1/charge_full_design             =   3500 [mAh]
/sys/class/power_supply/BAT1/charge_full                    =   3334 [mAh]
/sys/class/power_supply/BAT1/charge_now                     =   1652 [mAh]
/sys/class/power_supply/BAT1/current_now                    =      0 [mA]
/sys/class/power_supply/BAT1/status                         = Not charging

/sys/class/power_supply/BAT1/charge_control_start_threshold = (not available)
/sys/class/power_supply/BAT1/charge_control_end_threshold   = (not available)

Charge                                                      =   49.6 [%]
Capacity                                                    =   95.3 [%]
ujpadmin@serveradmin:~$
  • バッテリの劣化は5%程度.現在はBIOS,,,じゃなくてUEFIでバッテリ充電を50%以下に下げていることも確認できる.
  • さらっと電源の概要を確認.
ujpadmin@serveradmin:~$ tlp-stat -s🆑
--- TLP 1.6.1 --------------------------------------------

+++ System Info
System         = Microsoft Corporation 1 Surface Go 2
BIOS           = 1.0.31
EC Firmware    = 1.4
OS Release     = Ubuntu 24.04.4 LTS
Kernel         = 6.18.7-surface-1 #1 SMP PREEMPT_DYNAMIC Mon Jan 26 00:16:20 UTC 2026 x86_64
/proc/cmdline  = BOOT_IMAGE=/vmlinuz-6.18.7-surface-1 root=/dev/mapper/ubuntu--vg-ubuntu--lv ro ro acpi_backlight=native consoleblank=0
Init system    = systemd v255 (255.4-1ubuntu8.14)
Boot mode      = UEFI
Suspend mode   = [s2idle] deep

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = unknown
Mode           = unknown
Power source   = AC🈁

ujpadmin@serveradmin:~$
  • Power SourceをみればACなのかバッテリなのかを確認できる.
ujpadmin@serveradmin:~$ tlp-stat -s|grep Power🆑
Power source   = AC
ujpadmin@serveradmin:~$ tlp-stat -s|grep Power🆑
Power source   = battery
ujpadmin@serveradmin:~$
  • 設定状態を確認.
ujpadmin@serveradmin:~$ sudo tlp-stat -c🆑
--- TLP 1.6.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0006: TLP_ENABLE="1"
defaults.conf L0007: TLP_WARN_LEVEL="3"
defaults.conf L0008: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0009: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0010: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0011: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0012: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0013: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0014: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0051: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0052: NATACPI_ENABLE="1"
defaults.conf L0053: TPACPI_ENABLE="1"
defaults.conf L0054: TPSMAPI_ENABLE="1"
ujpadmin@serveradmin:~$
  • 設定ファイルは次の通り.
ujpadmin@serveradmin:~$ cat /etc/tlp.conf|head🆑
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.6.1)
# See full explanation: https://linrunner.de/tlp/settings
#
# Copyright (c) 2023 Thomas Koch <linrunner at gmx.net> and others.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
  • よく変更される項目.
    • TART_CHARGE_THRESH_BAT0=75 (75%以下で充電開始)
    • STOP_CHARGE_THRESH_BAT0=80 (80%で充電停止)

ujpadmin@serveradmin:~$ cat /etc/tlp.conf|grep START_CHARGE_THRESH_BAT0🆑
#START_CHARGE_THRESH_BAT0=75
ujpadmin@serveradmin:~$ cat /etc/tlp.conf|grep STOP_CHARGE_THRESH_BAT0🆑
#STOP_CHARGE_THRESH_BAT0=80
ujpadmin@serveradmin:~$
  • コメントアウトされてる.
  • 設定ファイルを変更した場合,反映させるには次のコマンド.
sudo tlp start🆑

libinput-gestures (トラックパッドのジェスチャー)

  • Surface Go 2でタイプカバーキーボードを使っているので,トラックパッドで3本指ゼスチャーとかが使えると聞いて.
  • ゼスチャーを検知する為のライブラリ一式のインストール.
ujpadmin@serveradmin:~$ sudo apt install libinput-tools xdotool wmctrl🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0
  libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libxdo3 python3-libevdev python3-pyudev
Suggested packages:
  python-libevdev-doc python3-wxgtk4.0
The following NEW packages will be installed:
  libinput-tools libxdo3 python3-libevdev python3-pyudev wmctrl xdotool
0 upgraded, 6 newly installed, 0 to remove and 41 not upgraded.
Need to get 261 kB of archives.
After this operation, 1,108 kB of additional disk space will be used.
Do you want to continue? [Y/n] y🆑
  • libinput-gestures 本体を導入する.リポジトリにないので,gitからcloneする.
  • gitも入れる.
ujpadmin@serveradmin:~$ sudo apt install git🆑
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.43.0-1ubuntu7.3).
git set to manually installed.
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0
  libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
ujpadmin@serveradmin:~$
  • gitコマンド入ってた.
  • inputグループに追加する.
ujpadmin@serveradmin:~$ sudo usermod -aG input $USER🆑
ujpadmin@serveradmin:~$
  • ログアウトしてログインする.
  • cloneする.
ujpadmin@serveradmin:~$ cd ~/Downloads🆑
ujpadmin@serveradmin:~/Downloads$ git clone https://github.com/bulletmark/libinput-gestures.git🆑
Cloning into 'libinput-gestures'...
remote: Enumerating objects: 1045, done.
remote: Counting objects: 100% (417/417), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 1045 (delta 399), reused 376 (delta 367), pack-reused 628 (from 1)
Receiving objects: 100% (1045/1045), 289.73 KiB | 4.53 MiB/s, done.
Resolving deltas: 100% (676/676), done.
ujpadmin@serveradmin:~/Downloads$
  • makeしてインストールする.
ujpadmin@serveradmin:~/Downloads$ cd libinput-gestures🆑
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ sudo make install🆑
[sudo] password for server:
'libinput-gestures-setup' -> '/usr/bin/libinput-gestures-setup'
'libinput-gestures' -> '/usr/bin/libinput-gestures'
'libinput-gestures.service' -> '/usr/lib/systemd/user/libinput-gestures.service'
'libinput-gestures.desktop' -> '/usr/share/applications/libinput-gestures.desktop'
'libinput-gestures.svg' -> '/usr/share/icons/hicolor/128x128/apps/libinput-gestures.svg'
'libinput-gestures.conf' -> '/etc/libinput-gestures.conf'
install: creating directory '/usr/share/doc/libinput-gestures'
'README.md' -> '/usr/share/doc/libinput-gestures/README.md'
gtk-update-icon-cache: Cache file created successfully.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • 自動起動にする.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ libinput-gestures-setup autostart🆑
installed or updated /home/server/.config/autostart/libinput-gestures.desktop
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ libinput-gestures-setup start🆑
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • ステータスの確認.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ libinput-gestures-setup status🆑
libinput-gestures is installed.
libinput-gestures is set up as a desktop application.
libinput-gestures is not currently running.🈁
libinput-gestures is set to autostart as a desktop application.
libinput-gestures is using default configuration file.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • まだ動作していない.
  • 設定ファイルをコピーして,ユーザ独自の設定にする.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ ls -la /etc/libinput-gestures.conf🆑
-rw-r--r-- 1 root root 8869 May 10 18:04 /etc/libinput-gestures.conf🈁
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ cp /etc/libinput-gestures.conf ~/.config/libinput-gestures.conf🆑
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ vi ~/.config/libinput-gestures.conf🆑
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ diff  /etc/libinput-gestures.conf ~/.config/libinput-gestures.conf🆑
138a139,141
> #
> gesture swipe left 3 xdotool key ctrl+alt+Right🈁
> gesture swipe right 3 xdotool key ctrl+alt+Left🈁
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • トラックパッドを3本指で左右に動かした時に,xdotool(キーボード入力のシミュレート)をつかって ctrl+alt+Rightやctrl+alt+Leftを実行する.これでデスクトップを切り替えている.
  • libinput-gesturesを起動する.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ libinput-gestures-setup start🆑
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • ステータスを確認.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$$  libinput-gestures-setup status🆑
libinput-gestures is installed.
libinput-gestures is set up as a desktop application.
libinput-gestures is currently running as a desktop application.🈁
libinput-gestures is set to autostart as a desktop application.
libinput-gestures is using custom configuration file.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • 動作している.
  • もし,動かない場合はデバッグモードで起動して動作を確認する.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ libinput-gestures -d🆑
libinput-gestures: session unknown+tty on Linux-6.18.7-surface-1-x86_64-with-glibc2.39, python 3.12.3, libinput 1.25.0
Version = 2.80, hash = 8ef7aa11745e558b3be75cf2bd1869bf
Warning: must install wmctrl to use _internal command.
Gestures configured in ~/.config/libinput-gestures.conf:
swipe up           _internal ws_up
swipe down         _internal ws_down
swipe left         xdotool key alt+Right
swipe right        xdotool key alt+Left
swipe left       3 xdotool key ctrl+alt+Right
swipe right      3 xdotool key ctrl+alt+Left
pinch in           xdotool key super+s
pinch out          xdotool key super+s
libinput-gestures: device /dev/input/by-path/pci-0000:00:14.0-usbv2-0:7:1.3-event-mouse(event10): Microsoft Surface Keyboard Touchpad

libinput-gestures: SWIPE left 3 [-40.07000000000005, 2.189999999999993]
   xdotool key ctrl+alt+Right
libinput-gestures: SWIPE right 3 [136.31, -9.240000000000004]
   xdotool key ctrl+alt+Left
libinput-gestures: SWIPE left 3 [-162.85, -6.490000000000002]
   xdotool key ctrl+alt+Right
libinput-gestures: SWIPE right 3 [183.65999999999997, -8.880000000000003]
   xdotool key ctrl+alt+Left
^CTraceback (most recent call last):
  File "/usr/bin/libinput-gestures", line 1011, in <module>
    main()
  File "/usr/bin/libinput-gestures", line 958, in main
    for line in cmd.stdout or []:
KeyboardInterrupt

ujpadmin@serveradmin:~/Downloads/libinput-gestures$
  • この例では,3本指で左右に動かした時にその反応が出ている.

Viewnior画像ビューア

  • 必要になったものから続々と.
ujpadmin@serveradmin:~/Downloads/libinput-gestures$ sudo apt install viewnior🆑
[sudo] password for server:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  exo-utils libdbusmenu-glib4 libdbusmenu-gtk3-4 libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common
  libgarcon-gtk3-1-0 libwnck-3-0 libwnck-3-common libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin
  libxfce4util-common libxfce4util7 libxfconf-0-3 libxres1 sysinternalsebpf xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libexiv2-27
Suggested packages:
  exiv2
The following NEW packages will be installed:
  libexiv2-27 viewnior
0 upgraded, 2 newly installed, 0 to remove and 41 not upgraded.
Need to get 978 kB of archives.
  • インストールが完了したらアプリケーションメニューに追加されている.

  • 画像ファイルを開いた時にViewniorを開きたいときは,画像ファイルを右クリックしてGeneralからOpen Withを指定する.

  • [OK]を押下.






広告スペース
Google