Boomaga / boomaga

Boomaga provides a virtual printer for CUPS. This can be used for print preview or for print booklets.
Other
181 stars 34 forks source link

Can't install Boomaga in Manjaro #70

Closed Ahmed-E-86 closed 6 years ago

Ahmed-E-86 commented 6 years ago

I tried to install Boomaga from AUR in Manjaro, but I didn't find Boomaga in the list of printers after the end of the installation, and I tried to add printer, and choose Boomaga, but I don't know what to write in connection.

screenshot_20180417_212438

SokoloffA commented 6 years ago

As far as I know Manjaro and Arch Linux doesn't support installation scripts in packages, so you will have to create a printer manually. You can use the following script scripts/installPrinter.sh.

SokoloffA commented 6 years ago

Run it as root

Ahmed-E-86 commented 6 years ago

The script works well, but when I print to Boomaga, I get this error : (Unknown format or input file) in print queue.

screenshot_20180418_002202

SokoloffA commented 6 years ago

Do you have files like ~/.cache/boomaga_in_file_* ? Are they normal size? Show me output of file ~/.cache/boomaga_in_*

Ahmed-E-86 commented 6 years ago

No such file or directory.

Ahmed-E-86 commented 6 years ago

For more information about my system :

screenshot_20180422_201415

SokoloffA commented 6 years ago

I apologize for the long silence I have been in offline. Do you have the directory ~/.cache ? If no create it and try again.

Look CUPS logs: sudo journalctl -u cups --since "2018-04-18" |grep -i boomaga

Ahmed-E-86 commented 6 years ago

Yes, I have the .cache directory.

And no output in the terminal for this script :

sudo journalctl -u cups --since "2018-04-18" |grep -i boomaga

SokoloffA commented 6 years ago
  1. Check the ownersips and permissions of the file /usr/lib/cups/backend/boomaga. It should be root:root rwx------
    ls -l /usr/lib/cups/backend/boomaga 
    -rwx------ 1 root root 13704 мар 22 21:26 /usr/lib/cups/backend/boomaga
  2. Turn on debug mode in CUPS. This page should help you. Try to print and look for messages from the boomaga in the logs.
    • In the files in /var/log/cups/
    • In the systemd logs through 'journalctl'
SokoloffA commented 6 years ago

I now install Manjaro from the scratch in a virtual machine. Executed the following commands:

sudo pacman -S  git devtools cmake qt5-tools cups snappy poppler
git clone https://github.com/Boomaga/boomaga.git
mkdir boomaga/build
cd boomaga/build
cmake .. && make && sudo make install
sudo ../scripts/installPrinter.sh

And everything works well:

echo "Test" | lp -

Try to delete the existing virtual printer and install it again

sudo ./installPrinter.sh
Ahmed-E-86 commented 6 years ago

I checked for permissions, and it's like this : screenshot_20180424_233511

I removed Boomaga, and compiled it, and it gives me this error :

screenshot_20180424_233306

SokoloffA commented 6 years ago

/usr/lib/cups/backend/boomaga must be owned by root.

sudo chown root:root /usr/lib/cups/backend/boomaga
Ahmed-E-86 commented 6 years ago

Still gives the same error!

SokoloffA commented 6 years ago

What does the same error, "has insecure permissions" or "unknown format of input file"?

Ahmed-E-86 commented 6 years ago

image

SokoloffA commented 6 years ago
  1. Check the permissions ls -l /usr/lib/cups/backend/boomaga it should be like -rwx------ 1 root root
  2. If the rights is correct, restart the printer - press the "Pause printer" button and then "Resume printer".
Ahmed-E-86 commented 6 years ago

@SokoloffA

I did a fresh installation of Manjaro, and I compiled Boomaga as you said before, and it gave me the same error after using Boomaga virtual printer which is (uknown format of input file).

I checked permissions and this is the result : screenshot_ _

I got this error when I tried to use this command : sudo pacman -S git devtools cmake qt5-tools cups snappy poppler

screenshot_ _

I tried to use Ubuntu 18.04 instead of Manjaro, but it's not stable yet.

Any help will be apperaciated.

SokoloffA commented 6 years ago

About "breaks dependency of the poppler". I don't know, I don't use Manjaro/Arch, please contact to Manjaro community.

About "unknown format of input file". Turn on debug mode in CUPS. This page should help you. Try to print and look for messages from the boomaga in the logs.

Ahmed-E-86 commented 6 years ago

Someone reported the same issue that I have in the page of boomaga in AUR from 2 months ago (His name is F1iX), and I reported this issue as well.

https://aur.archlinux.org/packages/boomaga-qt5/#news

Ahmed-E-86 commented 6 years ago

@SokoloffA

I tried these commands in terminal :

cat /var/log/cups/error_log | grep boomaga journalctl | grep boomaga

and this is the output of terminal saved as pdf file

terminal_output_boomaga.pdf

Ahmed-E-86 commented 6 years ago

@SokoloffA

Could at least tell me what is Manjaro's release you used that worked without any problem with Boomaga?

SokoloffA commented 6 years ago

I checked on Manjaro KDE 17.1.8. But Manjaro is a rolling release distribution, so everything can break at any time. Now I'm on vacation and I have no way to run Manjaro just now. When I return, I will try to find еру reason of "unknown format" error.

SokoloffA commented 6 years ago

I fixed "Unknown format of input file" in the master branch.

Ahmed-E-86 commented 6 years ago

Thank you so much. It is solved.