LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-24-2018, 03:38 AM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Rep: Reputation: 38
Can't get a Slackware Airprint server working


Hi,

I'm trying to make a Slackware 14.1 box working as a wireless print server with airprint support for iPads.

I tried to follow the Tutorial https://www.linuxquestions.org/questions/blog/rod3775-407266/building-a-cups-server-for-a-network-with-slackware-37415, but my server box has only wlan0 connected to the local network and I'm not sure how to set up hostapd or if I need it at all. Do I really need to set up a new network?

I installed hostapd, libdaemon, avahi and nss-mdns from SBo, rebuilt and installed the cups package with avahi and mdns enabled, edited /etc/cups/cupsd.conf, replaced the gstoraster bin with the perl script (in /usr/lib/cups/filter/), created the mime files, and ran airprint-generate script, all according to the tutorial. Also I read the Linux magazine article linked in the tutorial.

Now the iPad finds the remote printer and if it prints, a processing dialog window appears and disappears after one or two seconds, so I think it's sending the data to the server, but cups doesn't recognize anything. There's no print out and no log file entry.

Here is what my /etc/hosts entry looks like:
Code:
127.0.0.1               localhost
192.168.x.y          <hostname>.local <hostname>.<domain> <hostname>
(I replaced the real host name, domain and IP)

For the network connection I use wicd.

In /etc/cups/cupsd.conf I tested using "ServerAlias *" as well as "ServerAlias <hostname>.local <hostname>.<domain>" but that doesn't seem to change anything.
Also I tested rebuilding and installing cups 2.1.4 and 2.2.8, but that also made no difference.

Remote printing from other Slackware systems using ipp works fine.

Can anybody give me a hint what I'm doing wrong please? How can I make it work?

Last edited by slacksam; 08-24-2018 at 04:19 AM.
 
Old 08-25-2018, 01:27 PM   #2
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Did you create the user "avahi" ?
 
Old 08-25-2018, 02:22 PM   #3
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by slac-in-the-box View Post
Did you create the user "avahi" ?
Yes.
The avahi.Slackbuild script requires to create the avahi group and user before building the package.
Avahi is installed and running. With "avahi-browse -a" I can see that.
Also the iPad sees the printer. But no printing job reaches cups. The cups log files don't show any event when a job is sent from the iPad.

I also made the entries in /etc/rc.d/rc.M to start /etc/rc.d/rc.hostapd, /etc/rc.d/rc.avahidaemon, /etc/rc.d/rc.avahidnsconfd and /etc/rc.d/rc.cups in the order described in the tutorial, and I tested putting mdns to /etc/nsswitch.conf in the line "hosts:...", and after every change in /etc/hosts I made a reboot of the system.

But still no success.
 
Old 08-26-2018, 06:45 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
perhaps you need an explicit "allow" directive in the location part of cupsd.conf...
 
Old 08-31-2018, 07:27 AM   #5
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by slac-in-the-box View Post
perhaps you need an explicit "allow" directive in the location part of cupsd.conf...
Sorry I didn't reply, but now I have no iPad to test it with. As soon as I can test it I'll give a response.

Is there way to check if avahi is working correctly by using GNU/Linux system instead of an iPad?

As I already mentioned, CUPS is working from remote Slackware machines using ipp.
 
Old 10-15-2018, 03:12 PM   #6
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
Now I tested printing from an Android phone and two iPhones and all work fine. Also printing from a newer iPad works. It's an older iPad that doesn't work and I couldn't find the reason why, but now it's a minor issue.

Thanks for your support.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PIDORA as CUPS Server and AirPrint Station tombelcher7 Fedora 3 09-21-2014 10:00 AM
Airprint Print Server from Raspberry Pi tombelcher7 Linux - Server 1 08-04-2014 05:01 PM
New member - Raspberry Pi Model B, Samba4, AirPrint, DHCP server fun! Jonwaldo LinuxQuestions.org Member Intro 0 02-19-2014 06:36 AM
Turn your Raspberry Pi into a Print Server foWindows, Linux, Mac and iOS AirPrint - BASH Script to d elliotjreed LinuxAnswers Discussion 0 10-28-2013 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration