ChromeOS Linux 環境筆記 安裝 Windows 程式與中文輸入設定
Chrome os 現在設定 Linux 開發環境非常的簡單直接在設定點選就好,
記得出現終端機的時候別忘記更新與升級
sudo apt update
sudo apt upgrade
接者會有很多問題要等著我們解決,包括中文亂碼與中文輸入,
還有 windows 程式透過 wine 安裝等等。
首先內建的套件庫太少資源我們先安裝 nano 新增套件庫
sudo apt install nano
使用 nano 新增套件庫
sudo nano /etc/apt/sources.list
透過 nano 新增到下列
deb http://opensource.nchc.org.tw/debian/ buster main contrib non-free
deb-src http://opensource.nchc.org.tw/debian/ buster main contrib non-free
deb http://opensource.nchc.org.tw/debian/ buster-updates main
deb-src http://opensource.nchc.org.tw/debian/ buster-updates main
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://opensource.nchc.org.tw/debian buster-backports main
deb https://dl.winehq.org/wine-builds/debian/ buster main
deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./
Ctrl + S 存檔 Ctrl + X 離開
設置中文介面
sudo dpkg-reconfigure locales
將 zh_TW.UTF-8 UTF-8 按下空格選取 tab 後 ok
Default locale for the system environment:
也可以改成 zh_TW.UTF-8.UTF-8 為主,
安裝中文字型
sudo apt install fonts-wqy-microhei fonts-wqy-zenhei
安裝中文輸入法
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-module-xorg kde-config-fcitx5 fcitx5-chewing im-config zenity
輸入法會需要869MB的空間記得點選 y
啟用 fcitx5
im-config
進入 fcitx5 設定畫面將新酷音新增到輸入法中
fcitx5-configtool
設定 fcitx5 自動啟用 (待確認是否有用
sudo nano ~/.sommelierrc
新增這兩行
/usr/bin/fcitx5-autostart
/usr/bin/fcitx5-configtool-autostart
設定語言環境
mkdir -p ~/.config/environment.d/
nano ~/.config/environment.d/fcitx5.conf
新增
GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5
設定WINE
sudo dpkg --add-architecture i386
設定 WINE 套件庫公開金鑰
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DFA175A75104960E
更新後安裝 WINE 最新版
sudo apt update
sudo apt install --install-recommends winehq-stable
大約1.8GB需要一段時間
將你需要的 exe 或是 msi 改成好打的名稱
複製到 linux 資料夾 使用
wine 程式名稱.exe
安裝即可
留言