ubuntu

  

在ubuntu下, vi 在编辑模式下使用方向键时没有移动光标,而是在出现 [A [B [C [D 之类的字母乱码。编辑错误的话,就连退格键(Backspace键)都使用不了,只能用Delete来删除。

由于ubuntu预安装的是tiny版本,所以会导致我们在使用上的产生上述的不便。但是,我们安装了vim的full版本之后,键盘的所有键在vi下就很正常了。

首先,要先卸掉旧版的vi,输入以下命令:

sudo apt-get remove vim-common

然后安装full版的vim,输入命令:

sudo apt-get install vim




ubuntu root账号无法用ssh登录

vi /etc/ssh/sshd_config

找到PermitRootLogin 添加一行 PermitRootLogin yes,如下:

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

保存退出后,重启ssh服务,输入命令:  /etc/init.d/ssh restart

 
安卓刷机ROOT交流群:237227863 作者QQ:1025009674
原文地址:https://www.cnblogs.com/kooapk/p/12713946.html