CentOS7 安裝後的一些配置
熱度4 評論 10
www.BkJia.Com 網友分享於:
2017-02-10 07:02:24 浏覽數43654次
CentOS7 安裝後的一些配置
一、把普通用戶加入sudo用戶組
1、先進入管理員賬戶:su root
2、輸入visudo命令,打開sudoers文件
3、找到 root ALL=(ALL) ALL這一行
4、在下面添加 你的用戶名 ALL=(ALL) ALL
5、保存退出
二、更新源
1、進入源文件所在目錄 cd /etc/yum.repos.d/
2、備份當前源文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3、下載國內的源 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
4、替換源 mv /etc/yum.repos.d/CentOS7-Base-163.repo
5、清除舊緩存 yum clean all
6、生成新緩存 yum makecache
三、更新軟件包
sudo yum -y update
四、安裝中文輸入法
CentOS7裡自帶了中文拼音輸入法,相關設置如下:
第一步:點擊桌面左上角“應用程序”-》”系統工具“-》”設置“

第二步:點擊左上角”區域和語言“

第三步:出現此界面後,點擊”+“號

第四步:點擊“漢語(中國)”,如果沒有這個選項,就點擊下面那的省略號,會出現更多的選項

第五步:在“添加輸入源”界面中選擇“漢語(Intelligent Pinyin)”

第六步:點擊“添加”按鈕
第七步:現在有三種輸入方式,把多余的去掉

第八步:選中“漢語”,點擊下方的“-”號

第九步:刪除"英語(美國)"

第十步:真干淨,就像用了碧浪一樣

第十一步:看一下右上角的輸入法狀態,按"Shift"就可以切換中英文輸入了

第十二步:看一下實際使用情況

第十三步:看一下輸入法的介紹

http://www.bkjia.com/Linuxjc/1191953.html TechArticle