Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been tinkering around with CUPS for the last few days trying to get print sharing to work. Did not have problems printing documents from this desktop. When I went to print a document I found that my printer was not listed. Using localhost:631/admin shows lists the printer, but when I open System->Administration->Printing, the window opens (after a few seconds), grays out, and a blank display. The option to add a printer is grayed out.
In terminal window:
lpstat -v
lpstat: Connection timed out
lpinfo -v
lpinfo: Connection timed out
Have you got the parallel port modules loaded? To find out, open a konsole, run the command 'lsmod | grep ppdev' and see if ppdev, parport_pc and parport are listed. If not, try loading them.
Only other thing I can think of is some how cups has got hosed up. Possibly restart cups?
This was my outuput for lsmod | grep ppdev: ppdev 5259 0
parport 32635 3 ppdev,parport_pc,lp
I failed to mention that after the problem began, I removed cups and then installed cups again. Just to be thorough I did execute /etc/init.d/cups stop and /etc/init.d/cups start, but no improvement. When I try to print from my web browser, the entire window grays out and becomes unresponsive until the print window appears.
At localhost:631/admin I was able to install my printer, but it still will not print. The web browser grays out as described earlier, and lpstat and lpinfo still times out.
This sounds like some kind of a permission issue. What do you see if you go to System-->Admin-->Printing? There should be icon(s) there, one for each printer. Right click on the printer, Properties, and look at Policies, and Access Controls. Make sure your user has access.
System->Administration-> Printing takes about 20 seconds to open. Once it finally opens there are no printers displayed. When I select Server->New both Printer and Class are grayed out. If I select Server->Connect then the Connect to CUPS server appears. The only available CUPS Server is PrinterHost. If I select Connect then a CUPS server error tells me that "There was an error during the CUPS operation: 'failed to connect to server'."
Have you at any time made changes to /etc/cupsd.conf file?
This is the file to configure cups. As far as I know, lpstat talks to cups to display status information. I'm wondering if there is a problem in the config file.
Could you also make sure cupsd is running? the command 'ps aux | grep cupsd' should tell you if cupsd is running.
The places you have cupsd listening are different to mine. Since this is part of the problem, lpstat not talking to the daemon, try changing the listening entries to match mine. Restart cups, and see what happens.
Here is the way mine is set up.
Quote:
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.090 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.044 ms
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.