Ubuntu the root login and vi arrow keys Backspace key amendments
Ubuntu early use will do two things
The first time you use Ubuntu, first thing to do is to modify the root access and set as the default login account, correcting the vi editor of the left and right and up and down the backspace key (or the default output ABCD).
Permission to take root and the default login
Open a terminal. button:
ctrl+alt+T
Set the root password. Input:
sudo passwd root
Need to enter the old password - Enter the root password - Confirm root password. When the input does not show press Enter after digital input can be completed.
Enter root privileges. Input:
su
But this time has not changed the default login user.
Set the following logon rights to modify the document. Input:
gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
This is 14.0 or later path.
After entering add two lines of code:
autologin-user=root
greeter-show-manual-login=true
Last Modified /root/.profile precede mesg n || true tty -s &&
tty -s && mesg n || true
Restart
reboot
vi command correction
method one
Uninstall the old version and install the new one.
apt-get remove vim-common
apt-get install vim
Method Two
Edit /etc/vim/vimrc.tiny
gedit /etc/vim/vimrc.tiny
The set compatible and his party to set nocompatible set backspace = 2
set nocompatible
set backspace=2