ユーザ用ツール

サイト用ツール


linux:userland:ubuntu_uimfep

差分

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

この比較画面へのリンク

次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
linux:userland:ubuntu_uimfep [2019/02/25 20:00] – 作成 ogalinux:userland:ubuntu_uimfep [2020/06/19 21:21] – [(3) uim-fep を起動します] oga
行 1: 行 1:
-====== Ubuntu (18.04LTS) + SSH コンソールでの日本語入力 ======+====== Debian (または Ubuntu) + SSH コンソールでの日本語入力 (uim-mozc) ======
  
   * 参考にしたページ   * 参考にしたページ
行 11: 行 11:
  
  
-<file bash userland_ubuntu_uimfep_setup.sh>+<file bash userland_uim_setup.sh>
 #!/bin/sh #!/bin/sh
 +. /etc/os-release
  
 +if [ "$ID" = "ubuntu" ];then
 sudo apt update sudo apt update
 sudo apt -y upgrade sudo apt -y upgrade
行 19: 行 21:
 sudo update-locale LANG=ja_JP.UTF-8 sudo update-locale LANG=ja_JP.UTF-8
 sudo apt -y install uim-fep uim-mozc 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 if [ ! -e "$HOME/.uim" ]; then
行 28: 行 43:
 fi fi
  
-if [ "$LANG" = "" ]; then +cat >> $HOME/.profile <<END 
-cat >> $HOME/.bashrc <<END +. /etc/default/locale 
-export LANG=ja_JP.UTF-8+export LANG
 END END
-fi 
 </file> </file>
 +
 +実行方法
  
 <code bash> <code bash>
-$ sh ./userland_ubuntu_uimfep_setup.sh+$ sh ./userland_uim_setup.sh
 </code> </code>
  
行 46: 行 62:
 (1) では Control + [SPACE] または Control + [G] に設定しています。 (1) では Control + [SPACE] または Control + [G] に設定しています。
  
-Android 9.0 以降は Control + [SPACE] が使えないので注意してください。+Android 9.0 以降は Control + [SPACE] が使えないので注意してください。[[https://wlog.flatlib.jp/archive/1/2019-2-24|詳細はこちら]]
  
  
-==== (3) uim-fep を起動します ====+==== (3) 再ログイン ==== 
 + 
 +一旦ログアウトしてからログインし直します 
 + 
 +==== (4) uim-fep を起動します ====
  
 <code bash> <code bash>
-$ export LANG=ja_JP.UTF-8 
 $ uim-fep $ uim-fep
 </code> </code>
  
 +これで (2) で設定した操作で日本語入力モードに切り替わります。
  
-===== タイムゾーンの設定 ===== 
- 
-下記コマンドを実行したあと選択してください。 
- 
-<code bash> 
-$ sudo dpkg-reconfigure tzdata 
-</code> 
  
linux/userland/ubuntu_uimfep.txt · 最終更新: 2020/06/21 12:54 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki