ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Подключение принтера
@ 2006-02-06  8:21 Eugene Prokopiev
  2006-02-06  8:34 ` Eugene Prokopiev
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene Prokopiev @ 2006-02-06  8:21 UTC (permalink / raw)
  To: Community

Здравствуйте!

Имею ALM 2.4+updates, HP LaserJet 1100, подключенный к /dev/lp0, и 
следующий cupsd.conf:

LogLevel info
MaxJobs 500
User lp
Group lp
RunAsUser no
NoIzvrat yes
TempDir /var/spool/cups/tmp
Port 631
<Location />
Order Deny,Allow
Allow From All
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

printers.conf пуст.

В выводе foomatic-configure -O вижу:

   <printer>
     <id>HP-LaserJet_1100</id>
     <make>HP</make>
     <model>LaserJet 1100</model>
     <functionality>A</functionality>
     <driver>hpijs</driver>
     <autodetect>
     <parallel>
       <commandset>MLC,PCL,PJL</commandset>
       <description>HP LaserJet 1100 Printer</description>
       <manufacturer>Hewlett-Packard</manufacturer>
       <model>HP LaserJet 1100</model>
     </parallel>
   </autodetect>
     <drivers>
       <driver>lj4dith</driver>
       <driver>ljet4</driver>
       <driver>stp</driver>
     </drivers>
   </printer>

Поэтому добавляю принтер так:

# foomatic-configure -s cups -n HPLJ1100 -p HP-LaserJet_1100 -d ljet4 
parallel:/dev/lp0
Use of uninitialized value in substitution (s///) at 
/usr/lib/perl5/vendor_perl/Foomatic/DB.pm line 3426.

При этом получаю такой printers.conf:

# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Mon Feb  6 11:09:15 2006
<DefaultPrinter HPLJ1100>
Info HP LaserJet 1100
DeviceURI file:/dev/null
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Меняю значение DeviceURI на parallel:/dev/lp0 (кстати, почему 
foomatic-configure не смог этого сделать?) и рестартую сервис cups.

Теперь через http://hostname:631/ пытаюсь напечатать тестовую страничку 
(как это сделать не через web?) - но принтер ничего не печатает. В 
случае lpr /etc/hosts тоже ничего не происходит. В /var/log/cups/page_log:

HPLJ1100  1 [06/Feb/2006:11:13:49 +0300] 1 1 - localhost
HPLJ1100 root 2 [06/Feb/2006:11:16:30 +0300] 1 1 - localhost

Что я делаю не так?

Как-то иначе (кажется через lpadmin) я добивался того, что вместо 
тестовой страницы печаталось %!PS-Adobe и т.д., т.е. порт/принтер живы, 
дело в настройках.

-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] Подключение принтера
  2006-02-06  8:21 [Comm] Подключение принтера Eugene Prokopiev
@ 2006-02-06  8:34 ` Eugene Prokopiev
  0 siblings, 0 replies; 2+ messages in thread
From: Eugene Prokopiev @ 2006-02-06  8:34 UTC (permalink / raw)
  To: ALT Linux Community

> Как-то иначе (кажется через lpadmin) я добивался того, что вместо 
> тестовой страницы печаталось %!PS-Adobe и т.д., т.е. порт/принтер живы, 
> дело в настройках.

Об исправлении printers.conf написал, а сделать забыл :)

Теперь это работает, но тестовая страница печатается смещенной. Где это 
исправить?


-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-06  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06  8:21 [Comm] Подключение принтера Eugene Prokopiev
2006-02-06  8:34 ` Eugene Prokopiev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git