11

Today I was cloning a couple of images of Ubuntu to further expand the use of Ubuntu over the company but just noticed that all cloned PCs have the same Teamviewer ID. I followed teamviewer forum suggestion about purging teamviewer, removing the .config/teamviewer9 folder and even the /opt/teamviewer one with no luck. The ID stays the same even after rebooting or waiting for about 30 mins before installing teamviewer again.

How can I reset/change the Teamviewer ID in Ubuntu for all the cloned computers. Right now I am using the latest version of Teamviewer (Version 9).

Luis Alvarado
  • 216,643

6 Answers6

9

Close TeamViewer. Then run in the terminal:

sudo teamviewer --daemon stop
sudo rm -f /opt/teamviewer9/config/global.conf
sudo teamviewer --daemon start

Edit: I checked, and TeamViewer also looks at your MAC address. It probably works like this. When you first start TeamViewer (with no configuration files available), it looks up your MAC address. If it is not known by TV, it creates a new TeamViewer ID and associates your MAC address with it. If the MAC address is known, you get the teamviewer ID associated with it.

So, if you clone to a new computer, the commands above would help you get a new ID. If you use them on the original computer, you'll get the same ID.

Noam
  • 309
3

None of the previous suggestions worked in my case. The quickest and most effective solution I found was to re-install TeamViewer fresh (after uninstall and deletion of config files in Library/Preferences) from an alternative new user account, that solved it immediately.

2

Try to change the MAC Addresses for Cloned PCs

TeamViewer ID depends on it for sure.

kamil
  • 7,397
1

Please close TeamViewer on the new / cloned machine - then run the following commands in the terminal:

defaults delete ~/Library/Preferences/com.teamviewer.teamviewer9.plist
defaults delete ~/Library/Preferences/com.teamviewer.teamviewer9.Machine.plist
sudo defaults delete /Library/Preferences/com.teamviewer.teamviewer9.plist

rm -f ~/Library/Preferences/com.teamviewer.teamviewer9.plist
rm -f ~/Library/Preferences/com.teamviewer.teamviewer9.Machine.plist
sudo rm -f /Library/Preferences/com.teamviewer.teamviewer9.plist
NGRhodes
  • 9,680
1

A solution is:

Modify /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

Replacing eth0 with your interface and aa:bb:cc:dd:ee:ff with a new MAC.

Create a script cat /usr/local/sbin/restoremac.sh:

#!/bin/sh
/bin/sleep 2
/sbin/ifconfig eth0 hw ether ff:ee:dd:cc:bb:aa

Replacing eth0 with your interface and ff:ee:dd:cc:bb:aa with original MAC.

Use "chmod 755 /usr/local/sbin/restoremac.sh"

Delete /etc/teamviewer/global.conf

Restart machine

You can keep your MAC and change TeamViewr ID.

If you using teamviewer for personal use only, and you have message "Commercial Use Suspected", this solve the problem!

IF YOU USE IT ONLY FOR NOT COMMERCIAL SCOPE!

xCannon
  • 11
0

I have found the simplest way to change the ID is to change the MAC address of the NIC. This assumes the cloned machine doesn't require the same MAC address. When the server is restarted