一个解决方案是:
修改/etc/systemd/system/teamviewerd.service:
[Unit]
Description = TeamViewer remote control daemon
After = NetworkManager-wait-online.service network.target network-online.target dbus.service
Wants = NetworkManager-wait-online.service network-online.target
Requires = dbus.service
[Service]
Type = forking
PIDFile = /var/run/teamviewerd.pid
ExecStartPre= /sbin/ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff
ExecStart = /opt/teamviewer/tv_bin/teamviewerd -d
ExecStartPost = /usr/local/sbin/restoremac.sh
Restart = on-abort
StartLimitInterval = 60
StartLimitBurst = 10
[Install]
WantedBy = multi-user.target
用您的接口替换eth0并用新的MAC替换aa:bb:cc:dd:ee:ff。
创建脚本cat /usr/local/sbin/restoremac.sh:
#!/bin/sh
/bin/sleep 2
/sbin/ifconfig eth0 hw ether ff:ee:dd:cc:bb:aa
用您的接口替换eth0,并用原始MAC替换ff:ee:dd:cc:bb:aa。
使用“ chmod 755 /usr/local/sbin/restoremac.sh”
删除/etc/teamviewer/global.conf
重启机器
您可以保留MAC并更改TeamViewr ID。
如果您仅将Teamviewer用作个人使用,并且收到消息“疑似商业用途”,则可以解决此问题!
如果仅将其用于非商业用途!