LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 08-15-2013, 10:06 PM   #1
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Rep: Reputation: 11
Unhappy 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 am totally lost, have no idea what is going on.

Is anyone able to help? This is driving me nuts!

Myles,
Canberra, Australia
 
Old 08-16-2013, 07:26 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
was discussing a print server but have decided to seduce OP into buying a wireless printer instead

Last edited by aus9; 08-17-2013 at 01:25 AM.
 
Old 08-16-2013, 07:36 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,360
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
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.
 
Old 08-17-2013, 01:09 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

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

with hp my cups config uses

socket://192.168.1.200:9100 and

Quote:
cupsd.conf entry
Listen localhost:631
Listen Listen /var/run/cups/cups.sock
Listen 192.168.1.200:9100

Of course you can also look at other brands....brother is cheap to buy but uses a closed src driver that you have to download etc


http://www.hp.com/global/us/en/wirel...ork-help4.html

frankbell also mentions logs....to get any useful info...you will need root powers to convert to debug mode.

I forgot to ask if your linux computer has a wireless device....if not buy a usb dongle
I can link to ebay if you are interested.

99) the static ip of the hp MUST not be in the range of your router's dhcp range.

eg I log in to wireless router as 192.168.1.1 and I have a reduced dhcp range of
192.168.1.100 to 192.168.1.150

so my actual static is 192.168.1.200
I could have chosen 10.1.1.1 or some thing else

let me know if you are interested in buying a wireless printer and if so describe your linux hardware.

good luck

Last edited by aus9; 08-17-2013 at 01:13 AM. Reason: correct ip
 
Old 08-18-2013, 03:38 AM   #5
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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!

So I am no further advanced from where I was.
 
Old 08-18-2013, 08:11 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,360
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
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.

Last edited by frankbell; 08-18-2013 at 08:12 PM.
 
Old 08-18-2013, 09:38 PM   #7
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 08-23-2013, 08:23 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,360
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
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 . . . .
 
Old 08-28-2013, 05:01 AM   #9
monsteriname
Member
 
Registered: Sep 2009
Distribution: maggie 4 and 5
Posts: 35

Rep: Reputation: 0
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.
 
Old 08-30-2013, 03:45 AM   #10
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 09-07-2013, 01:37 AM   #11
monsteriname
Member
 
Registered: Sep 2009
Distribution: maggie 4 and 5
Posts: 35

Rep: Reputation: 0
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.

Good luck, sorry I'm no real help
 
Old 09-08-2013, 02:03 AM   #12
monsteriname
Member
 
Registered: Sep 2009
Distribution: maggie 4 and 5
Posts: 35

Rep: Reputation: 0
"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>
 
Old 09-11-2013, 02:47 AM   #13
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printer stopped working Zero4 SUSE / openSUSE 3 10-10-2012 07:46 PM
Samba Print Sharing Stopped Working DJOtaku Linux - General 3 09-29-2008 09:52 PM
Printer sharing with Win 95 cougyr Linux - Networking 9 11-08-2006 09:39 AM
sharing printer with win 98 egyptian Linux - Networking 1 09-23-2004 12:22 PM
Printer sharing betw Mandrake & Win ME Ishkabibble Linux - Networking 3 09-05-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

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