it might not be the best idea to install this software on machines with super secret data or access to expensive industry equipment (better use reverse ssh tunnel for that, yes it’s also possible to reverse-ssh-tunnel x11vnc but it’s pretty slow)

what if teamviewer.com get’s hacked?

BUT it is required to create a teamviewer account

hostnamectl; # tested on
Operating System: Debian GNU/Linux 12 (bookworm) 
Kernel: Linux 6.1.0-27-amd64
Architecture: x86-64

su - root;
apt install -y curl apt-transport-https;

curl -fSsL https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/teamview.gpg > /dev/null

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

apt update;

apt install -y teamviewer;

# log off root
Ctrl+D

# start it to configure it (unattended access is under security)
teamviewer

# make it autostart
teamviewer --daemon enable; # try

# put this in rc.local
teamviewer --daemon start;
su user -c "export DISPLAY=':0.0'; /usr/bin/teamviewer" &
su user -c "export DISPLAY=':0.0'; /usr/bin/teamviewer" &
systemctl enable teamviewerd.service; # but maybe also try
# for some reason it says it's active
# but still client does not show up in web console?

# yes not required to install client local
# a webserver is enough to connect to client
systemctl status teamviewerd.service

● teamviewerd.service - TeamViewer remote control daemon Loaded: loaded
(/etc/systemd/system/teamviewerd.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-12-31 00:10:24 CET;
1h 3min ago Process: 1272 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 1278 (teamviewerd) Tasks: 17 (limit: 9337) Memory: 22.2M CPU: 2.851s CGroup: /system.slice/teamviewerd.service
└─1278 /opt/teamviewer/tv_bin/teamviewerd -d

# how to uninstall it
su - root
killall teamviewerd;
apt -f purge teamviewer; 

when all this is setup

the client needs to be configured for unattended access

put the mail and pwd of the registered teamviewer account

and the computer will show up on the list of accessible machines

UNFORTUNATELY

in Ubuntu (IN CONTRAST TO DEBIAN) unattended access is not possible

as a user still has to slide that button

not ideal for unattended access X-D

now please install a Debian vm that keeps running 24-7 so users can remote access ubuntu

(headless system) resolution too low?

# as user that is running the desktop (xorg server)

loginctl | grep -E '.*tty|.*seat'
1 1000 user seat0 

export DISPLAY=':0.0'
xrandr --fb 1920x1020

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin