Page 1 of 1

Broken installation process

Posted: Mon May 20, 2019 10:28 am
by andersl
Hi,

I can not install as a user. My system is configured with sudo, and I can do everything else with sudo, but the turboprint installation fails after entering my password.

I can install using "sudo ./setup".

I can not add printer profiles or select my key as a user. Turboprint again fails silently, or actually wrongly claims succes.

After installation, there is no tpdaemon.service available to systemctl. Shouldn't there be one?

Kindly,
Anders

Re: Broken installation process

Posted: Mon May 20, 2019 1:47 pm
by andersl
I have the problem that the daemon is not running, I believe, since the monitor tells me that the printer is not connected or not running - but i gladly prints away.

Re: Broken installation process

Posted: Mon May 20, 2019 2:06 pm
by zedonet
Hello,

a workaround for your problem is to start TurboPrint Control from a Terminal window with the command

sudo turboprint

Of course we would like to fix this problem.
What is your Linux distribution & version?

Re: Broken installation process

Posted: Mon May 20, 2019 2:43 pm
by andersl
Hi,

Thanks for answering.

I'm using archlinux, it is rolling release and up to date. The daemon runs on my other laptop, but I can't remember if I created a systemctl service manually, and it was an earlier version I installed on that one originally (2.45 iirc). I have the same problems with color profiles on the other laptop.

Is there a way I can configure it to use sudo? For now, I run turboprint under kdesu to get to create color profiles.

Kindly,
Anders

Re: Broken installation process

Posted: Tue May 21, 2019 5:13 pm
by zedonet
Hello,

I could confirm the problem on archlinux and we are working on a solution.

Re: Broken installation process

Posted: Wed May 22, 2019 6:02 am
by andersl
Nice! There is a community package in https://aur.archlinux.org/packages/turboprint, but I did not try it.

Re: Broken installation process

Posted: Thu May 23, 2019 10:17 am
by zedonet
If found that a security mechanism has been recently added or enabled in ArchLinux that prevents communication between the user application "TurboPrint Control" and a TurboPrint background application that is started as "root" that actually updates the printer settings.

You can open a Terminal window and enter the command

sudo sysctl fs.protected_regular=0

to make TurboPrint Control work without "sudo" (the current default value in ArchLiux is "fs.protected_regular=1").


However, we are working on a solution for the next TurboPrint release.

Re: Broken installation process

Posted: Mon May 27, 2019 3:10 pm
by zedonet
A new TurboPrint version 2.48-2 has just been released that fixes the problem with ArchLinux - please download and update your current TurboPrint version.

Re: Broken installation process

Posted: Sat Jul 06, 2019 7:04 pm
by alex666
... but no working daemon in Manjaro ...

Re: Broken installation process

Posted: Mon Jul 22, 2019 10:17 am
by zedonet
Hello alex666, thank you for this information and please excuse the delay. I could reproduce the problem and we will fix this in the next TurboPrint release. The TurboPrint Daemon currently doesn't start because it depends on the cups printing system daemon that has a different name under Manjaro Linux.

You can do the following to get it going:

1. edit the file /usr/share/turboprint/lib/tpdaemon.service and change the line "After=cups.service" to "After=org.cups.cupsd.service":

Code: Select all

[Unit]
Description=Turboprint Monitor Daemon
After=org.cups.cupsd.service
...
then execute the following commands in a Terminal window

Code: Select all

install --mode=644 /usr/share/turboprint/lib/tpdaemon.service /etc/systemd/system
install --mode=644 /usr/share/turboprint/lib/turboprint.user.service /etc/systemd/user
systemctl daemon-reload
systemctl enable tpdaemon.service
systemctl --global enable turboprint.user.service