wsl --update
wsl --install -d Ubuntu-20.04
wslg -d Ubuntu-20.04 konsole cd ~とすれば Ubuntu-20.04 仮想マシンがスタート.
sudo apt update(パスワードはこの例では live). でパッケージリストを最新に
sudo sh ./install-by-apt.txtとすれば手打ちしなくてもOK. Windows 側でダウンロードしたファイルを Ubuntu-20.04 仮想マシンへコピーする方法は 動画参照.
cd ~ curl http://www.math.kobe-u.ac.jp/HOME/taka/2022/install/dot.bashrc.txt >>.bashrc mkdir -p .init.d curl http://www.math.kobe-u.ac.jp/HOME/taka/2022/install/init.el >.emacs.d/init.elなお .bashrc でなく .bash_profile に書くと Ubuntu の KTscript が実行されないのでキーボードが英語キーボードになってしまう.
dpkg --install ./openxm_1.3.3-6_amd64.deb以下インストーラーの指示に従う.
openxm use-asir-mode.sh --local=yes
update-locale LANG=ja_JP.UTF-8 Ubuntu を再起動.再起動は Windows PowerShell より
wsl --terminate Ubuntu-20.04 wslg -d Ubuntu-20.04 konsole Ubuntu を再起動.
apt -y install texlive-lang-japanese apt -y install xdvik-ja
cjk-gs-integrate --link-texmf --force kanji-config-udmap-sys ipaex
fcitx-autostartしかし fcitx を使うとキーボードが US キーボードに
fcitx-config-gtk3で, keyboard (US) を keyboard (日本語) にする. もちろん Mozc も必要. 入力方式の切り替えも shift+space へ.