Risultati da 1 a 9 di 9

Discussione: [SLACK]problema con la configurazione della stampante [RISOLTO]

  1. #1
    Senior Member
    Data Registrazione
    20-06-2002
    Località
    Milano, per ora...
    Messaggi
    209

    [SLACK]problema con la configurazione della stampante [RISOLTO]

    Ho una stampante Epson Stylus Photo 810, perfettamente compatibile secondo linuxprinting.org. Ho fatto la configurazione tramite web (http://localhost:631) e ho preparato diverse stampanti a seconda dell'utilizzo (testo, immagini, foto, ecc.). Provando a stampare la pagina di prova da web la stampa avviene senza problemi, ma quando provo a stampare da riga di comando la stampante non funziona e questo è l'output su console:
    Codice:
    Status Information, attempt 1 of 3:
    sending job 'root@darkstar+522' to testo@localhost
     connecting to 'localhost', attempt 1
     cannot open connection to localhost - No such file or directory
    Make sure the remote host supports the LPD protocol
    Waiting 10 seconds before retry
    Status Information, attempt 2 of 3:
    sending job 'root@darkstar+522' to testo@localhost
     connecting to 'localhost', attempt 1
     cannot open connection to localhost - No such file or directory
    Make sure the remote host supports the LPD protocol
    Waiting 10 seconds before retry
    sending job 'root@darkstar+522' to testo@localhost
     connecting to 'localhost', attempt 1
     cannot open connection to localhost - No such file or directory
    Make sure the remote host supports the LPD protocol
    sapete dove sta il problema?
    Ultima modifica di jnsen; 15-07-2004 alle 16.42.51
    "L'unica causa dell'infelicità dell'uomo è che non sa come stare tranquillamente nella sua stanza."
    Blaise Pascal - Matematicamente.it

  2. #2
    Software Zone Maniac
    Culattone Raccomandato
    L'avatar di parsEc
    Data Registrazione
    06-10-2001
    Messaggi
    3.151
    CUPS o lprng?
    USB o su Porta Parallela?

    Che comando dai per stampare da riga di comando?
    Windows XP has detected that there were no errors for the past 10 minutes.
    The system will now try to restart or crash. Click the OK button to continue.

  3. #3
    Senior Member
    Data Registrazione
    20-06-2002
    Località
    Milano, per ora...
    Messaggi
    209
    Uso Cups 1.1, ma nel sistema ho installato anche lprng. la stampante è USB su /dev/usb/lp0
    il comando è questo:
    Codice:
    lpr -P testo prova.txt
    dove "testo" è il nome che ho dato alla stampante (intesa come modo di stampa) nella configurazione web e prova.txt un file di testo nella stessa cartella da dove do il comando.
    "L'unica causa dell'infelicità dell'uomo è che non sa come stare tranquillamente nella sua stanza."
    Blaise Pascal - Matematicamente.it

  4. #4
    Software Zone Maniac
    Culattone Raccomandato
    L'avatar di parsEc
    Data Registrazione
    06-10-2001
    Messaggi
    3.151
    Edita il file /etc/cups/cupsd.conf e metti debug2 al livello di log

    LogLevel debug2

    riavvia il server cupsd

    /etc/rc.d/rc.cups restart

    Quindi fai un'altra prova (che sicuramente fallira') e posta il log della "sessione":

    /var/log/cups/error_log

    (ovviamente solo quello riguardante questa prova... controlla l'orario nel log)

    PS
    Posta il contenuto di /etc/hosts
    Windows XP has detected that there were no errors for the past 10 minutes.
    The system will now try to restart or crash. Click the OK button to continue.

  5. #5
    Senior Member
    Data Registrazione
    20-06-2002
    Località
    Milano, per ora...
    Messaggi
    209
    questo è il log della sessione, tutte le linee tranne le ultime due in realtà sono del riavvio di cups. solo le ultime due si riferiscono alla stampa.

    Codice:
    I [14/Jul/2004:02:21:28 +0200] Listening to 0:631
    D [14/Jul/2004:02:21:28 +0200] AddLocation: added location '/'
    D [14/Jul/2004:02:21:28 +0200] DenyIP: / deny 00000000/00000000
    D [14/Jul/2004:02:21:28 +0200] AllowIP: / allow 7f000001/ffffffff
    D [14/Jul/2004:02:21:28 +0200] AddLocation: added location '/admin'
    D [14/Jul/2004:02:21:28 +0200] DenyIP: /admin deny 00000000/00000000
    D [14/Jul/2004:02:21:28 +0200] AllowIP: /admin allow 7f000001/ffffffff
    I [14/Jul/2004:02:21:28 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
    I [14/Jul/2004:02:21:28 +0200] Configured for up to 100 clients.
    I [14/Jul/2004:02:21:28 +0200] Allowing up to 100 client connections per host.
    I [14/Jul/2004:02:21:28 +0200] Full reload is required.
    D [14/Jul/2004:02:21:28 +0200] LoadAllPrinters: Loading printer internet...
    d [14/Jul/2004:02:21:28 +0200] AddPrinter("internet")
    d [14/Jul/2004:02:21:28 +0200] Adding filter application/vnd.cups-raw printer/internet 0 -
    d [14/Jul/2004:02:21:28 +0200] FindBest: uri = "/printers/internet"...
    d [14/Jul/2004:02:21:28 +0200] FindBest: Location / Limit 7f
    d [14/Jul/2004:02:21:28 +0200] FindBest: Location /admin Limit 7f
    d [14/Jul/2004:02:21:28 +0200] FindBest: best = "/"
    d [14/Jul/2004:02:21:28 +0200] Adding filter application/vnd.cups-raster printer/internet 100 rastertoprinter
    d [14/Jul/2004:02:21:28 +0200] Adding filter application/vnd.cups-command printer/internet 33 commandtoepson
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "ipp"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "lpd"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "smb"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb://EPSON/Stylus%20Photo%20810"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp1"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp2"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp3"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp4"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp5"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp6"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp7"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp8"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp9"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp10"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp11"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp12"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp13"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp14"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "usb:/dev/usb/lp15"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "http"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "scsi"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS4?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS5?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS6?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS7?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS8?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS9?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS10?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS11?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS12?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS13?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS14?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS15?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS16?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS17?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS18?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS19?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS20?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS21?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS22?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS23?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS24?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS25?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS26?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS27?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS28?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS29?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS30?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "serial:/dev/ttyS31?baud=115200"...
    D [14/Jul/2004:02:21:28 +0200] LoadDevices: Added device "socket"...
    I [14/Jul/2004:02:21:28 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 523 PPDs...
    I [14/Jul/2004:02:21:28 +0200] LoadPPDs: No new or changed PPDs...
    D [14/Jul/2004:02:21:28 +0200] LoadAllJobs: Scanning /var/spool/cups...
    I [14/Jul/2004:02:21:28 +0200] Full reload complete.
    D [14/Jul/2004:02:21:28 +0200] StartListening: NumListeners=1
    D [14/Jul/2004:02:21:28 +0200] StartListening: address=00000000 port=631
    D [14/Jul/2004:02:21:28 +0200] ResumeListening: setting input bits...
    d [14/Jul/2004:02:21:28 +0200] ResumeListening: Adding fd 0 to InputSet...
    d [14/Jul/2004:02:21:28 +0200] StartBrowsing: Adding fd 2 to InputSet...
    d [14/Jul/2004:02:21:28 +0200] StartServer: Adding fd 3 to InputSet...
    d [14/Jul/2004:02:22:14 +0200] DeleteCert: removing certificate for pid 0
    d [14/Jul/2004:02:22:14 +0200] AddCert: adding certificate for pid 0
    ...e questo è il mio /etc/hosts:

    Codice:
    #
    # hosts		This file describes a number of hostname-to-address
    #		mappings for the TCP/IP subsystem.  It is mostly
    #		used at boot time, when no name servers are running.
    #		On small systems, this file can be used instead of a
    #		"named" name server.  Just add the names, addresses
    #		and any aliases to this file...
    #
    # By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
    # should NEVER be named with the name of the machine.  It causes problems
    # for some (stupid) programs, irc and reputedly talk. :^)
    #
    
    # For loopbacking.
    127.0.0.1	localhost
    # This next entry is technically wrong, but good enough to get TCP/IP apps
    # to quit complaining that they can't verify the hostname on a loopback-only
    # Linux box.
    127.0.0.1	darkstar.example.net darkstar
    
    # End of hosts.
    ps: scusa per il ritardo nella risposta ma ho dovuto reinstallare slack perchè ho fatto dei casini nella ricompilazione del kernel...

    "L'unica causa dell'infelicità dell'uomo è che non sa come stare tranquillamente nella sua stanza."
    Blaise Pascal - Matematicamente.it

  6. #6
    Senior Member
    Data Registrazione
    20-06-2002
    Località
    Milano, per ora...
    Messaggi
    209
    scusa, mi sono sbagliato, in realtà credevo di usare cups, ma stavo usando lprng.
    a questo punto cosa devo fare per dire al sistema di usare cups invece che lprng?

    ps: ho slackware10
    "L'unica causa dell'infelicità dell'uomo è che non sa come stare tranquillamente nella sua stanza."
    Blaise Pascal - Matematicamente.it

  7. #7
    Software Zone Maniac
    Culattone Raccomandato
    L'avatar di parsEc
    Data Registrazione
    06-10-2001
    Messaggi
    3.151
    Ma hai installato anche cups?

    Ricordo che quando metti entrambi i sistemi di stampa vengono adottate delle contromisure per evitare conflitti... fai in questo modo e vai sul sicuro (spero)

    removepkg lprng cups

    Quindi installa nuovamente cups... e fai le dovute prove.
    Windows XP has detected that there were no errors for the past 10 minutes.
    The system will now try to restart or crash. Click the OK button to continue.

  8. #8
    Senior Member
    Data Registrazione
    20-06-2002
    Località
    Milano, per ora...
    Messaggi
    209
    Tutto sistemato!
    Il problema evidentemente era il conflitto fra i due pacchetti. Ora ho installato solo cups e tutto funziona.
    grazie
    "L'unica causa dell'infelicità dell'uomo è che non sa come stare tranquillamente nella sua stanza."
    Blaise Pascal - Matematicamente.it

  9. #9
    Software Zone Maniac
    Culattone Raccomandato
    L'avatar di parsEc
    Data Registrazione
    06-10-2001
    Messaggi
    3.151
    Windows XP has detected that there were no errors for the past 10 minutes.
    The system will now try to restart or crash. Click the OK button to continue.

Segnalibri

Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •