tv

Install prerequrements

sudo apt-get install -y \
  libdbus-1-3 libqt5gui5 libqt5widgets5 libqt5qml5 libqt5quick5 \
  libqt5webkit5 libqt5x11extras5 qml-module-qtquick2 \
  qml-module-qtquick-controls qml-module-qtquick-dialogs \
  qml-module-qtquick-window2 qml-module-qtquick-layouts xz-utils libminizip1 wget

Start TeamViewer QS (server)

wget -q https://download.teamviewer.com/download/teamviewer_qs.tar.gz -O - | \
  tar -C /tmp/ -xz && \
    /tmp/teamviewerqs/teamviewer license accept

Create Teamviewer QS (server only) starter script

sudo wget "https://upload.wikimedia.org/wikipedia/commons/3/31/TeamViewer_Logo_Icon_Only.svg" -qO /usr/share/themes/Default/teamviewer.svg
 
#wget -q https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O - | tar -C /tmp/ -Jx && /tmp/teamviewer/teamviewer
cat << EOF | sudo tee /usr/local/sbin/teamviewer
#!/bin/bash
 
wget -q https://download.teamviewer.com/download/teamviewer_qs.tar.gz -O - | tar -C /tmp/ -xz && /tmp/teamviewerqs/teamviewer license accept
EOF
 
sudo chmod a+rx /usr/local/sbin/teamviewer

Create starter

cat << EOF | sudo tee /usr/share/applications/teamviewer.desktop
[Desktop Entry]
Name=TeamViewer
Exec=/usr/local/sbin/teamviewer
Icon=/usr/share/themes/Default/teamviewer.svg
Type=Application
Categories=GNOME;GTK;Network;
EOF

Start TeamViewer client

# debug libs
./tv-setup checklibs
 
sudo apt install libminizip1
 
wget -q https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O - | \
  tar -C /tmp/ -Jx && \
    /tmp/teamviewer/teamviewer
# get id
grep userID /tmp/teamviewer/logfiles/*.log
 
# start teamviewer over ssh (test)
DISPLAY=:0 /tmp/teamviewer/teamviewer info
 
# get id and set password (test)
teamviewer --passwd newPassword
teamviewer -info

Create starter script

sudo wget "https://upload.wikimedia.org/wikipedia/commons/3/31/TeamViewer_Logo_Icon_Only.svg" -qO /usr/share/themes/Default/teamviewer.svg
 
cat << EOF | sudo tee /usr/local/sbin/teamviewer-qs
#!/bin/bash
wget -q
https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz -O - | tar -C /tmp/ -xz && /tmp/teamviewerqs/teamviewer
EOF
 
sudo chmod a+rx /usr/local/sbin/teamviewer
 
# ./teamviewer license accept
 
# https://download.teamviewer.com/download/version_11x/teamviewer_qs.tar.gz

Install from repository

wget -O- https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | gpg --dearmor | sudo tee /usr/share/keyrings/teamview.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/teamview.gpg] http://linux.teamviewer.com/deb stable main" \ | sudo tee /etc/apt/sources.list.d/teamviewer.list
sudo apt update
sudo apt install teamviewer -y

Previous versions
https://www.teamviewer.com/en/download/previous-versions/