ubuntu预装的是vim tiny版本,而需要的是vim full版本。执行下面的语句安装vim full版本:
$sudo apt-get remove vim-common
$sudo apt-get install vim
这样就行了,vim是一款优秀的软件,可以在运用中体会到。
2:开通ssh
- 首先更新源
sudo apt-get update
- 安装ssh服务
sudo apt-get install openssh-server
- 检测是否已启动
ps -e | grep ssh
看到有ssh字样,说明已启动,如果没有就手动启动
/etc/init.d/ssh start
- 配置ssh-server,配置文件位于/etc/ssh/sshd_config,默认端口为22,为了安全,一般自定义为其他端口,然后重启
sudo /etc/init.d/ssh resart