link icon
Ask The Community

how to run teamviewer in headless mode inside an ubuntu x86_64 docker image

marietto2008 Posts: 1 Newbie

Hello to everyone.

I'm using the jetson nano with ubuntu 18.04 as host os and I would like to run teamviewer. I tried to install the armhf package for the raspberry and after some experiment I gave up because tw does not work in this way. Then I created a docker image with ubuntu focal x86_64 and I have installed teamviewer i386 and I have installed the xorg video dummy :

$ sudo apt-get install xserver-xorg-video-dummy

then I have enabled the daemon,as u can see :

[email protected]:/etc/default# ps ax


   1 pts/0   Ssl   0:00 /usr/bin/qemu-x86_64-static /bin/bash

 381 ?       Sl    0:10 /usr/bin/qemu-i386-static /opt/teamviewer/tv_bin/teamviewerd -d

now,following this tutorial :

I've created a new xorg.conf file with this content inside :

# This xorg configuration file is meant to be used
# to start a dummy X11 server.
# For details, please see:
# Here we setup a Virtual Display of 1600x900 pixels
Section "Device"
        Identifier  "Configured Video Device"
        Driver      "dummy"
        #VideoRam 4096000
        #VideoRam 256000
        VideoRam    16384
Section "Monitor"
        Identifier  "Configured Monitor"
        HorizSync   5.0 - 1000.0
        VertRefresh 5.0 - 200.0
        Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
Section "Screen"
        Identifier  "Default Screen"
        Monitor     "Configured Monitor"
        Device      "Configured Video Device"
        DefaultDepth 24
        SubSection "Display"
                 Viewport 0 0
                 Depth 24
                 Virtual 1600 900

probably to do that it's not enough,because I'm not able to configure tw. Infact it gives this error :

[email protected]:/# teamviewer license accept

The framebuffer console seems to be unavailable or has the wrong format. Please make sure that       

/dev/fb0 is accessible and it is configured to 32-bit depth.

now.according with this thread :

I should :

edit my /etc/default/grub file and add these two lines.GRUB_GFXMODE=1024x768x32

Save the file and run the command

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

unfortunately on the docker image there isn't any grub file :

[email protected]:/etc/default# find / -name grub







so,what to do ?

Sign In or Register to comment.