1

Temat: Drukarka Samsung 1610

Witam. Przy konfiguracji działałem zgodnie z http://wiki.openwrt.org/OpenWrtDocs/Kamikaze/Printers lecz coś nie drukuje.

root@OpenWrt:/tmp# uci show p910nd
p910nd.@p910nd[0]=p910nd
p910nd.@p910nd[0].bidirectional=1
p910nd.@p910nd[0].enabled=1
p910nd.@p910nd[0].port=0
p910nd.@p910nd[0].device=/dev/lp0
root@OpenWrt:/tmp# uname -a
Linux OpenWrt 2.6.25.17 #16 Sun Feb 15 00:19:46 CET 2009 mips unknown
root@OpenWrt:/tmp# ps ax | grep p910
 2856 root      1120 S    /usr/sbin/p9100d -b -f /dev/lp0 0
 2882 root      1964 S    grep p910
root@OpenWrt:/tmp# cat /proc/bus/usb/devices 
T:  Bus=01 Lev=02 Prnt=04 Port=02 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1     
P:  Vendor=04e8 ProdID=3268 Rev= 1.00                            
S:  Manufacturer=Samsung Electronics Co., Ltd.                   
S:  Product=Samsung ML-1610 Series                               
S:  SerialNumber=3921BKAY400381Y.                                
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA                           
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms                        
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms  
root@OpenWrt:/tmp# lsmod
usbcore               109408  8 usblp,usb_storage,speedtch,uhci_hcd,ehci_hcd,usbatm
root@OpenWrt:/tmp# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        6      0 0.0.0.0:9100            0.0.0.0:*               LISTEN      
tcp        0      0 192.168.1.1:9100        192.168.1.197:42597     SYN_RECV    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN      
tcp      507      0 192.168.1.1:9100        192.168.1.197:57167     ESTABLISHED
tcp      507      0 192.168.1.1:9100        192.168.1.197:57165     ESTABLISHED
tcp        0      0 192.168.1.1:23          192.168.1.197:51533     ESTABLISHED
tcp      507      0 192.168.1.1:9100        192.168.1.197:57164     ESTABLISHED
tcp      507      0 192.168.1.1:9100        192.168.1.197:57168     ESTABLISHED
tcp      507      0 192.168.1.1:9100        192.168.1.197:57166     ESTABLISHED
tcp      507      0 192.168.1.1:9100        192.168.1.197:57163     ESTABLISHED
tcp        0      0 192.168.1.1:9100        192.168.1.197:57161     ESTABLISHED
netstat: no kernel support for AF INET6 (tcp)
udp        0      0 0.0.0.0:53              0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
netstat: no kernel support for AF INET6 (udp)
netstat: no kernel support for AF INET6 (raw)
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  8      [ ]         DGRAM                       285 /dev/log
unix  2      [ ]         DGRAM                     10324
unix  2      [ ]         DGRAM                      4237
unix  2      [ ]         DGRAM                       957
unix  2      [ ]         DGRAM                       854
unix  2      [ ]         DGRAM                       505
unix  2      [ ]         DGRAM                       289

Na komputerze lokalnym:

linux:/home/wmp # cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2009-03-07 18:15
<Printer samsung>
Info Samsung ML-1610 Foomatic/gdi (recommended)
DeviceURI ipp://192.168.1.1:9100
State Idle
StateTime 1236446081
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
linux:/home/wmp # telnet 192.168.1.1 9100
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
linux:/home/wmp #

2

Odp: Drukarka Samsung 1610

/dev/lp0? A nie /dev/usb/lp0?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Drukarka Samsung 1610

na /dev/usb/lp0 w logread pisze, że nie ma takiego pliku

4

Odp: Drukarka Samsung 1610

A masz w ogóle /dev/lp0? Czy czasami ta drukarka nie wymaga załadowania firmware przed drukowaniem?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Drukarka Samsung 1610

Jak nie mam je podłączone, to nie ma pliku lp0, jednak jak ją podłącze, to istnieje.
O firmware nic nie wiem

6

Odp: Drukarka Samsung 1610

Poza wyłączeniem dwukierunkowości nie wiele możesz tu zdziałać. Może ten samsung nie będzie chciał działać w ten sposób, bo nie wszystkie chcą.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Drukarka Samsung 1610

To co zrobić?

8

Odp: Drukarka Samsung 1610

Jeżeli to nie kwestia ustawień - to nie będzie działać i koniec.
Możesz jeszcze jakiegoś klienta windzianego sprawdzić czy faktycznie nie działa.

Ew - postawić na ruterze cupsa.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Drukarka Samsung 1610

Zainstalowałem cupsa, jakąś potrzbeną mu bibliotekę i widze w logread:

Feb  6 22:57:04 OpenWrt user.err syslog: Will not use User root (UID=0) as specified on line 26 for security reasons.  You must use a non-privileged account instead.
Feb  6 22:57:04 OpenWrt user.info syslog: Listening to :::631 (IPv6)
Feb  6 22:57:04 OpenWrt user.info syslog: Listening to 0.0.0.0:631 (IPv4)
Feb  6 22:57:04 OpenWrt user.warn syslog: "AuthClass System" is deprecated; consider using "Require user @SYSTEM" on line 38.
Feb  6 22:57:04 OpenWrt user.warn syslog: "AuthClass System" is deprecated; consider using "Require user @SYSTEM" on line 45.
Feb  6 22:57:04 OpenWrt lpr.info cupsd[4478]: Loaded configuration file "/etc/cups/cupsd.conf"
Feb  6 22:57:04 OpenWrt lpr.notice cupsd[4478]: Group and SystemGroup cannot use the same groups!
Feb  6 22:57:04 OpenWrt lpr.info cupsd[4478]: Resetting Group to "nobody"...
Feb  6 22:57:04 OpenWrt lpr.err cupsd[4478]: Unable to create directory "/var/cache/cups" - No such file or directory
Feb  6 22:57:04 OpenWrt lpr.emerg cupsd[4478]: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!

10

Odp: Drukarka Samsung 1610

/etc/cups/cupsd.conf nie masz

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Drukarka Samsung 1610

mam

12

Odp: Drukarka Samsung 1610

Feb  6 22:57:04 OpenWrt lpr.emerg cupsd[4478]: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Drukarka Samsung 1610

root@OpenWrt:~# ls -la /etc/cups/cupsd.conf
-rw-r--r--    1 root     root         1287 Jan 31 18:48 /etc/cups/cupsd.conf
root@OpenWrt:~# chmod 766 /etc/cups/cupsd.conf
root@OpenWrt:~# /etc/init.d/cupsd start
cupsd: Child exited with status 1!
root@OpenWrt:~# logread
Feb  7 05:53:20 OpenWrt user.err syslog: Will not use User root (UID=0) as specified on line 26 for security reasons.  You must use a non-privileged account instead.
Feb  7 05:53:20 OpenWrt user.info syslog: Listening to :::631 (IPv6)
Feb  7 05:53:20 OpenWrt user.info syslog: Listening to 0.0.0.0:631 (IPv4)
Feb  7 05:53:20 OpenWrt user.warn syslog: "AuthClass System" is deprecated; consider using "Require user @SYSTEM" on line 38.
Feb  7 05:53:20 OpenWrt user.warn syslog: "AuthClass System" is deprecated; consider using "Require user @SYSTEM" on line 45.
Feb  7 05:53:20 OpenWrt lpr.info cupsd[4583]: Loaded configuration file "/etc/cups/cupsd.conf"
Feb  7 05:53:20 OpenWrt lpr.notice cupsd[4583]: Group and SystemGroup cannot use the same groups!
Feb  7 05:53:20 OpenWrt lpr.info cupsd[4583]: Resetting Group to "nobody"...
Feb  7 05:53:20 OpenWrt lpr.err cupsd[4583]: Unable to create directory "/var/cache/cups" - No such file or directory
Feb  7 05:53:20 OpenWrt lpr.emerg cupsd[4583]: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!

14

Odp: Drukarka Samsung 1610

mkdir /var/cache/cups jeszcze zrób

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: Drukarka Samsung 1610

działa wink

16

Odp: Drukarka Samsung 1610

Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: clients=4                                                   
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: jobs=0                                                      
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: jobs-active=0                                               
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: printers=0                                                  
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: printers-implicit=0                                         
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: stringpool-string-count=163                                 
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: stringpool-alloc-bytes=4640                                 
Feb  8 01:53:34 OpenWrt lpr.debug cupsd[4778]: Report: stringpool-total-bytes=3536                                 
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: Closing client 10 after 300 seconds of inactivity...                
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdCloseClient: 10                                                
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdAcceptClient: 10 from localhost:631 (IPv4)                     
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdReadClient: 10 POST / HTTP/1.1                                 
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdAuthorize: Authorized as root using Local                      
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdIsAuthorized: username="root"                                  
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: CUPS-Get-Devices
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: [CGI] /usr/lib/cups/daemon/cups-deviced started - PID = 4904
Feb  8 01:54:04 OpenWrt lpr.info cupsd[4778]: Started "/usr/lib/cups/daemon/cups-deviced" (pid=4904)
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: cupsdSendCommand: 10 file=11
Feb  8 01:54:04 OpenWrt lpr.err cupsd[4778]: PID 4904 (/usr/lib/cups/daemon/cups-deviced) stopped with status 1!
Feb  8 01:54:04 OpenWrt lpr.debug cupsd[4778]: [CGI] cups-deviced: Bad user 0!

Jakoś nic ciekawego nei wyguglowałem, na irc cups'a nikt się nie odzywa, na #rootnode nikt nic nie wie...

17

Odp: Drukarka Samsung 1610

skonfigurowałeś driver do cupsa, zróbiłeś drukarkę aktywną, drukuje stronę testową z poziomu cupsa?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: Drukarka Samsung 1610

Nie, nic z tego nie zrobiłem ponieważ gdy chcę dodać drukarkę, to wywal ten błąd a ładowanie strony w przeglądarce(192.168.1.1:631) trwa w nieskończoność

19

Odp: Drukarka Samsung 1610

Już się o to nie pluje, należało dodac nowego usera do /etc/passwd takim wpisaem:

lp:x:4:7:Printing daemon:/var/lpd:/bin/bash

Następnie, w pliku /etc/cups/cupsd.conf należy zmienić usera i grupę na tą podaną w /etc/passwd:

User lp
Group lp

Jednak to nie koniec... Brakowało jakiegoś filtru, cups zgłaszał to komunikatem: Filter “rastertosamsungspl” for printer “Samsung” not availa
Pobrałem sterowniki ze strony samsung, i wrzuciłem ten plik do katalogu /usr/lib/cups/filter/ i przestał o to krzyczeć.

Chciałem zrobić wydruk testowy, lecz przy takiej próbie dostawałem error: File not found. Skopiowałem z mojego komputera lokalnego plik /usr/share/cups/data/testprint.ps do tego samego katalogu na routerze. Dla potomnych, plik można pobrać tu: http://wmp.rootnode.net/asus/cups/testprint.ps

Chciałem go wydrukować, to pojaiwał się następny problem, na którym na razie zakończyłem boje: Unsupported format 'application/postscript'!

Dodam jeszcze, że nie wiem dlaczego, ale na routerze cups nie nasłuchuje na porcie 515, a powinein. Jets to domyślny port ldp.