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

Chrome OS Flex 日本語入力のLinux開発環境(Crostini)をつくる

1
Last updated at Posted at 2026-06-10

はじめに

Chrome OS FlexのLinux環境の日本語環境を作成するのに苦戦したので備忘録として残しました。
2026年6月現在はCrostiniのwaylandが安定しないためアプリはx11で起動するように設定しました。

最新パッケージにアップデートする

sudo apt update && sudo apt upgrade -y

日本語フォントと日本語入力メソッドをインストールする

sudo apt install fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fonts-noto-cjk fonts-noto-cjk-extra -y

日本語言語環境にする

sudo sed -i 's/^# *ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
sudo locale-gen
echo 'export LANG=ja_JP.UTF-8' >> ~/.bashrc

fcitx5の環境変数を設定する

.bashrc を編集する。

vim ~/.bashrc

以下を追記する。

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export QT_QPA_PLATFORM=xcb
export DEFAULT_IM_MODULE=fcitx
export GDK_BACKEND=x11
fcitx5 -d >/dev/null 2>&1

設定を反映する。

source ~/.bashrc

Linux開発環境を再起動する。

sudo reboot

日本語入力の設定をする

設定ツールを起動する。

fcitx5-configtool

以下を設定する。

  • Mozc を追加する
  • キーボードレイアウトを確認する
  • 日本語入力のオン/オフキーを設定する

LibreOfficeをインストールする

sudo apt install libreoffice libreoffice-l10n-ja libreoffice-help-ja libreoffice-gtk3 -y

Visual Studio Code をインストールする

wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/1b50d58d73426c9171299ec4037d01365d995b78/code_1.124.0-1781066808_amd64.deb

sudo apt install ./code_1.124.0-1781066808_amd64.deb

Obsidian をインストールする

wget https://github.com/obsidianmd/obsidian-releases/releases/download/v1.12.7/obsidian_1.12.7_amd64.deb

sudo apt install ./obsidian_1.12.7_amd64.deb

デスクトップエントリーをユーザー領域へコピーする

mkdir -p ~/.local/share/applications

Visual Studio Code

cp /usr/share/applications/code.desktop ~/.local/share/applications/

vim ~/.local/share/applications/code.desktop

必要に応じて Exec= 行へ環境変数を追加する。

例:

Exec=/usr/share/code/code %F --ozone-platform=x11

Obsidian

cp /usr/share/applications/obsidian.desktop ~/.local/share/applications/

vim ~/.local/share/applications/obsidian.desktop

必要に応じて Exec= 行へ環境変数を追加する。

例:

Exec=/opt/Obsidian/obsidian %U --ozone-platform=x11 

動作確認

fcitx5が起動していることを確認する。

ps aux | grep fcitx5

VS Codeを起動する。

code

Obsidianを起動する。

obsidian
1
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
1
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?