Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AirPrint-Services breaking WLAN in some circumstances #4

Open
malexmave opened this issue Apr 28, 2012 · 0 comments
Open

AirPrint-Services breaking WLAN in some circumstances #4

malexmave opened this issue Apr 28, 2012 · 0 comments

Comments

@malexmave
Copy link

Hello,

I was trying to use your Script in a way that was probably not intended, but seemed to work just fine:
My University has a CUPS-Server with some printers attached. We can ssh into the university network and tunnel a port to the cups-server to print from home.

I used the following steps:

  1. Create an SSH tunnel that links my local port 6631 to the remote port 631 on the CUPS server
  2. Add "BrowsePoll localhost:6631" to the /etc/cups/cupsd.conf file, restarted cups
  3. Checked that the printers are recognized correctly (they are)
  4. Downloaded your Script and ran it with the following parameters:
    -H localhost -P 6631 -u [my_username_on_the_server]
  5. The script created the .service-files just fine. I moved them to /etc/avahi/services and restarted the avahi-daemon
  6. All WLAN devices lost internet access, trying to connect to the WLAN yielded error messages stating that the device was unable to join the network
  7. I removed all AirPrint-*.service-Files from the directory, restarted the avahi-daemon and everything was fine again.

I am using the latest version of avahi that is available on the ubuntu repos. Other version information:
OS: Linux Mint 12 (latest version)
Router: TP-Link TL-WR841N

Devices I have tried to connect:
iPad 3
Laptop with Linux Mint 12
Google Nexus S

A sample .service file the script generated looks like this:

AirPrint r135_hp @ %h_ipp._tcp_universal._sub._ipp._tcp631txtvers=1qtotal=1Transparent=TURF=nonerp=printers/r135_hpnote=r135_hp SW-Laserdrucker in R135 (KogS)product=(GPL Ghostscript)printer-state=3printer-type=0x90d4pdl=application/octet-stream,application/pdf,application/postscript,image/gif,image/jpeg,image/png,image/tiff,text/html,text/plain,application/mozilla-ps,application/netscape-ps,application/vnd.cups-postscript,application/vnd.cups-raw

(no line breaks)

I don't know if this is a bug in Avahi, my Router or your script, but since everything is running fine while I am not using the script, I thought I'll report that bug here first and see what you can make of it.

If you need any more version information, ask.

Sincerely,
Malexmave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant