ubuntu18.04直接更改/etc/resolv.conf修改nameserver重啟被重置解決方法:
vi /etc/systemd/resolved.conf,加上DNS,設置多個DNS服務器的地址,這樣就完成了 DNS的修改,保存退出,然后重啟機器

https://blog.csdn.net/lengye7/article/details/88877867?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
ubuntu18.04的網絡配置:
https://blog.csdn.net/lengye7/article/details/88889807
解決升級到 Ubuntu 18.04 LTS 后 Desktop Sharing 設置無法打開的問題:
https://www.somedoc.net/?p=3940
1) 編輯 org.gnome.Vino 方案來恢復缺失的 “enabled” 參數(復制自 16.04):
sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
加入以下 key 的內容:
<key name='enabled' type='b'>
<summary>Enable remote access to the desktop</summary>
<description>
If true, allows remote access to the desktop via the RFB
protocol. Users on remote machines may then connect to the
desktop using a VNC viewer.
</description>
<default>false</default>
</key>
2) 編譯 Gnome 方案:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
3) 此時系統設置里的 Desktop Sharing 應該就可以用了,不過,還不足以使 vino 能運行起來!你需要在會話開始的時候把程序 Vino-server 用此命令行加入進去:
/usr/lib/vino/vino-server
現在就可以 VNC 你的 18.04-Unity 了!
