通过ssh控制linux主机安装TeamViewer,方便科研。
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo dpkg -i teamviewer_amd64.deb
出现Processing xxx安装成功;
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get update
sudo apt-get -f install
无界面,无法看到弹窗,通过更改配置文件,接受许可
sudo teamviewer --daemon stop
# 进入配置文件
sudo vim /opt/teamviewer/config/global.conf
# 增加内容如下:
[int32] EulaAccepted = 1
[int32] EulaAcceptedRevision = 6
sudo teamviewer --daemon start
sudo teamviewer --passwd [NEWPASSWORD]
sudo teamviewer --daemon start
sudo teamviwer info
最主要的是ID,密码已经设置过,有了ID后就能远程登录了
远程主机Ubuntu 20.04重启之后本地连接一直显示正在连接
sudo vim /etc/gdm3/custom.conf
WaylandEnable=false
sudo reboot -h now