Printer stopped working after sharing with Win 7 laptops
MageiaThis forum is for the discussion of Mageia 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.
Printer stopped working after sharing with Win 7 laptops
Hi all, I hope that someone can help me with this problem. I searched the forums and saw some similar problems, but not quite the same.
I posted this on the Mageia forum on 12/08 but haven't had any replies, so I'm trying here.
Pretty much a newbie, been using Linux since early 90's (dabbled) but almost exclusively since 2009, but I just use it, don't really know what goes on under the hood.
Project: To get my daughters Win 7 Laptops (1 x 32bit, 1 x 64bit) to be able to print to the Canon i865 attached to my Mageia # 3 Desktop (connected to my desktop via USB).
I did a whole lot of reading about how to get my trusty old Canon i865 installed on my daughters Win 7 Laptops and how to get printers shared between Linux and Windows 7 on a network (most referring to Ubuntu, Mint or other distros). I wanted to set the laptops up to be able to print to the Canon i865 over the network. I found lots of threads advocating using SAMBA, CUPS, IPP - all confusing. I did actually install SAMBA but didn't do anything with it. So in the end I asked on a Microsoft forum and got a sort-of answer.
So, first of all, in MCC, I enabled the printer as "Shared".
Then from my daughter's laptops I was finally able to detect the Canon printer attached to my Desktop under Windows 7 "Add Printer" dialogue searching for a network printer and Windows searched for and installed the driver. I was then able to print a test page successfully. This was the same for both laptops. Actually there were some anomalies on Windows in behaviour, but the end result was the same - a successful test print to the Canon printer on my Mageia Desktop.
So, to the problem: Last night (11/08) I went to print a document on my Mageia Desktop and it would not print at all! In the queue the document was in a status of "processing". This was the first time I had tried to print from my Desktop to the - now shared - printer, since setting it up to - what I mistakenly thought - was a successful network sharing arrangement. After much mucking around, I deleted the Canon i865 networked printer on my daughter's laptops and un-shared the printer in Mageia. Still the document wouldn't print. I re-booted, finally back to normal, no shared printer and the document would print.
I just tested this again by installing the printer again on one of my daughter's Win 7 laptops, did a successful test print. Then from my Desktop I tried to print - no go, same result as before - status of "processing". Sent another test print from Win 7 laptop - in the queue as "pending" behind my Mageia print. Had to delete printer on Win 7 again, un-share printer on Mageia and re-boot to be able to print from my Desktop again.
What is going on? What am I not enabling/installing, doing incorrectly? I was so happy on Friday that I finally had it working and that I hadn't had to resort to asking you good people for help. But now all that has changed and I do have to ask you much more learned people for any assistance you might give be able to me. :?
Update: Okay, now I cannot print at all - directly - again (well almost)! I have deleted the printer, re-booted and turned on the printer so it gets configured and it comes up "shared". So I deleted ALL references for the Canon printer on the Win 7 laptops. Still couldn't print! Okay, so I then went to "Add Printers" dialogue on the Win 7 laptop > search for network printer > not found > enter address > typed \\ and it found my Mageia desktop and something called pdf-gen (\\my-desktop-name\pdf-gen)!!!! I had been trying to print a PDF document. Doesn't seem to matter how many times I have deleted the printer on Mageia, re-booted and re-installed the printer I cannot get it to print directly. Another weird thing is that when press the power button on the printer - with documents in the queue - instead of turning off, it just blinks and will not turn off. I have to pull the power cord out to stop this. If I re-boot, then turn on with documents in the queue it will print a doc that happens to be stored it's memory (?) from prior to the pulling of the power cord! Also the entries in the printer queue remain in the queue even after printing after the pulling-power-cord-out process!
I'm having my own problems printing from Mageia to a networked printer; there's thread in this forum. (Unfortunately, in my case, Mageia seems to think that everything is hunky-dory.)
Have you looked in /var/log/cups/access_log, /var/log/cups/page_log, and /var/log/cups/error_log? They might tell you something.
I have changed my mind on buying a print server router. Strictly speaking...below is more like sharing a wireless printer from windows to linux but they independent setups
For a little bit more, you will be better off in the long run buying a wireless printer
aussies can use gumtree....plus ebay
2) I bought one hp3050, but I did not have any windows computers to set it up as a true wireless printer....and I suspect
the prev owner assumed I was a windows user.
leaping ahead, hp offers w7 and linux support for most hp printers.
google the make and model and ensure seller has the w7 driver disc or you can download it.
b) the linux driver is supplied by an independent package called hplip
c) you install the windows drivers to each laptop
then on laptop A----whatever you want to call it
connect the usb lead...use the canon's if it has none
go into the hp settings and configure it to have a static ip address
* make sure you enable port 9100 and bonjour
* give it an unique SSID not "myprinter" but something your family can recognise like
roosterbait .....collywobbles....(use your imagination)
these are used to help wireless network tools detect the hp wireless details.
use the other button when wireless radio is setup...to print out a report and keep it safe
TIP write down that ip and password and tape it to the hp printer
d) disconnect usb lead to A....turn on the wireless radio on hp
and follow the docs on how to connect wirelessly to if from the docs installed into A
e) repeat for laptop B
f) use root powers to edit your cups config to allow admin access to the ip range etc
Thanks for the replies, but not really helpful to me. I am not going to buy a new router with a print server built in, nor am I going to replace a perfectly good printer with a wireless printer. This can't be that hard - it must be able to work somehow! And, yes I understand that I would have to have my desktop powered on all the time for my daughters to be able to print, that's not an issue.
I looked at the CUPS logs and I have no idea what I a looking at/for as far as problems go!
If you didn't find anything in the CUPS error log, the logs might not be much help.
Try booting to a live CD of something other than Mageia (I'd recommend Mint) and testing whether you can print from that.
You may have to install HPLIP first.
If you can, it would narrow the problem to something specifically to do with your Mageia load. I'm confident that the issue I'm having is a Mageia issue, not an HP or networking issue, because I've been able to print to the same printer from Slackware, Fedora, Ubuntu, Mint, and Debian.
Frank and others,
I don't know how the discussion got onto HP printers, I am using a Canon i865, nothing to do with HP.
The reason I cannot print now directly has to have something to do with when I initially shared the printer out using CUPS. As I said, now I can print to it, but not directly anymore. So something has become screwed up inside CUPS somehow. I am going to have to read up on CUPS to see what I can find out. I don't want to have to re-install Mageia just to get the printer working again, there must be a way around this problem.
I'm sorry. I think I was the confused person who mentioned HPLIP.
I agree that you should be able to fix this without reinstalling. Unfortunately, it's been a long time since I shared a printer that was attached to a computer, so I'm having visualizing how sharing the printer would produce this issue, but your troubleshooting seems to have established that something in the sharing process has caused this.
Is there anything in the log files that changed with print jobs from before the printer was shared to after it was shared, even the smallest thing? I know it's a long shot . . . .
Milo4t,
This won't really help, maybe inspirational, but I print FROM a Win7 box TO a Lin(Mandriva-very much like Mageia) box, and I found that I needed both cups and the "Set up printers and que's etc" feature in the control center, hardware section -set up and running for it to work. It prints from the Linux install also.
When it hickups I go into both places (cups and the control center) and make sure "enabled" and "default" have not ben tripped to off.
I suspect however (not sure though) that I am tackeling the problem differently than you and could not give good info about your particular setup.
monsteriname, thanks for that info - that is really helpful as Mageia is a fork of what was Mandriva. I used Mandrake/Mandriva right up to Mandriva 2011, then they mucked it up so I went to Mageia, now Mandriva as a Linux Desktop is no more!
So what do you do in CUPS?? Is that the http://localhost:631/admin page??? In there I found that the printer was still shared, so I un-ticked those boxes but I am still having problems printing to my printer.
Its been about 2 years ago that I got it working and have not had any real problems to mess with it since (on that server end of it), I don't remember the steps to make it work. My normal method is to do something I call "beat the crap out of it" until I get it to do what I want. My process is hours and hours of trying different things, hours and hours of googeling and reading, repeat as necassary, usually several cycles. I'm not that bright andI have a terrible memory.
The setup I have currently up and running is headless, we use it as a print server.
When I saw your post, to make sure I remembered correctly that it would print itself, in addition to printing for our 2 other computers;
I logged on to it via ssh and printed a text file from the command line using lp. So it does print from itself.
What makes me think we may be "sharing" this printer differently than the way you are is that I never got any kind of auto discovery type stuff to work from the Windows box (for Windows to find the printer), and have to manually enter the network address to the printer. It is at http://x.x.x.x:631/printers/hp-6000-blah-blah when accessed from windows, and at localhost:/631/printers/hp-6000-blah-bla when accessed from the linux box itself
If you or someone here can think of settings for me to check and report back to you I will be glad to. I will also muck around with it when I get the chance.
For mine, if cups isn't running it won't print from the network.
Cups WAS running when I printed a test page on itself.
"share printers" and "print from the internet" are both ticked on mine, although I'd bet a dollar to a doughnut (but no more) that "print from the internet" neither needs to be, nor should be.
output from lpstat shows how the computer says they are connected (we have 2 printers on that computer - they both work);
lpstat -v
device for HP2350-mfd: hp:/usb/PSC_2350_series?serial=MY5CHF43SDKJ
device for HP_6000_net: usb://HP/Officejet%206000%20E609a?serial=CN08P1F27P057W
here is the cups config file ;
Code:
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin root
Group sys
User lp
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
# Allow remote access...
Order allow,deny
Allow all
</Location>
<Location /admin>
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
</Location>
<Policy default>
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
monsteriname,
thanks for your replies, most appreciated. I have already done a lot of Googling and reading threads etc., but will probably need to do some more as you point out. I'll have a look at my CUPS config and see what I can find, and compare to yours.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.