Disabling anydesk autostart on sysvinit
Re: Disabling anydesk autostart on sysvinit
Perfect - that did it.
Thanks andyprough!
Thanks andyprough!
- quantumalchemy
- Posts: 3
- Joined: Thu Sep 23, 2021 10:25 am
Re: Disabling anydesk autostart on sysvinit
On ..
update-rc.d anydesk disable
I Get ->
insserv: warning: current start runlevel(s) (empty) of script `anydesk' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `anydesk' overrides LSB defaults (0 1 6).
Failed to disable unit, unit anydesk.service does not exist
this thing (anydesk) is Crazy!
lots of solutions none work .. running on latest ver of mx (4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
using - anydesk - install / repo info here:
http://deb.anydesk.com/howto.html?_ga=2 ... 1632166372
And No way of stopping this thing..
anydesk --stop-service - No go
service anydesk stop - No go
service anydesk status shows (-) not running but:
anydesk --get-status - shows "online"
** Only way to stop this thing is to -->
pkill -f "anydesk"
kill -9 #
Then it Hangs when you try and restart with --> anydesk --service
** I also gave the appimage a go for host and client (thinking what the hell .. sounded like a good idea)
works on my MX laptop
But not on MX (same ver) and same hardware on remote host --> complains about missing libraries .. YeeeeSH!
Anyone have a clue on a real working solution?
Thanks!
update-rc.d anydesk disable
I Get ->
insserv: warning: current start runlevel(s) (empty) of script `anydesk' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `anydesk' overrides LSB defaults (0 1 6).
Failed to disable unit, unit anydesk.service does not exist
this thing (anydesk) is Crazy!
lots of solutions none work .. running on latest ver of mx (4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
using - anydesk - install / repo info here:
http://deb.anydesk.com/howto.html?_ga=2 ... 1632166372
And No way of stopping this thing..
anydesk --stop-service - No go
service anydesk stop - No go
service anydesk status shows (-) not running but:
anydesk --get-status - shows "online"
** Only way to stop this thing is to -->
pkill -f "anydesk"
kill -9 #
Then it Hangs when you try and restart with --> anydesk --service
** I also gave the appimage a go for host and client (thinking what the hell .. sounded like a good idea)
works on my MX laptop
But not on MX (same ver) and same hardware on remote host --> complains about missing libraries .. YeeeeSH!
Anyone have a clue on a real working solution?
Thanks!
Re: Disabling anydesk autostart on sysvinit
The solution was already provided within this thread.
Now here an update:
How to install and disable andesk startup service in MX Linux.
Installing the downloaded deb from anydesk directly did not work in the past, so we added some tweaks to make installation and uninstall work in MX Linux.
Installation:
Open MX Package Installer (MXPI), type into search field anydesk, mark anydesk for installation and click install.
Disable startup servcice:
With booted sys-V-init do just this:
Code: Select all
sudo update-rc.d anydesk remove
For any detailed question, one would accept posting "QSI" (Quick System Info)
HTH
+++EDIT+++: adjusted some typos...
- quantumalchemy
- Posts: 3
- Joined: Thu Sep 23, 2021 10:25 am
Re: Disabling anydesk autostart on sysvinit
Thanks for the info on mx-packageinstaller tweeks so it will run
seems to be a catch 22 .. cant ssh and run mx-packageinstaller (errors)
-- anyway to install a package using mx-packageinstaller (repo) via ssh ?
seems to be a catch 22 .. cant ssh and run mx-packageinstaller (errors)
-- anyway to install a package using mx-packageinstaller (repo) via ssh ?
Re: Disabling anydesk autostart on sysvinit
if ssh is just terminal, not sure whether a terminal only install with mx-packageinstaller is prepared.quantumalchemy wrote: ↑Thu Sep 23, 2021 12:15 pm Thanks for the info on mx-packageinstaller tweeks so it will run
seems to be a catch 22 .. cant ssh and run mx-packageinstaller (errors)
-- anyway to install a package using mx-packageinstaller (repo) via ssh ?
But assume a proper ssh-tunneled x-session would do, at least I don't see a reason why not.
- quantumalchemy
- Posts: 3
- Joined: Thu Sep 23, 2021 10:25 am
Re: Disabling anydesk autostart on sysvinit
using ssh -X (ssh-tunneled x-session)
command shown in mx >>
su-to-root -X -c mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
jec@jec:~
TRY 2
[sudo] password for user:
X11 connection rejected because of wrong authentication.
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:10.0
Could not connect to any X display.
TRY 3 >> just ->
$ mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password: (pw for root)
$
** (process:12206): ERROR **: 12:33:04.220: Got unexpected EOF while reading from controlling terminal.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
/usr/bin/mx-pkexec: line 73: 12206 Trace/breakpoint trap pkexec /usr/bin/mx-pkexec "${@}"
-bash: oot: command not found
not looking good .. seems you need to be using the gui only to access?
command shown in mx >>
su-to-root -X -c mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
jec@jec:~
TRY 2
[sudo] password for user:
X11 connection rejected because of wrong authentication.
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:10.0
Could not connect to any X display.
TRY 3 >> just ->
$ mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password: (pw for root)
$
** (process:12206): ERROR **: 12:33:04.220: Got unexpected EOF while reading from controlling terminal.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
/usr/bin/mx-pkexec: line 73: 12206 Trace/breakpoint trap pkexec /usr/bin/mx-pkexec "${@}"
-bash: oot: command not found
not looking good .. seems you need to be using the gui only to access?
Re: Disabling anydesk autostart on sysvinit
Gui only was tested. ssh-tunneled X-session probably something to look into.quantumalchemy wrote: ↑Thu Sep 23, 2021 12:39 pm using ssh -X (ssh-tunneled x-session)
command shown in mx >>
su-to-root -X -c mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
jec@jec:~
TRY 2
[sudo] password for user:
X11 connection rejected because of wrong authentication.
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:10.0
Could not connect to any X display.
TRY 3 >> just ->
$ mx-packageinstaller
==== AUTHENTICATING FOR org.mxlinux.mx-pkexec ===
Authentication is required to run this application
Authenticating as: root
Password: (pw for root)
$
** (process:12206): ERROR **: 12:33:04.220: Got unexpected EOF while reading from controlling terminal.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
/usr/bin/mx-pkexec: line 73: 12206 Trace/breakpoint trap pkexec /usr/bin/mx-pkexec "${@}"
-bash: oot: command not found
not looking good .. seems you need to be using the gui only to access?
Re: Disabling anydesk autostart on sysvinit
Does this work in MX 21 KDE? Because I get the error:fehlix wrote: ↑Thu Sep 23, 2021 11:43 am
Disable startup servcice:
With booted sys-V-init do just this:The removal of an autostart entry within session and startup, as shown in my last post, seems not be needed anymore, b/c anydesk when start as service, will now initiate the user/session startup through dbus.Code: Select all
sudo update-rc.d anydesk remove
"insserv: warning: could not find all dependencies for $dbus"
Re: Disabling anydesk autostart on sysvinit
Seems those warnings do not have any other implications.
The reason seems to be within the provided init-script of anydesk package as they use a not defined facility name "$dbus" instead of "dbus".
You can manually fix it this way:
Code: Select all
sudo sed -i '/^# Required-St/s:$dbus:dbus:' /etc/init.d/anydesk
as warnings are kind of "info for the package developer to fix something" - means for normal user: to be ignored.

Re: Disabling anydesk autostart on sysvinit
I see, thank you for the explanation. But anydesk keeps on autostarting on startup!