Автор Гілка: Принтер HP  (Прочитано 668 раз)

romi

  • Гість
Принтер HP
« : 2009-08-16 13:54:02 »
Допоможіть налаштувати Linux для роботи з принтером HP Deskjet 3520.
Я встановив hplip і dbus-python.
Hplip зкомпільований з підтримкою dbus.
D-Bus запущений.
При конфігурації ядра біля пункту "USB Printer support" поставив зірочку.
От що видає hp-setup:
#su
#hp-setup

HP Linux Imaging and Printing System (ver. 2.8.6b)
Printer/Fax Setup Utility ver. 7.2

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: GUI mode disabled in build. Reverting to interactive mode.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


Using connection type: usb

--------------------
| DEVICE DISCOVERY |
--------------------

error: No devices found.
error: Error occured during interactive mode. Exiting.
І це при тому, що принтер в даний момент підключений.
« Змінено: 2009-08-16 13:54:38 від romi »

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: Принтер HP
« Відповідей #1 : 2009-08-16 14:21:04 »
Будь ласка, виконайте команду hp-check і викладіть результати.
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

romi

  • Гість
Re: Принтер HP
« Відповідей #2 : 2009-08-16 14:28:13 »
# su
# hp-check

HP Linux Imaging and Printing System (ver. 2.8.6b)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball  
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).  

Saving output in log file: hp-check.log

Initializing. Please wait...
warning: Invalid ppd_dir value: None

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux localhost 2.6.30-gentoo-r4 #4 SMP Fri Aug 14 21:59:40 Local time zone must be set--see zic  i686 AMD Sempron(tm) Processor 2600+ AuthenticAMD GNU/Linux

Distribution:
gentoo 0.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt version...
error: NOT FOUND OR FAILED TO LOAD!

Checking SIP version...
error: SIP not installed or version not found.

Checking for CUPS...
error: Status: (Not available. CUPS may not be installed or not running.)

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: cups - Common Unix Printing System...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PyQt - Qt interface for Python...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.6b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=2.8.6b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.8.6b
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
pp-build=no
gui-build=no
scanner-build=no
fax-build=no
dbus-build=no
cups11-build=no
doc-build=no
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.6.20b


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
warning: No queues found.

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------


-----------
| SUMMARY |
-----------

error: 14 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: Принтер HP
« Відповідей #3 : 2009-08-16 14:33:03 »
Встановіть і запустіть фонову службу CUPS. Все має запрацювати.
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

romi

  • Гість
Re: Принтер HP
« Відповідей #4 : 2009-08-16 15:19:53 »
Встановіть і запустіть фонову службу CUPS.
rc-update add cups default not found /etc/initd/cups
тому я зробив так:
rc-update add cupsd default
Надіюсь, це правильно?

Але hp-setup видає те ж саме  :(
А от що каже hp-check зараз:
hp-check

HP Linux Imaging and Printing System (ver. 2.8.6b)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball  
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).  

Saving output in log file: hp-check.log

Initializing. Please wait...
warning: Invalid ppd_dir value: None

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux localhost 2.6.30-gentoo-r4 #4 SMP Fri Aug 14 21:59:40 Local time zone must be set--see zic  i686 AMD Sempron(tm) Processor 2600+ AuthenticAMD GNU/Linux

Distribution:
gentoo 0.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt version...
error: NOT FOUND OR FAILED TO LOAD!

Checking SIP version...
error: SIP not installed or version not found.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.10
error_log is set to level: info
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: PyQt - Qt interface for Python...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.6b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=2.8.6b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.8.6b
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
pp-build=no
gui-build=no
scanner-build=no
fax-build=no
dbus-build=no
cups11-build=no
doc-build=no
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.6.20b


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
warning: No queues found.

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------


-----------
| SUMMARY |
-----------

error: 12 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

romi

  • Гість
Re: Принтер HP
« Відповідей #5 : 2009-08-16 16:03:16 »
Іще хотів додати.
В Кубунту 8.10 в режимі LiveCD принтер працює! Правда визначається як Deskjet 3500, але ж друкує.
Надрукувало мені зеленим "HP Printer Test Page" і іще всякі зелені смугасті кавуни і жовті гарбузи. Може іще щось мало друкувати, але я докінця недодруковував, бо фарби шкода, для HP-принтерів фарба "нынче" дорога.
Постає питання: що є такого в Кубунту чого немає в Gentoo?

Може це, дійсно, перейти з Gentoo на Kubuntu ?  ;D
« Змінено: 2009-08-16 16:04:22 від romi »

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: Принтер HP
« Відповідей #6 : 2009-08-16 17:38:40 »
Спробуйте пройтися пунктами цієї сторінки і подивитися, чи не пропустили ви чого.
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

romi

  • Гість
Re: Принтер HP
« Відповідей #7 : 2009-08-16 19:53:35 »
Спробуйте пройтися пунктами цієї сторінки і подивитися, чи не пропустили ви чого.
Та ні, начебто нічого не пропустив...
А може мені варто встановити hald ?

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: Принтер HP
« Відповідей #8 : 2009-08-16 20:01:44 »
Спробуйте пройтися пунктами цієї сторінки і подивитися, чи не пропустили ви чого.
Та ні, начебто нічого не пропустив...
А може мені варто встановити hald ?
Краще відкрийте посилання http://localhost:631/  і спробуйте додати принтер вручну.

Якщо не вийде, покажіть, що виводить команда lsusb (принтер має бути увімкнено).
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

romi

  • Гість
Re: Принтер HP
« Відповідей #9 : 2009-08-16 20:23:23 »
А де мені взнати Device URI ?
Якщо не вийде, покажіть, що виводить команда lsusb (принтер має бути увімкнено).
Пише: "command not found".
« Змінено: 2009-08-16 20:25:25 від romi »

romi

  • Гість
Re: Принтер HP
« Відповідей #10 : 2009-08-17 12:09:47 »
# su
# lsusb
Bus 001 Device 001: ID 1d6b:0002  
І то, воно відразу було "not found". З'явилося, здається, як я додав користувача (із звичайного, і рута) до групи lp.

А deviсe URI в Kubuntu і в Gentoo має бути однаковий?
« Змінено: 2009-08-17 12:10:56 від romi »

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: Принтер HP
« Відповідей #11 : 2009-08-17 12:28:35 »
# su
# lsusb
Bus 001 Device 001: ID 1d6b:0002  
І то, воно відразу було "not found". З'явилося, здається, як я додав користувача (із звичайного, і рута) до групи lp.

А deviсe URI в Kubuntu і в Gentoo має бути однаковий?
Так (якщо ви не міняли іншого обладнання).
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

romi

  • Гість
Re: Принтер HP
« Відповідей #12 : 2009-08-19 10:30:42 »
Все я розібрався.
Треба було зкомпілювати xorg-server з підтримкою HAL.
HAL повинен бути запущений.
Так що перевстановив я свою Gentoo...
Тепер команда lsusb видає мені не один рядочок, а чотири, в третьому вказаний мій принтер.
hp-setup знаходить мій принтер, сам оприділяє Device URI.
hp-toolbox друкує.

Linux для роботи з принтером HP Deskjet 3520 налаштований!

Спасибі, yurchor, за увагу до моєї проблеми.