К основному контенту

Настройка принтера HP Laserjet 1020 в ubuntu (kubuntu).

1. Скачиваем необходимый драйвер с официального сайта.

$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
--2010-01-03 11:19:24-- http://foo2zjs.rkkda.com/foo2zjs.tar.gz
Преобразование адреса foo2zjs.rkkda.com... 74.208.41.246
Устанавливается соединение с foo2zjs.rkkda.com|74.208.41.246|:80... соединились.
Запрос HTTP послан, ожидание ответа... 200 OK
Длина: 1588047 (1,5M) [application/x-tar]
Сохраняется в каталог: `foo2zjs.tar.gz'.

100%[============================================================================>] 1 588 047 43,0K/s в 55s

2010-01-03 11:20:19 (28,1 KB/s) - `foo2zjs.tar.gz' сохранён [1588047/1588047]

2. Распаковываем полученный архив:

tar zxf foo2zjs.tar.gz

cd foo2zjs

3. Теперь компилируем и инсталируем. Файл INSTALL содержит много информации и инструкций. Рекомендуется прочитать.
$ make

#
# Dependencies...
#
# ... OK!
#
cc -O2 -Wall -c -o foo2zjs.o foo2zjs.c
cc -O2 -Wall -c -o jbig.o jbig.c
cc -O2 -Wall -c -o jbig_ar.o jbig_ar.c
cc -O2 -Wall -o foo2zjs foo2zjs.o jbig.o jbig_ar.o
cc -O2 -Wall -c -o zjsdecode.o zjsdecode.c
cc -O2 -Wall zjsdecode.o jbig.o jbig_ar.o -o zjsdecode
cc -O2 -Wall arm2hpdl.c -o arm2hpdl
cc -O2 -Wall -c -o foo2hp.o foo2hp.c
# cc -O2 -Wall -o foo2hp foo2hp.o jbig.o jbig_ar.o /usr/local/lib/libdmalloc.a
cc -O2 -Wall -o foo2hp foo2hp.o jbig.o jbig_ar.o
cc -O2 -Wall -c -o foo2xqx.o foo2xqx.c
cc -O2 -Wall -o foo2xqx foo2xqx.o jbig.o jbig_ar.o
cc -O2 -Wall -c -o xqxdecode.o xqxdecode.c
cc -O2 -Wall xqxdecode.o jbig.o jbig_ar.o -o xqxdecode
cc -O2 -Wall -c -o foo2lava.o foo2lava.c

...
...
...

It is possible that certain products which can be built using this
software module might form inventions protected by patent rights in
some countries (e.g., by patents about arithmetic coding algorithms
owned by IBM and AT&T in the USA). Provision of this software by the
author does NOT include any licences for any patents. In those
countries where a patent licence is required for certain applications
of this software module, you will have to obtain such a licence
yourself.

4. Выполняем скрипт, который скачивает необходимый драйвер для нашего принтера.
В моем случае это HP LaserJet 1020:


$ ./getweb 1020
sihp1020.img

(c) Copyright Hewlett-Packard 2005

5. Инсталируем:
$ sudo make install

6.

$ sudo make install-hotplug
#
# Hotplug Installation Dependencies...
#
# ... OK!
#
if [ -d /etc/udev/rules.d ]; then \
install -c -m 644 hplj10xx.rules /etc/udev/rules.d/11-hplj10xx.rules; \
fi
[ -d /etc/hotplug/usb ] || install -d -m 755 /etc/hotplug/usb/
install -c -m 755 hplj1000 /etc/hotplug/usb/
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1005
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1018
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hplj1020
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1005
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1006
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1007
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1008
ln -sf /etc/hotplug/usb/hplj1000 /etc/hotplug/usb/hpljP1505
/etc/hotplug/usb/hplj1000 install-usermap
/etc/hotplug/usb/hplj1005 install-usermap
/etc/hotplug/usb/hplj1018 install-usermap
/etc/hotplug/usb/hplj1020 install-usermap
/etc/hotplug/usb/hpljP1005 install-usermap
/etc/hotplug/usb/hpljP1006 install-usermap
/etc/hotplug/usb/hpljP1007 install-usermap
/etc/hotplug/usb/hpljP1008 install-usermap
/etc/hotplug/usb/hpljP1505 install-usermap
# modprobe usblp
/etc/hotplug/usb/hplj1000 install-usblp

7.


$ sudo make cups

if [ -x /etc/init.d/cups ]; then \
/etc/init.d/cups restart; \
elif [ -x /etc/rc.d/rc.cups ]; then \
/etc/rc.d/rc.cups restart; \
elif [ -x /etc/init.d/cupsys ]; then \
/etc/init.d/cupsys restart; \
elif [ -x /etc/init.d/cupsd ]; then \
/etc/init.d/cupsd restart; \
elif [ -x /usr/local/etc/rc.d/cups.sh ]; then \
/usr/local/etc/rc.d/cups.sh restart; \
elif [ -x /usr/local/etc/rc.d/cups.sh.sample ]; then \
cp /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cups.sh; \
/usr/local/etc/rc.d/cups.sh restart; \
fi
* Restarting Common Unix Printing System: cupsd [ OK ]


Следущее. Надо добавить принтер в операционную систему.
Добавить принтер из стандартного меню - получается.Но у меня он что-то не работает.
Сейчас пытаюсь использовать HP liP http://hplipopensource.com/

p.s. в конце концов используя hp-setup Удалось запустить принтер.

Комментарии

  1. Так, проделал все эти действия в кубунту, принтер так и не подцепился.
    Бесит.

    ОтветитьУдалить

Отправить комментарий

Популярные сообщения из этого блога

rtorrent

#.rtorrent.rc scgi_port = localhost:5000 min_peers = 10 max_peers = 50 max_uploads = 10 download_rate = 2000K upload_rate = 500K directory = /home/torrents/torrents/ session = /home/torrents/torrents/.rtsession schedule = watch_directory,60,60,load_start=/home/torrents/torrents/watch/*.torrent port_range = 7899-7899 port_random = no check_hash = yes peer_exchange = yes

Unix Toolbox

System Running kernel and system information # uname -a # Get the kernel version (and BSD version) # lsb_release -a # Full release info of any LSB distribution # cat /etc/SuSE-release # Get SuSE version # cat /etc/debian_version # Get Debian version Use /etc/DISTR-release with DISTR= lsb (Ubuntu), redhat, gentoo, mandrake, sun (Solaris), and so on. # uptime # Show how long the system has been running + load # hostname # system's host name # hostname -i # Display the IP address of the host. # man hier # Description of the file system hierarchy # last reboot # Show system reboot history Hardware Informations Kernel detected hardware # dmesg # Detected hardware and boot messages # lsdev # information about installed hardware # dd if=/d...