debian

/ 技术收藏 / 没有评论 / 625浏览

新安装的debian系统,用vi打开后方向键变ABCD了。
解决方法:
1.用vi打开其配置文件:

vi /etc/vim/vimrc.tiny

2.将如下语句写入vi配置文件:

set nocompatible          //找到set compatible改为set nocompatible 

设置完后保存退出就可以正常使用了。

如果退格键不能使用,可以在刚才的下面再加一句:

set backspace=2





1. 安装ssh服务

sudo apt-get update #更新软件源

sudo apt-get install ssh #安装

2.修改sshd_config文件,命令为:vi /etc/ssh/sshd_config

将#PasswordAuthentication no的注释去掉,并且将no修改为yes

将#PermitRootLogin prohibit-password的注释去掉,将prohibit-password改为yes

PasswordAuthentication yes

PermitRootLogin yes

或echo -e “PasswordAuthentication yes\nPermitRootLogin yes” >> /etc/ssh/sshd_config

3.启动SSH服务,命令为:/etc/init.d/ssh start // 或者service ssh start

4.验证SSH服务状态,命令为:/etc/init.d/ssh status

添加开机自启动 systemctl enable ssh



腾讯云轻量

安装curl提示已安装解决方案

备份 cp /var/lib/dpkg/status /var/lib/dpkg/status.bac

找到/var/lib/dpkg/status curl对应的package 删除后,即可安装curl