Last active
May 5, 2025 03:35
-
-
Save syneart/3e12ae2e66b77bd045c57ea84d065143 to your computer and use it in GitHub Desktop.
Debian 輸入與顯示正體中文字
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo sed -i '/^#.* zh_TW.* /s/^#//' /etc/locale.gen | |
sudo locale-gen zh_TW.UTF-8 | |
sudo update-locale LANG=zh_TW.UTF-8 LANGUAGE=zh_TW LC_ALL=zh_TW.UTF-8 LC_CTYPE=zh_TW.UTF-8 | |
source /etc/default/locale | |
echo "Please re-login or restart your system!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用以下指令讓你的 Debian 系統可以顯示與輸入正體中文字,執行完後請登出或重新開機來生效
wget -O - https://gist.githubusercontent.com/syneart/3e12ae2e66b77bd045c57ea84d065143/raw/debian_locale_zh_tw.sh | bash