Ubuntu初始化
奇怪的脚本
国内. <(curl -L gitee.com/mo2/linux/raw/2/2)
自动curl -Lo l l.tmoe.me; sh l
通用. <(curl -L git.io/linux.sh)
国内加速镜像源
安装中文语言环境
#安装中文字体 sudo apt install fontconfig sudo apt install language-pack-zh-hans language-pack-zh-hans-baselanguage-pack-zh-hans language-pack-zh-hans-base
#写入环境变量 echo "LANG=zh_CN.UTF-8" >> ~/.profile
#安装KDE桌面 <可选> sudo apt-get install plasma-desktop
#查看系统类型 cat /proc/version #查看中文字体 fc-list :lang=zh-cn #系统没中文语言包的话,先安装中文语言包输入命令 sudo apt-get install language-pack-zh-hans #接着输入 sudo apt-get install -y fonts-wqy-zenhei #选择语言 sudo dpkg-reconfigure locales
#设置全局环境变量 export LANG="zh_CN.UTF-8" export LC_ALL="zh_CN.UTF-8"
两种桌面环境安装和清理
#kde sudo apt-get install kubuntu-desktop #xs sudo apt-get install xubuntu-desktop #清理安装后的残留 apt-get install plasma-desktop sudo apt-get purge '^kde' '^kubuntu' '^plasma' sudo apt autoremove
#复制替换字体
cd /root/
cp msyh.ttc /usr/share/fonts/
cd /usr/share/fonts/
mkfontscale
mkfontdir
fc-cache