HOW TO INSTALL TEAMVIEWER ON UBUNTU:-
Step 1> Download teamviewer latest version from the official website https://www.teamviewer.com/en/download/linux/
Step 2> Click the download button below "Ubuntu ,Debian".
Step3> Open the terminal and run following commands
sudo apt install gdebi-core
Step4> Now using "cd" command , move to the place where you have downloaded teamviewer.
Run sudo gdebi teamviewer12.deb
Note:-You have to write the exact name of the teamviewer you have downloaded
or you can rename it to something short and run it with that name. It's totally up to you.
Press Y to continue the installation.
After installation you can check if Teamviewer Remote Control daemon is active or not by running the following command.
systemctl status teamviewerd
If you see "active(running)" then the daemon is running and you can start teamviewer. If you dont see "active(running)" then you either start it manually using
sudo systemctl start teamviewerd
or you can auto start it during boot using