LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-29-2005, 10:51 AM   #1
matarodi
Member
 
Registered: Jan 2005
Location: Mashhad
Distribution: Debian Sarge
Posts: 65

Rep: Reputation: 15
printer 2100 in debian


I install my hp 2100 printer via web interface(http://localhost:931) and when i send test page it is not print and i have this line in my status printer:
Description: Students Printer
Location: Agriculture College
Printer State: idle, accepting jobs.
"Printer not connected; will retry in 30 seconds..."
Device URI: parallel:/dev/unknown-parallel0

But i test it with knoppix 4 in KDE and everything is ok and i can print test page and others,i think it depend on dev/unknown-parrall0 but in knoppix4 it was /dev/lp0

how can i slove this problem?
thanks
 
Old 12-29-2005, 02:16 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
First, turn on the power in your printer, then reboot. This gives Debian the opportunity to recognize your printer and create the device node /dev/lp0. Then follow these instructions:

http://www.debian.org/doc/manuals/re...en.html#s-cups
 
Old 12-29-2005, 11:27 PM   #3
matarodi
Member
 
Registered: Jan 2005
Location: Mashhad
Distribution: Debian Sarge
Posts: 65

Original Poster
Rep: Reputation: 15
thanks dead
i change Device URI: parallel:/dev/unknown-parallel0 in /etc/cups/printers.conf to /dev/lp0 and my printer response but not print correctly,for example when i write a word like "TEST" in my openoffice writer and print it my printer print like the following words:

%!PS-Adobe-3.0
%RBINumCopies: 1
%%Pages: (atend)
%%BoundingBoxatend)
%%Creator:
and dont print my document?
plz help me
 
Old 12-30-2005, 05:03 AM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
After rebooting the computer with power turned on in your printer, open a terminal window and type this:

ls -l /dev/lp0

If /dev/lp0 exists, the output will tell you the permissions, owner and group of that device node plus some extra info. If /dev/lp0 doesn't exist, the output will tell you so.

After you've made sure that /dev/lp0 exists, you need to install all the cups, foomatic and ghostscript packages that cups needs for your printer (just follow the instructions from http://www.debian.org/doc/manuals/re...en.html#s-cups ).

Then point your web browser to http://localhost:631 and configure cups for your printer. No manual editing of /etc/cups/printers.conf is needed for this.

Then you can test your printer configuration by printing some text from openoffice writer.

To summarize:
(1) Check that /dev/lp0 exists (with "ls -l /dev/lp0").
(2) Install all the packages that cups needs.
(3) Configure cups for your printer in http://localhost:631
If you fail to do any of these steps correctly, then your printer won't work. The most common problem that people experience is that they haven't managed to install all the necessary packages.
 
Old 12-30-2005, 10:04 PM   #5
matarodi
Member
 
Registered: Jan 2005
Location: Mashhad
Distribution: Debian Sarge
Posts: 65

Original Poster
Rep: Reputation: 15
Dear Dead

thanks a lot

I remove cups with apt-get remove cups and install again, when it finished everything is ok and my printer work correctlly,now i want share it for all my ldap + samba users with the following quotas:

Bsc Student:30 pages in term
M.sc Student:150 pages in term
Phd Student:300 pages in term
staff:200 pages
teachers:1000 pages in term
guest:0 pages
....
And i Want charge auotmatic this quota in every start term??
I hear about Pykota software.?
 
Old 01-03-2006, 10:23 PM   #6
matarodi
Member
 
Registered: Jan 2005
Location: Mashhad
Distribution: Debian Sarge
Posts: 65

Original Poster
Rep: Reputation: 15
when my users logon to ldap and connect to my debian server via samba(PDC) and want add printer, the following message appear and user can not add printer :

A policy is in effect to prevents from connecting to print qeue,....???


This is the printer setting in smb.conf:

# lpr(ng) printing. You may wish to override the location of the
# printcap file
printing = bsd
printcap name = /etc/printcap

# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
; printer admin = @ntadmin

[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
; public = no
public = yes
writable = no
create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
; write list = root, @ntadmin
I dont know how can solve this problem???

Last edited by matarodi; 01-03-2006 at 10:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HP LaserJet 2100 Parallel Printer on SUSE 10.0 aherm Linux - Hardware 1 10-20-2005 01:16 PM
What does Debian do with my USB printer? atheist Debian 15 11-30-2004 01:57 AM
Configure Printer in Debian MaMatO Debian 1 02-08-2004 01:39 AM
Canon BJC-2100 printer versus valid Linux printers OldSarge Linux - Hardware 0 11-19-2003 02:54 PM
I have a Canon BJC 2100 printer and it prints slowlyyyyy. Please help petru_b16 Linux - Hardware 1 09-01-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration