◆Chrome OS Flexで「Linux 開発環境」を有効にしたとき、OS側で行われていた作業は何か?
Chrome OS Flexの中に軽量なLinuxコンテナ(Debianベース)を自動で作成・起動している状態。
Chrome OS Flex(Chromium OS系)は元々Linuxカーネルで動いている。
その同じカーネル上で、LXC(Linux Containers) というOSレベルの仮想化技術を使って独立したLinux環境を作った→ 完全な仮想マシンではない(同じ Linux カーネルを使っている〜この部分を「コンテナ」という。アプリケーション(+それに必要な全部)を、ホストOSから隔離した軽量な箱に入れたもの」)。
NOTICE:
To provide a more stable graphical user experience in Crostini,
the GPU-based rendering driver (virgl) has been disabled by default
for existing and new environments in ChromeOS version 131 and newer.
OpenGL and OpenGLES applications will continue to function using a
CPU-based rendering driver (swrast).
If you would like to re-enable GPU-based rendering in an unsupported
capacity, you may visit: chrome://flags#crostini-gpu-support
in your Chrome browser and set the flag to "Enabled", then restart
your device.
(this message will be repeated 4 more time).
(to silence this message, run the following in this terminal):
echo 5 >"/home/hdoom321/.local/share/cros-motd"
@penguin:~$
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flaterror: Flatpak system operation ConfigureRemote not allowed for user
のエラーが表示されます。
これは、Chrome OS Flex の Linux環境(Crostini / Debianベース)では、system-wide(システム全体)のリモート(Flathubのリポジトリ)を一般ユーザーで追加しようとしているときにでるエラー。
Flatpakのデフォルト動作では、flatpak remote-add を何も付けずに実行すると --system(全ユーザー向け)が暗黙的に指定され、これには管理者権限が必要になります。Chrome OS Flex の Linuxコンテナでは polkit(権限管理)の設定が制限されていることが多く、sudoなしではsystem操作が許可されない仕様になっているから。