ユーザ用ツール

サイト用ツール


linux:userland:ubuntu_uimfep

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:userland:ubuntu_uimfep [2020/06/19 21:21] – [(3) uim-fep を起動します] ogalinux:userland:ubuntu_uimfep [2020/06/21 12:54] (現在) – 作成 oga
行 1: 行 1:
-====== Debian (または Ubuntu) + SSH コンソールでの日本語入力 (uim-mozc) ====== 
  
-  * 参考にしたページ 
-    * [[http://www.atmarkit.co.jp/ait/articles/1806/28/news043.html|WSLのUbuntu環境を日本語化する]] 
-    * [[https://qiita.com/Pseudonym/items/9ff0e9028dfd6bad5958|uim-fepとuim-anthyの使い方と設定方法]] 
- 
- 
-===== 日本語入力の設定 ===== 
- 
-==== (1) 下記のスクリプトを実行します ==== 
- 
- 
-<file bash userland_uim_setup.sh> 
-#!/bin/sh 
-. /etc/os-release 
- 
-if [ "$ID" = "ubuntu" ];then 
-sudo apt update 
-sudo apt -y upgrade 
-sudo apt -y install language-pack-ja 
-sudo update-locale LANG=ja_JP.UTF-8 
-sudo apt -y install uim-fep uim-mozc 
-sudo dpkg-reconfigure tzdata 
-fi 
- 
-if [ "$ID" = "debian" ];then 
-sudo apt update 
-sudo apt -y upgrade 
-sudo apt -y install task-japanese 
-sudo apt -y install locales 
-sudo dpkg-reconfigure locales 
-. /etc/default/locale 
-sudo apt -y install uim-fep uim-mozc 
-sudo dpkg-reconfigure tzdata 
-fi 
- 
-if [ ! -e "$HOME/.uim" ]; then 
-cat > $HOME/.uim <<END 
-(define default-im-name 'mozc) 
-(define-key generic-on-key? '("<Control> " "<Control>g")) 
-(define-key generic-off-key? '("<Control> " "<Control>g")) 
-END 
-fi 
- 
-cat >> $HOME/.profile <<END 
-. /etc/default/locale 
-export LANG 
-END 
-</file> 
- 
-実行方法 
- 
-<code bash> 
-$ sh ./userland_uim_setup.sh 
-</code> 
- 
- 
- 
-==== (2) 日本語切り替えに使うキーを設定します ==== 
- 
-必要に応じて $HOME/.uim を書き換えてください。 
-(1) では Control + [SPACE] または Control + [G] に設定しています。 
- 
-Android 9.0 以降は Control + [SPACE] が使えないので注意してください。[[https://wlog.flatlib.jp/archive/1/2019-2-24|詳細はこちら]] 
- 
- 
-==== (3) 再ログイン ==== 
- 
-一旦ログアウトしてからログインし直します 
- 
-==== (4) uim-fep を起動します ==== 
- 
-<code bash> 
-$ uim-fep 
-</code> 
- 
-これで (2) で設定した操作で日本語入力モードに切り替わります。 
  
 +[[userland_uimfep|こちらに移動しました]]
  
linux/userland/ubuntu_uimfep.txt · 最終更新: 2020/06/21 12:54 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki