LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-01-2006, 03:05 PM   #1
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Rep: Reputation: 15
CUPS issues.


I have recently installed CUPS and the appropriate Brother MFC-420CN drivers. Now, my printer shows up on "Modify Printer" settings at http://localhost:631/. However, when I try to print a test page, nothing happens.

I am pretty sure it's worth noting that my printer is not connected to my computer. It's connected to a local area network. However, CUPS lists the device URI as usb:/dev/usb/lp0. That's probably not true as it is not directly to my computer.

When I try to change the printer's settings ("Printers" tab > Modify Printer -- from http://localhost:631/); I try to save the settings and nothing happens; the next page simply doesn't load. I took a look in the error log there are many "unauthorized" errors. If that is the case, then why doesn't CUPS just prompt for my username/password? It doesn't seem to do that.
 
Old 04-01-2006, 03:33 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
If the printer is not connected to your machine, you probably don't need CUPS. Printing queue is handled by the printer itself or by the machine it is connected to. What you need to do is to configure it.

If you're using KDE, run kprinter->Add printer. Then choose the right type. If you're unsure, just try the remote ones one by one and one (maybe more) of them should work.
 
Old 04-01-2006, 04:37 PM   #3
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mara
If you're using KDE, run kprinter->Add printer. Then choose the right type. If you're unsure, just try the remote ones one by one and one (maybe more) of them should work.
Unfortunately, I do not use KDE or GNOME. Are there programs available that are independent of them?

There is only one printer on my network, and I know its IP address, so that should not be a problem.
 
Old 04-01-2006, 08:30 PM   #4
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Okay, I tried

Code:
$ lp -h http://<ip address of printer>:<printer port> testpage.sxw
and I got

Code:
lp: Error - scheduler not responding!
Any ideas?
 
Old 04-01-2006, 08:37 PM   #5
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
I realized I probably need to omit http:// above. Now I have:

Code:
$ lp -h <ip address>:<port> testpage.sxw
lp: Error - no default destination available
 
Old 04-02-2006, 07:05 AM   #6
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 432

Rep: Reputation: 19
I recently installed an MFC-425CN on my home network. The Brother website suggests using the driver for the MFC-210C, which works for me.

Go into localhost/631, then Manage Printers, Modify Printer
At this point I see MFC-210C. Click "Continue".
For Device, select LPD/LPR Host or Printer an click "continue"
The URI I use is lpd://192.168.1.2/lpr Adjust address for your network.
Use trial and error with ping to locate the printer, or use
nmap -sP 192.168.1.*
to list the hosts on your network. Use /sbin/ifconfig to get your computer's address.

HTH
Jim
 
Old 04-02-2006, 08:12 AM   #7
jwramseyjr
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
I have a similar setup. I use CUPS on several linux hosts, but only one has the printer actually attached. As it happens I also use a 192.168.0 intranet.

First, you need to access the machine that actually has the printer attached. It should be possible to point your browser at "hostwithprinter:631". At that point, you should be able to print a test page. If you can't, then you have a printer printing problem. Look in /var/log/cups (that's on Fedora/Redhat, your mileage may vary). The error_log file may help.

Second, on the machine that has the printer physically attached I made these changes to /etc/cups/cupsd.conf.

Note 192.168.0.1 is my host with the printer attached

Add:
Listen 192.168.0.1:631
BrowseAllow from 192.168.0.*
BrowseAddress 192.168.0.255

with each of the "Location" sections add:
Allow From 192.168.0.0/24

Of course you have to stop/start the CUPS daemon to make these changes active.

The changes expose the CUPS server with the printer attached to your internal network. There may be a way to do this with the GUI, but I haven't found it. This works.
 
Old 04-02-2006, 01:54 PM   #8
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by CollieJim
I recently installed an MFC-425CN on my home network. The Brother website suggests using the driver for the MFC-210C, which works for me.

Go into localhost/631, then Manage Printers, Modify Printer
At this point I see MFC-210C. Click "Continue".
For Device, select LPD/LPR Host or Printer an click "continue"
The URI I use is lpd://192.168.1.2/lpr Adjust address for your network.
Use trial and error with ping to locate the printer, or use
nmap -sP 192.168.1.*
to list the hosts on your network. Use /sbin/ifconfig to get your computer's address.

HTH
Jim
Tried it, but like I said in the first post, CUPS won't let me modify my printer. When I click "modify printer" at the end, it asks for my username/password. And nothing happens. It seems like it requests a new page, but it never even starts to load.

Quote:
Originally Posted by jwramseyjr
I have a similar setup. I use CUPS on several linux hosts, but only one has the printer actually attached. As it happens I also use a 192.168.0 intranet.

First, you need to access the machine that actually has the printer attached. It should be possible to point your browser at "hostwithprinter:631". At that point, you should be able to print a test page. If you can't, then you have a printer printing problem. Look in /var/log/cups (that's on Fedora/Redhat, your mileage may vary). The error_log file may help.

Second, on the machine that has the printer physically attached I made these changes to /etc/cups/cupsd.conf.

Note 192.168.0.1 is my host with the printer attached

Add:
Listen 192.168.0.1:631
BrowseAllow from 192.168.0.*
BrowseAddress 192.168.0.255

with each of the "Location" sections add:
Allow From 192.168.0.0/24

Of course you have to stop/start the CUPS daemon to make these changes active.

The changes expose the CUPS server with the printer attached to your internal network. There may be a way to do this with the GUI, but I haven't found it. This works.
Unfortuantely, my printer is directly connected to the network (not to a host system).
 
Old 04-02-2006, 02:23 PM   #9
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Ah. Perhaps I'm getting closer. The nmap for my printer IP address shows:

Code:
...
PORT     STATE SERVICE
21/tcp   open  ftp
23/tcp   open  telnet
515/tcp  open  printer
9100/tcp open  jetdirect
Now, I do:

Code:
$ lp -h <ip address of printer>:515 testpage.sxw
And nothing happens. Better then error messages, but I'm not quite there yet. It seems like lp is trying to do something, because I have to press CTRL + C to get my prompt back.
 
Old 04-02-2006, 04:08 PM   #10
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
As usual, it a painfully obvious answer. I should supplied "root" as the username.

Now it works perfectly. I now have a fully functional Linux system!
 
Old 04-05-2006, 10:56 AM   #11
Jaxn
Member
 
Registered: Apr 2005
Location: Sweden
Distribution: Debian
Posts: 142

Rep: Reputation: 15
You can also use jetdirekt from cups (select device AppSocket/HP JetDirect i Cups webb interface).

I would set up a server for the printer, and then let all other machines use that server. Easier to get controll over the printer then. It also means you only have to manage the printer from one place. No need to install drivers/printers on every computer.
It prob. work with all your machines using the printer directly, but...
 
Old 04-05-2006, 03:53 PM   #12
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Jaxn
You can also use jetdirekt from cups (select device AppSocket/HP JetDirect i Cups webb interface).

I would set up a server for the printer, and then let all other machines use that server. Easier to get controll over the printer then. It also means you only have to manage the printer from one place. No need to install drivers/printers on every computer.
It prob. work with all your machines using the printer directly, but...
Thanks for the suggestion, but every other system on the network runs Windows. Additionally, the drivers are already working properly on them, so no changes are needed.
 
Old 04-05-2006, 05:24 PM   #13
Jaxn
Member
 
Registered: Apr 2005
Location: Sweden
Distribution: Debian
Posts: 142

Rep: Reputation: 15
Quote:
Originally Posted by vmlinuz.gz
Thanks for the suggestion, but every other system on the network runs Windows. Additionally, the drivers are already working properly on them, so no changes are needed.
Ok. I understand your problems.

This is what I would do in this situation.

Run and manage all printers with Cups. This makes it much easier to manage printers (add and remove) for your system. Only one place to manage printers and you are able to distribute queues between many printers and distribute load between different printer server when/if you get problems with printer server hardware. And there IS IPP (Cups) drivers for MS Windows now.

Run SAMBA and let that manage printers and file servers for MS Windows machines. This one place to manage recources for you MS Windows machines. You will only need to manage printers in MS Windows machine on one place. Also manage users and file shares on one place. Which is a MAIN boon whith this resolution.

Run LDAP or Samba to manage users that are same at each MS Windows klients. You can log in on different machines and have all you files at your fingertips.

Yes, you can do this whith MS Windows servers, but why run heavy window environment on a file/printer/user server? And why run an os that is unsecure and unstabel compare to what you can get whith this?
 
Old 04-05-2006, 05:52 PM   #14
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Jaxn
Ok. I understand your problems.

This is what I would do in this situation.

Run and manage all printers with Cups. This makes it much easier to manage printers (add and remove) for your system. Only one place to manage printers and you are able to distribute queues between many printers and distribute load between different printer server when/if you get problems with printer server hardware. And there IS IPP (Cups) drivers for MS Windows now.

Run SAMBA and let that manage printers and file servers for MS Windows machines. This one place to manage recources for you MS Windows machines. You will only need to manage printers in MS Windows machine on one place. Also manage users and file shares on one place. Which is a MAIN boon whith this resolution.

Run LDAP or Samba to manage users that are same at each MS Windows klients. You can log in on different machines and have all you files at your fingertips.

Yes, you can do this whith MS Windows servers, but why run heavy window environment on a file/printer/user server? And why run an os that is unsecure and unstabel compare to what you can get whith this?
Please understand that there are no more problems and everything is working perfectly. I no longer require assistance on this topic, as I have said above (emphasis added):

Quote:
Originally Posted by vmlinuz.gz
As usual, it a painfully obvious answer. I should supplied "root" as the username.

Now it works perfectly. I now have a fully functional Linux system!
Your additional posts, however, are not wasted; perhaps someone doing a search will run across your post and determine that they have information they are in need of.
 
  


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
HP DeskJet 3520 / Linux / CUPS Issues? mindfrost82 Linux - Hardware 29 03-06-2005 02:11 PM
Help with cups and USB issues. alek66 Slackware 11 02-03-2005 09:08 AM
CUPS issues Malibyte Linux - Software 3 11-09-2004 12:14 PM
ALSA and CUPS issues Aman9090 Slackware 11 12-20-2003 04:44 AM
Printing issues with cups/samba MDK9.2 mortalic Linux - Networking 0 10-16-2003 06:19 PM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration