Ubuntu Server 18.04安裝後vi命令解決鍵盤錯亂方法和wifi連接之後不能上網
阿新 • • 發佈:2019-03-10
8.0 遠程 bubuko key res ssh服務 鍵盤 置配 penssh
一、編輯/etc/vim/vimrc.tiny 使用root權限操作
將“compatible”改成“nocompatible”
新增一個配置:
set backspace=2 。
最終效果是:
保存即可。
二、wifi裝填已連接,但不能上網解決辦法需要配置DNS
vi /etc/systemd/resolved.conf
在如下位置配置DNS後保存
重啟systemd-resolved服務
service systemd-resolved restart
三、開啟遠程連接:
1.更新源列表
sudo apt-get update
2.安裝openssh-client
sudo apt-get install openssh-client
3.安裝openssh-service
sudo apt-get install openssh-server
4.啟動ssh服務
sudo service ssh start
5.查看IP地址
ifconfig
假如出現command not found,可以執行下面的命令來安裝net-tools
sudo apt install net-tools
參考連接:https://blog.csdn.net/weixin_42739326/article/details/82260588
Ubuntu Server 18.04安裝後vi命令解決鍵盤錯亂方法和wifi連接之後不能上網