LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2006, 07:42 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Problem With CUPS


I notice that my Debian box has a problem talking to network printers after like 3 days of uptime. I am not sure exactly when it happens but it is after a few days.

My Debian box connects to a CUPS server here on the same LAN. The CUPS server is a CENTOS4 server we threw together and every other PC (FC5) on the LAN can hold this connections for months but I am the only Debian box and only one having this problem.

When I go to print, my print list should look like this, however after the 3 days uptime, I will go to print and only see the top two options: 1- Create a PDF & Generic Postscript ONLY

Screenshot

All my LAN printers are missing from the list unless I reboot my machine, then it all comes magically back.

Anyone have any suggestions why Debian, Gnome, or CUPS is doing this? I suspect my Debian box since it is the only one that has this issue and is resolved only when I reboot my box, not the CUPS server.
 
Old 09-20-2006, 08:05 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
There has been a fix that comes with an cups update for Fedora... but never the less if you once restarted and you say that then all printers are visible.
Can you try to print using the lp command?
 
Old 09-20-2006, 08:08 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
How would I print using the "lp" command? Never have done that before. I see the "man" page for "lp" but I don't understand how I would use this via CLI and force it to a specific printer? Can you browse printers using the "lp" command or do you have to manually specifiy one and how would that look in the command?

Last edited by carlosinfl; 09-20-2006 at 08:12 AM.
 
Old 09-20-2006, 08:13 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Here are some commands

Code:
To list all available printers type:
lpstat -p -d

Then to print to a specific printer use either:
lp -d printer filename

or
lpr -P printer filename

To print in landscape mode add the option -o landscape, eg
lpr -P printer -o landscape filename

To print multiple copies of a document use the -n number switch to lp or the -# number switch to lpr

if you need more info check out 
man lp
regards
 
Old 09-20-2006, 08:17 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
OK - right now I can view and print using the "lp" command but right now I can also print using the "GUI print" button as well. I guess I need to wait and see when the printers vanish from my GUI list, if I then can list all the printers via CLI like I can now...

Code:
cwilliams@cwilliams:~$ lpstat -p -d
printer Konica-LT2-bw is idle.  enabled since Wed 20 Sep 2006 08:15:07 AM EDT
printer prt102-bw is idle.  enabled since Wed 20 Sep 2006 08:15:27 AM EDT
printer prt103-bw is idle.  enabled since Wed 20 Sep 2006 08:15:32 AM EDT
printer prt107-bw is idle.  enabled since Wed 20 Sep 2006 08:15:16 AM EDT
printer prt107-color is idle.  enabled since Wed 20 Sep 2006 08:15:09 AM EDT
printer prt107-copier is idle.  enabled since Wed 20 Sep 2006 08:15:20 AM EDT
printer prt124-bw is idle.  enabled since Wed 20 Sep 2006 08:15:12 AM EDT
printer prt142-bw now printing prt142-bw-0.  enabled since Wed 20 Sep 2006 08:15:30 AM EDT
printer prt142-mcopier is idle.  enabled since Wed 20 Sep 2006 08:15:12 AM EDT
printer prt144-bw is idle.  enabled since Wed 20 Sep 2006 08:15:11 AM EDT
printer prt151-bw is idle.  enabled since Wed 20 Sep 2006 08:15:13 AM EDT
printer prt154-bw is idle.  enabled since Wed 20 Sep 2006 08:15:14 AM EDT
printer prt158-bw is idle.  enabled since Wed 20 Sep 2006 08:15:34 AM EDT
printer prt158-color is idle.  enabled since Wed 20 Sep 2006 08:15:32 AM EDT
printer prt201-color is idle.  enabled since Wed 20 Sep 2006 08:15:17 AM EDT
printer prt201-copier is idle.  enabled since Wed 20 Sep 2006 08:15:21 AM EDT
printer prt201a-bw is idle.  enabled since Wed 20 Sep 2006 08:15:23 AM EDT
printer prt216-bw is idle.  enabled since Wed 20 Sep 2006 08:15:23 AM EDT
printer prt221-bw is idle.  enabled since Wed 20 Sep 2006 08:15:28 AM EDT
printer prt231-bw is idle.  enabled since Wed 20 Sep 2006 08:15:29 AM EDT
printer prt242-bw is idle.  enabled since Wed 20 Sep 2006 08:15:33 AM EDT
printer prt242-color is idle.  enabled since Wed 20 Sep 2006 08:15:05 AM EDT
printer prt242-copier is idle.  enabled since Wed 20 Sep 2006 08:15:06 AM EDT
printer prt_201_copier is idle.  enabled since Wed 20 Sep 2006 08:15:07 AM EDT
printer prtdeflorez-bw is idle.  enabled since Wed 20 Sep 2006 08:15:16 AM EDT
printer prtdeflorez-color is idle.  enabled since Wed 20 Sep 2006 08:15:10 AM EDT
system default destination: prt124-bw
 
  


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
Cups problem hitest Debian 3 09-23-2005 09:50 PM
CUPS problem israel Linux - Software 1 06-01-2005 09:50 PM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
cups problem daniela Linux - Newbie 2 10-25-2004 01:21 PM
Problem with CUPS MindsEyeX2 Linux - Software 4 11-25-2003 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 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