LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-18-2003, 02:40 PM   #1
strong.steve
LQ Newbie
 
Registered: Sep 2003
Location: Cedar Rapids, Iowa
Distribution: Fedora
Posts: 21

Rep: Reputation: 15
can't add a cups printer


I'm having trouble getting my Redhat Linux 9.0 server to allow people to add it's CUPS printer. I have used printconf to configure the printer (HP 1200 LaserJet) and I can print a test page without error. Users on the network that are using (ick)Windows can send print jobs without error. BUT, if I issue an lpq command, or try to add the printer from gnome, I get this error message:

server-error-service-unavailable

I've re-installed CUPS, I've retarted the CUPS service, I bitten large pieces of the printer and spit them on the floor :-)

Any ideas?

thanks in advance,
steve
 
Old 09-22-2003, 11:23 PM   #2
Shotsy
LQ Newbie
 
Registered: Sep 2003
Location: Oklahoma
Distribution: Slacker 4 evr
Posts: 3

Rep: Reputation: 0
do you have permision to do so IE being logged in as root and hit //localhost:631 from there you can add whatever you need to
 
Old 09-23-2003, 12:04 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use the lpr command to print.

You can do what Shotsy said and add the printer or change the settings of a printer from anywhere on your network. Though you need the IP address of your printer server.
 
Old 09-23-2003, 08:56 AM   #4
strong.steve
LQ Newbie
 
Registered: Sep 2003
Location: Cedar Rapids, Iowa
Distribution: Fedora
Posts: 21

Original Poster
Rep: Reputation: 15
I have done all that you suggest as root, but the behavior continues.
 
Old 09-23-2003, 11:23 AM   #5
Shotsy
LQ Newbie
 
Registered: Sep 2003
Location: Oklahoma
Distribution: Slacker 4 evr
Posts: 3

Rep: Reputation: 0
Try it via the cmd line as follows

Adding Your First Printer from the Command-Line
Run the lpadmin command with the -p option to add a printer to CUPS:

/usr/sbin/lpadmin -p printer -E -v device -m ppd

For a HP DeskJet printer connected to the parallel port this would look like:

/usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp1 -m deskjet.ppd

Similarly, a HP LaserJet printer using a JetDirect network interface at IP address 11.22.33.44 would be added with the command:

/usr/sbin/lpadmin -p LaserJet -E -v socket://11.22.33.44 -m laserjet.ppd
 
Old 09-23-2003, 01:52 PM   #6
strong.steve
LQ Newbie
 
Registered: Sep 2003
Location: Cedar Rapids, Iowa
Distribution: Fedora
Posts: 21

Original Poster
Rep: Reputation: 15
I did and got the same error:

unable to connect to server, connection refused.

I'm logged in as root and entering lpadmin without any operands gives the help message.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 11:44 PM
Can't add a new CUPS printer rob_tanner Red Hat 1 01-31-2005 08:11 AM
Windows Add Printer Wizard and CUPS mdavidn Linux - Hardware 0 11-28-2004 08:40 PM
parrellel printer in CUPS? No parellel printer option... servnov Linux - General 3 10-31-2004 03:08 PM
Add Samba printer to OpenOffice; CUPS permissions change after reboot bax Linux - Software 4 01-19-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:01 PM.

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