新裝Ubuntu後的一些配置

一:Ubuntu 16.04 開啓root用戶和使用root用戶登陸

1. 編輯/etc/lightdm/lightdm.conf
    autologin-guest=false
    autologin-user=root
    autologin-user-timeout=0
    greeter-session=lightdm-gtk-greeter

2. 編輯/root/.profile文件,增加tty -s &&
    tty -s && mesg n || true
二:解決Ubuntu中vi命令的編輯模式下不能正常使用鍵盤問題

1.輸入下述命令以卸載vim-tiny:
sudo apt-get remove vim-common

2.輸入下述命令以安裝vim:
sudo apt-get install vim
三:ssh能以root用戶權限登入Linux

1. vim /ect/ssh/shd_config
2. 註釋掉 #PermitRootLogin without-password, 添加 PermitRootLogin yes
四:root用戶登入後Tab鍵不能自動補齊

找到 /root/.bashrc文件進行編輯,最後的三行
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

去掉最後三行的註釋(默認是註釋掉最後三行的)
然後 在終端上執行以下命令
source ~/.bashrc
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章