You are not logged in.
Pages: 1
Hi, I'm relatively new to Arch Linux. I have an old desktop computer that I use as a printer server with two printers connected via USB. I had Lubuntu 12.04 on it but it had problems with the graphics driver so I switched to Arch and now the problem is solved and it's a lot faster.
The problem I have is that I haven't been able to setup the printer server successfully. This is what I have done.
I installed and configured cups and samba according to the wikis. I also went through the CUPS printer sharing wiki and followed all the directions, but I couldn't get to communicate with my other desktop (running Ubuntu 12.04 and CUPS 1.5). I could print locally from the server but not through the network. I downgraded to CUPS 1.5 on the server and it started working and everything was perfect.
Two days later it stopped working, no printing whatsoever from any computer, not even from the server; printers where not visible from the network and I kept getting this error:
cups "/usr/lib/cups/filter/foomatic-rip failed"I decided to upgrade to CUPS 1.6 and now I can print locally, and from one networked computer (I haven't tried the others yet) but the printers are not listed as network printers. The wiki says that I have to make sure that avahi-daemon loads before CUPS but, after two hours researching, I haven't been able to figure it out. How do I set the order in which daemons load? I have read the systemd wiki page, but I just can't figure it out.
Well, I hope somebody can help me.
Thanks
Last edited by leunam12 (2013-07-26 01:07:45)
Offline
Suddenly everything is working fine; I can communicate with the CUPS 1.6 server with a CUPS 1.5 client and even the Windows computers can see the printers now. I think I figured out how to make avahi-daemon load before cups by going to /usr/lib/systemd/system and adding the line "Before=cups.service" to the avahi-daemon.service file.
Offline
Though that modification to the service file will work for the time being, it will eventually be overwritten by a package update. The things in /usr/lib are not covered by the backup array of the package (nor should they be). Administrator modifications are meant to happen in /etc. For systemd units, this means that /etc/systemd/system will override the things in /usr/lib/systemd/system.
Please go research how to use the '.include' parameter of units as well as drop-in configs. Doing it with those methods will ensure that your personal configuration changes will stay persistent, while also allowing changes to the shipped service file to take effect as well.
BTW, I think it would be better to have the cups.service have "After=avahi-daemon.service". Otherwise, as you continue to configure things to use avahi, you have a good change of having a giganto list of After statements. Of course, this is just cosmetic, and either way should work.
Offline
Oh, thank you. I will follow your advice. I appreciate it.
Offline
Pages: 1