湖濱散記部落格的樹心幽徑[login][主頁]
474:20190123在Fedora 28 Server設定system locale、安裝 GNOME桌面、嘸蝦米輸入法、Firefox及LibreOffice

(1)設定local

# ll /usr/lib/locale

# localectl status 

 System Locale: LANG=zh_TW.UTF-8       VC Keymap: tw      X11 Layout: tw
# cat /etc/locale.conf

LANG="zh_TW.UTF-8"

# rpm -qa *langpack*

glibc-langpack-zh-2.27-37.fc28.x86_64

langpacks-zh_TW-1.0-12.fc28.noarch

# localectl

   System Locale: LANG=zh_TW.UTF-8       VC Keymap: tw      X11 Layout: tw

# localectl list-locales

C.utf8zh_CNzh_CN.gb18030zh_CN.gbkzh_CN.utf8zh_HKzh_HK.utf8zh_SGzh_SG.gbkzh_SG.utf8zh_TWzh_TW.euctwzh_TW.utf8

# localectl set-locale LANG=C.utf8

# cat /etc/locale.conf

LANG=C.utf8

(2)安裝GUI

dnf groupinstall gnome

# dnf distro-sync

# sudo ln -s -f /etc/systemd/system/graphical.target /etc/systemd/system/default.target

# sudo systemctl enable gdm

# sudo dnf install cockpit

(3) 安裝browser

$ sudo dnf install -y firefox

 

(4)安裝嘸蝦米中文輸入法

參考:https://amoshyc.github.io/blog/2018/install-liu-with-rime.html

(4-1)$ sudo dnf install ibus-rime

重開機,以用戶treehrt登入gnome桌面

(4-2)$ cd /home/treehrt/.config/ibus/rime

(4-3)$ wget https://raw.githubusercontent.com/amoshyc/myliu/master/default.custom.yaml

(4-4)$ wget https://raw.githubusercontent.com/amoshyc/myliu/master/myliu.dict.yaml


(4-5)$ wget https://raw.githubusercontent.com/amoshyc/myliu/master/myliu.schema.yaml

(5)$ 安裝LIbreOffice

$ sudo dnf install libreoffice



select id,article_id,topic,text from lt_articles_text where article_id =474; ok. update lt_articles set num_reads=num_reads +1 where id=474; ok.