新版的7.0很多資料沒有,為了安全,linux是禁止root登錄到桌面,但為了方便又想用root登錄到桌面,在網上找了找,基本上都是這這一篇:
http://shaoguangleo.blog.163.com/blog/static/227798320121022270901/
但是在7.0中是沒有“/etc/pam.d/gdm”這個文件的,也沒有#auth required pam_succeed_if.so user != root quiet 這一行可以修正
其實實現方法很簡單,
1、編輯/etc/gdm/custom.conf,修改以下兩行:
AutomaticLoginEnable=true 這個修改為 true
AutomaticLogin=root 這個修改為 root
2、登錄到桌面時,不要直接點擊用戶名,而是選擇“not list",然后輸入root,輸入密碼即可進入。
補充:
如果桌面顯示的仍是英文,如果是虛擬機上的,移動下位置,重新啟動即可。