TeamViewer won’t startPosted: 2021-03-19 Filed under: desktop, network, system | Tags: inittab, lxdm, rc.4, teamviewer Leave a comment
I had to use TeamViewer. It is available from SBo, so I installed it (version 15.14.5). I am using -current, but the SlackBuild just repackages the binary provided from upstream, anyway. I followed the post-install instructions but the program won’t start.
EDIT (15 Jan 2022): I am using CRUX and the approach described below does not work. I actually read reports that this does not always work on Slackware either. What I did was to download the *.tar package for other systems (not officially supported). I run it from my home folder and it just works. Well, read the old post below if you are interested:
Long story short: you need a graphical log in manager. Using startx was the problem. For details, read below…
When started from the terminal it would display the following:
Init... CheckCPU: SSE2 support: yes Checking setup... Launching TeamViewer ... Launching TeamViewer GUI ...
I checked and double checked that I have followed the post-install instructions. I made sure that its daemon is executable:
chmod +x /etc/rc.d/rc.teamviewerd
Then, I started it:
Nothing. I added the following to
/etc/rc.d/rc.local, so it would start upon boot automatically, the rebooted:
# Start TeamViewer if [ -x /etc/rc.d/rc.teamviewerd ]; then /etc/rc.d/rc.teamviewerd start fi
Nope! Well, I started searching for a solution. Finally, I found the following discussion in the Arch Linux forums. The last post says to look at the TeamViewer pinned comments in AUR.
Reading the comments, it seems that the problem was the fact that I start X by simply typing
startx. Unbelievable. There’s a link to this discussion in the TeamViewer forums. The guy states:
I eventually identified the problem as being the lack of a display manager on my system. I prefer for my machine to simply boot to terminal and, when I need a graphical environment, I start one with ‘startx’
So? Let’s give it a try. I opened
/etc/inittab and changed the default runlevel to 4:
# Default runlevel. (Do not set to 0 or 6) id:4:initdefault:
I prefer the LXDM to XDM, so I installed it from SBo (with GT2, passing
GTK3=no to the script), then added this to
/etc/rc.d/rc.4 as advised in the README.SLACKWARE:
# Regardless of the comments below, let's check for lxdm first: if [ -x /usr/sbin/lxdm ]; then exec /usr/sbin/lxdm fi
Btw, reading the file in -current, it seems that
/etc/rc.d/rc.4.local may be the better place for this? Anyway. I rebooted, logged in from the graphical manager and TeamViewer starts.