You are not logged in.
Pages: 1
Hello folks,
DISREGARD THIS MATTER, I messed the system up, need to reinstall
I seldomly use my desktop, but some time could be useful to print some paper over the air. So I set up my DeskJet 1050 and shared via Samba. This is quite long now. Even the desktop is not up to date. But for a quite long it was working. I was able to print even from the smartphone.
So these days, my daughter asked to print something, but doesn't work. It's strange, because even my daughter laptop is not up to date, so almost all is frozen at the time that it was working. Roughly at November 2014.
Now some detail. Local printing is working, so sometime I use VNC for some printing. The problem comes when trying to connect the printer remotely. I tried with the smartphone and it stops after 30% is started, the Android app is SmartPrint. But apparently doesn't complete. I see that the paper is taken to print.
INFORMATION FROM THE SERVER SIDE
The cups log
$ tail /var/log/cups/error_log
E [02/Apr/2017:11:28:41 +0800] Hostname lookup for "10.1.1.*" failed.
E [02/Apr/2017:11:28:41 +0800] Bad Listen address 10.1.1.*:631 at line 4.
E [02/Apr/2017:11:38:04 +0800] Hostname lookup for "192.168.1.*" failed.
E [02/Apr/2017:11:38:04 +0800] Bad Listen address 192.168.1.*:631 at line 3.
E [02/Apr/2017:11:38:05 +0800] Hostname lookup for "10.1.1.*" failed.
E [02/Apr/2017:11:38:05 +0800] Bad Listen address 10.1.1.*:631 at line 4.
E [02/Apr/2017:11:40:29 +0800] Hostname lookup for "192.168.1.*" failed.
E [02/Apr/2017:11:40:29 +0800] Bad Listen address 192.168.1.*:631 at line 3.
E [02/Apr/2017:11:40:29 +0800] Hostname lookup for "10.1.1.*" failed.
E [02/Apr/2017:11:40:29 +0800] Bad Listen address 10.1.1.*:631 at line 4
The /etc/cups/cupsd.conf
$ cat /etc/cups/cupsd.conf
Port 631
Listen /run/cups/cups.sock
Listen 192.168.1.*:631
Listen 10.1.1.*:631
AutoPurgeJobs Yes
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
The samba configuration
#============================ Printer Settings ==============================
[DeskJet_1050]
comment = Home printer
path = /var/spool/samba
browsable=yes
; valid users = @adm, root, myself, angela, simone
; write list = @adm, root, myself, angela, simone
create mask=0700
printable = Yes
printer name = Deskjet_1050
; print command = lpr -r -P'%p' %s
; lpq command = /usr/bin/lpq -P'%p'
; lprm command = lprm -P'%p' %j
#============================ Share Definitions ==============================
I've gutenprint installed
$ pacman -Qs gutenprint
local/gutenprint 5.2.10-1
Top quality printer drivers for POSIX systems
myself@desktop-~> pacman -Qi gutenprint
Nome : gutenprint
Versione : 5.2.10-1
Descrizione : Top quality printer drivers for POSIX systems
Architettura : x86_64
8< 8<
Avahi is available
$ sudo systemctl status avahi-daemon
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled)
Active: active (running) since dom 2017-04-02 11:40:29 MYT; 39min ago
Main PID: 299 (avahi-daemon)
Status: "avahi-daemon 0.6.32 starting up."
CGroup: /system.slice/avahi-daemon.service
├─299 avahi-daemon: running [desktop.local]
└─316 avahi-daemon: chroot helper
apr 02 12:05:57 desktop avahi-daemon[299]: Record [HP\032Deskjet\0321050\032J410\032series\032\064\032desktop._ipp....pping.
apr 02 12:05:57 desktop avahi-daemon[299]: Record [desktop.local IN AAAA fe80::2a10:7bff:fe41:e31d ; ...pping.
apr 02 12:05:57 desktop avahi-daemon[299]: Record [_ipp._tcp.local IN PTR Virtual\032PDF\032Printer\0...pping.
apr 02 12:05:57 desktop avahi-daemon[299]: Record [Virtual\032PDF\032Printer\032\064\032desktop._ipp._tcp.local ...dl=app
apr 02 12:05:57 desktop avahi-daemon[299]: Record [Virtual\032PDF\032Printer\032\064\032desktop._ipp._tcp.local ...pping.
apr 02 12:05:58 desktop avahi-daemon[299]: Record [HP\032Deskjet\0321050\032J410\032series\032\064\032desktop._ipp....pping.
apr 02 12:05:58 desktop avahi-daemon[299]: Record [desktop.local IN AAAA fe80::2a10:7bff:fe41:e31d ; ...pping.
apr 02 12:05:58 desktop avahi-daemon[299]: Record [_ipp._tcp.local IN PTR Virtual\032PDF\032Printer\0...pping.
apr 02 12:05:58 desktop avahi-daemon[299]: Record [Virtual\032PDF\032Printer\032\064\032desktop._ipp._tcp.local ...dl=app
apr 02 12:05:58 desktop avahi-daemon[299]: Record [Virtual\032PDF\032Printer\032\064\032desktop._ipp._tcp.local ...pping.
Last edited by TheSaint (2017-04-03 10:04:31)
do it good first, it will be faster than do it twice the saint
Offline
Pages: 1