Install TeamViewer on Linux without graphical user interface - TeamViewer Support
<main>
<article class="userContent">
<h3></h3><h2 data-id="general">General</h2><div class="blockquote"><div class="blockquote-content"><p class="blockquote-line"><em>This article applies to all TeamViewer users.</em></p></div></div><p>This article describes the installation and configuration of TeamViewer on headless Linux systems (e.g. servers). Such instances include:</p><ul><li>No screen attached to device</li><li>X server not running on the device</li><li>Via SSH</li><li>For unattended access</li></ul><p>Basic installation is the same as described in <a href="https://community.teamviewer.com/English/kb/articles/6318-install-teamviewer-on-linux" rel="nofollow noreferrer ugc">Install TeamViewer on Linux </a></p><p><br></p><h3 data-id="-1"></h3><h2 data-id="xorg-without-a-screen">Xorg without a screen</h2><p><strong>📌Note</strong>: By default, <strong>Xorg </strong>will not start if no screen is detected. You can prevent this by creating a <strong>Xorg configuration with a dummy screen definition</strong>.</p><p><br></p><h3 data-id="-2"></h3><h2 data-id="framebuffer-console-without-xorg">Framebuffer console without Xorg</h2><p>TeamViewer can be used to access machines without a graphical desktop environment (<strong>Xorg, Wayland</strong>). TeamViewer lets you connect to the <strong>foreground console</strong> (as indicated by <code class="code codeInline" spellcheck="false" tabindex="0">fgconsole</code>). In other words, the VT (virtual terminal) which is currently visible on the screen – or would be visible if a screen was attached.</p><p><strong>📌Note</strong>: The console must be a <strong>framebuffer console</strong>. If the file <code class="code codeInline" spellcheck="false" tabindex="0">/dev/fb0</code> does not exist, you might have to adapt your kernel configuration or kernel boot parameters.</p><p>Connections to the console are exclusive. If an X server is running, incoming connections will go to the active X session.</p><p><strong>📌Note</strong>: If no X server is installed or used, dependencies to Qt can technically be ignored. Instead of forcing the package manager to ignore them, you may use the TAR package.</p><p><br></p><h3 data-id="-3"></h3><h2 data-id="unattended-access%3A-command-line-configuration">Unattended access: command line configuration</h2><p>When installing on the <strong>console</strong> or via <strong>ssh</strong>, the UI is not available in order to see the <strong>TeamViewer ID</strong>, set a <strong>password</strong>, or <strong>assign the device to a TeamViewer account</strong>. However, the same functionality is also available on the command line:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">teamviewer help # list all available commands
teamviewer info # show TeamViewer ID
teamviewer passwd # set password
teamviewer setup # assign device to account
</pre><p>If you <strong>assign a device to your account</strong>,a password is not required to be set. Instead, follow the setup assistant instructions to complete the installation. The device will then appear in <strong>Computers & Contacts</strong>.</p><p> An example installation and setup would look like this:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ apt install ./teamviewer*.deb
$ teamviewer setup
Please enter your e-mail: mail@example.org
Please enter your password: ******
You have successfully added this computer to your Computers & Contacts.
</pre>
</article>
</main>