install teamviewer by command line in ubuntu server code example
Example 1: download teamviewer for ubuntu using terminal
#Install this package before install teamviewer
sudo apt install -y libqt5x11extras5
#Download teamviewer
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
#Install it
sudo apt install ./teamviewer_amd64.deb
#Run it
teamviewer
Example 2: install teamviewer ubuntu 18
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb