how to run teamviewer in headless mode inside an ubuntu x86_64 docker image
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
PID TTY STAT TIME COMMAND
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 : https://thilinamad.medium.com/remote-desktop-to-ubuntu-instance-with-no-gui-f98566adb53e
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: # https://www.xpra.org/xorg.conf # Here we setup a Virtual Display of 1600x900 pixels Section "Device" Identifier "Configured Video Device" Driver "dummy" #VideoRam 4096000 #VideoRam 256000 VideoRam 16384 EndSection 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 EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Virtual 1600 900 EndSubSection EndSection
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 GRUB_GFXPAYLOAD_LINUX=keep
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 ?