How do I kill and restart TeamViewer 10 on ubuntu from the command line? I tried running sudo kill -HUP teamviewer. and other variants (TeamViewer.exe; which I got from the system monitor) with no luck. I have an issue sometimes with Teamviewer hanging and it would be nice not to have to reboot my system to get TV10 working again. How do I kill and restart TeamViewer 10 on ubuntu from the command line? I tried running sudo kill -HUP teamviewer. and other variants (TeamViewer.exe; which I got from the system monitor) with no luck. I have an issue sometimes with Teamviewer hanging and it would be nice not to have to reboot my system to get TV10 working again. Teamviewer command line get id, Jul 17, 2018 Extract password from TeamViewer memory using Frida (CVE-2018-14333) Hi there, in this article we want to tell about our little research about password security in TeamViewer. The method can help during the pentest time for post exploitation to get access to another machine using TeamViewer. If the parameter has a short variant, it can also be called with only one “-“: TeamViewer.exe -n. However, using “-n” is also possible on some platforms. Multiple parameters can be combined in one call and parameters are case-sensitive. Command Line Tasks. Usually when command line parameters are passed, TeamViewer will keep running.
Installing TeamViewer on Debian and Raspberry PI
On the PI
Install the deb file like we do on the Ubuntu.
Let the process complete. Now there will be several unmet dependencies. Complete an update and wait until all the packages details are downloaded. Then upgrade all packages
Complete Teamviewer Setup
If Teamviewer does not exist. Complete the install step above again.
Complete the configuration as per the image below.
Finally, you can run the teamviewer to verify its successful installation. Execute the following on terminal without root privileges:
When installing on the console or via ssh, the UI is not available to see the TeamViewer ID, set a password or to assign the device to your TeamViewer account. However, the same functionality is also available on the command line.
If you assign a device to your account, you don’t need to set a password. Just follow the setup assistent and your done. The device will then show up in your Computers & Contacts.
There are some cases when you do not want TeamViewer to keep your old ID. This post will show you how to prevent that default behavior.
In principle, TeamViewer guests and generates your unique ID based on MAC address of some specific interfaces of the PC. Thus, if you change the MAC address, re-configure TeamViewer, the ID will change.
Assume that you already installed TeamViewer. Refer to the installation guide here.
- Get current teamviewer ID to latterly check if the setup here works as expected:
teamviewer info
. - Stop teamviewer background service (daemon):
sudo systemctl stop teamviewerd
. - Remove teamviewer default configuration:
sudo rm /opt/teamviewer/config/global.conf
. - Inspect current MAC address:
sudo ifconfig
. The result will look like
Notice the enp8s0
interface name, TeamViewer guests your previous installation based on this interface's MAC address. Sometimes, it looks at ethN
(e.g. eth0
) interfaces.
The current MAC address is 30:9c:23:28:66:bf
. You choose an arbitrary new MAC address. However, you should not change the first 24-bit of the MAC address. Otherwise, your OS will not be able to recognize your network adapter correctly. Usually I suggest change the last digit from the current MAC address. For e.g. 30:9c:23:28:66:be
.
Change the MAC address with following commands. Note: replace enp8s0
and 30:9c:23:28:66:be
with appropriate values in your configuration.
This command largely varies upon your OS
- From Ubuntu 19.04, the
networking
service is no more available. Thus, systemctl stop/start networking does not work. - If the being re-configured interface is a wifi connection. After running the above commands, you need to re-connect via
3. This configuration is volatile and be restored after reboot. To configure MAC address permanently, refer to this tutorial
4. After all, if the teamviewer ID does not change, you should look at other interfaces and change their MAC address one by one to identify the correct interface
Teamviewer Ubuntu Install Command
5. I wrote another post on how to change MAC address, you can read for more information (much of the content is coincide with the content in current post).
Get Teamviewer Password From Command Line Ubuntu Linux
- Start docker background service:
sudo systemctl start teamviewerd
. - Re-configure teamviewer:
sudo teamviewer passwd my_secret_password
. - Check new ID:
teamviewer info
.