Install TeamViewer under Ubuntu

wget -O - | bash -


# install required libs
RELEASE=$(lsb_release -rs | tr -d ".")
if [ ${RELEASE} -ge 1310 ]; then
  sudo apt-get install -y libxtst6:i386
  sudo apt-get install -y gcc-4.8-base:i386
  sudo apt-get install -y libc6:i386
  sudo apt-get install -y libgcc1:i386
  sudo apt-get install -y libx11-6:i386
  sudo apt-get install -y libxau6:i386  
  sudo apt-get install -y libxcb1:i386
  sudo apt-get install -y libxdmcp6:i386
  sudo apt-get install -y libxext6:i386 
  sudo apt-get install -y libjpeg62:i386
  sudo apt-get install -y libxinerama1:i386
  sudo apt-get install -y libc6-i386 lib32asound2 lib32z1 ia32-libs

if [ "$(uname -m)" == "x86_64" -a ${RELEASE} -lt 1310 ]; then
  # 64 bit
  # 32 bit

# download
wget -q ${URL} -P /tmp

# install
sudo dpkg -i /tmp/teamviewer_*.deb

# fix possible installation errors
sudo apt-get install -f -y

# clean up
rm /tmp/teamviewer_*.deb

$ teamviewer help
teamviewer Start TeamViewer user interface (if not running).
teamviewer help Print this help screen.
teamviewer version Print version information.
teamviewer info Print version, status, id.
teamviewer ziplog Create a zip containing all teamviewer logs (useful when contacting support).
teamviewer license [show|accept] Interactively agree or show/agree to End User License Agreement.
teamviewer setup Configure headless modes (non-gui/console)
teamviewer passwd [PASSWD] Set a password (useful when installing remote (ssh).
teamviewer daemon status Show current status of the TeamViewer daemon.
teamviewer daemon start Start TeamViewer daemon.
teamviewer daemon stop Stop TeamViewer daemon.
teamviewer daemon restart Stop/Start TeamViewer daemon.
teamviewer daemon disable Disable TeamViewer daemon - don't start daemon on system startup.
teamviewer daemon enable Enable TeamViewer daemon - start daemon on system startup (default).

sudo apt-get purge *teamviewer*
rm -r ~/.config/teamviewer*
rm -r ~/.local/share/teamviewer*



SSH Teamviewer config

Hi there,

Thanks a lot for the web page, it's just wonderful.
I've installed teamviewer on a remote machine through an SSH connection (impossible to get there; it's in a different country). Anybody knows how to connect now to that machine with teamviewer? Don't know how to obtain the parameters...

Thanks again!