Author Topic: CUPS......sorry....(SOLVED)  (Read 859 times)

Offline malc

  • Sr. Member
  • ****
  • Posts: 386
    • Malcolms Home Website
CUPS......sorry....(SOLVED)
« on: August 01, 2012, 04:51:59 PM »
I have searched for this problem but found nothing.

I have an old laptop (with PCLOS installed) in the cupboard with an MP540 attached that serves the printer around the the house.  This works OK. Windows laptops can print, linux laptops can print even Ipads !!!!.  However, from my PCLOS laptop whenever I print it always does so using default settings which are plain paper, paper source cassette , portrait mode.  I would like to be able to select photo paper from the rear tray but this is just ignored. It does not matter what app I am using on my laptop, it seems to allow me to select different printer options but it always comes out using the defaults as defined on the server laptop.

I know this is something in the bleedin obvious category but I can't spot it.

Server laptop : 192.168.1.7
CUPS printer queue (from server) : localhost:631/printers/Canon_MP540_Series
Cups printer connection : cnijusb:/dev/usb/lp0
PCLOS Control Centre device URI : usb://Canon/MP540%20series


my laptop 192.168.1.24
CUPS printer queue (from my laptop) : 192.168.1.7:631/printers/Canon_MP540_Series
PCLOS Control Centre device URI : ipp://192.168.1.7:631/printers/Canon_MP540_series

thanks,

Malcolm
« Last Edit: August 10, 2012, 03:16:02 PM by malc »

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: CUPS......sorry....
« Reply #1 on: August 02, 2012, 07:03:20 AM »
malc
Do I understand correctly that your pc my laptop does print out jobs on the printer sitting on Server laptop (however you are not able to select the format you desire)

Open a konsole on my laptop and post the result from lpstat - t as example

Code: [Select]
[gert@KDE-mini-Cprog ~]$ lpstat -t
scheduler is running
system default destination: HP_psc_1200_series
device for A-test-lj5p-generic-postscript: socket://192.168.1.4:9100
...
...
...
[gert@KDE-mini-Cprog ~]$

 :)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1535
    • PCLinuxOS.nl
Re: CUPS......sorry....
« Reply #2 on: August 02, 2012, 08:51:44 AM »
I know it's outside the repo (not recommended) but maybe the original Canon drivers are of some help. http://files.canon-europe.com/files/soft31329/software/MP540_RPM_drivers.tar
« Last Edit: August 03, 2012, 12:52:28 AM by DeBaas »

Offline malc

  • Sr. Member
  • ****
  • Posts: 386
    • Malcolms Home Website
Re: CUPS......sorry....
« Reply #3 on: August 02, 2012, 02:06:46 PM »
malc
Do I understand correctly that your pc my laptop does print out jobs on the printer sitting on Server laptop (however you are not able to select the format you desire)

Open a konsole on my laptop and post the result from lpstat - t as example

Yes you are correct I can print from my laptop to the server hosted printer but settings are always the default ones as set on the server.

I even setup a local printer and queue on my laptop with the exact same drivers and still have the same problem.

[malcolm@localhost ~]$ lpstat -t
scheduler is running
system default destination: Canon_MP540_series
device for Canon_MP540_series: ipp://192.168.1.7:631/printers/Canon_MP540_series
device for MP540: ipp://192.168.1.7:631/printers/Canon_MP540_series
Canon_MP540_series accepting requests since Thu 02 Aug 2012 08:17:32 PM BST
MP540 accepting requests since Thu 02 Aug 2012 08:50:06 PM BST
printer Canon_MP540_series is idle.  enabled since Thu 02 Aug 2012 08:17:32 PM BST
printer MP540 is idle.  enabled since Thu 02 Aug 2012 08:50:06 PM BST
        Ready to print.

Offline malc

  • Sr. Member
  • ****
  • Posts: 386
    • Malcolms Home Website
Re: CUPS......sorry....
« Reply #4 on: August 02, 2012, 02:08:10 PM »
I know itÅ› outside the repo (not recommended) but maybe the original Canon drivers are of some help. http://files.canon-europe.com/files/soft31329/software/MP540_RPM_drivers.tar

That's the ones I'm using.

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1535
    • PCLinuxOS.nl
Re: CUPS......sorry....
« Reply #5 on: August 03, 2012, 01:01:45 AM »
Tried "AppSocket/HP JetDirect" as printerport ?

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: CUPS......sorry....
« Reply #6 on: August 03, 2012, 05:48:29 AM »
malc
I am on an unfamiliar KDE-mini setup presently so I am missing all my little helpers.  The lpstat -t result looks fine.

Good move setting up the second queue, I may come back and comment on this later.

First I would also like you to set up a queue using the HP-JetDirect as DeBaas suggests and see what happens.   :)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline malc

  • Sr. Member
  • ****
  • Posts: 386
    • Malcolms Home Website
Re: CUPS......sorry....
« Reply #7 on: August 07, 2012, 04:27:15 PM »
I cleared everything to have a clean start. So I have, recognised by all windows laptops:

Server Laptop:
  Canon MP540 connected to USB socket
  Windows access : //server/Canon_MP540_series

If I start CUPS on the server and add printer it automatically finds a local printer :
  Canon MP540 attached to a USB port

Do I select this ? or do I select "Other Network Printers" AppSocket/HP Jetdirect  (ie socket//localhost:9200) ? How does CUPS know the physical location of the USB printer if I do?

On my client laptop what do I select ?

I wish I could find some documentation that fits on a single A4 page that clearly explains all the communication that occurs. Even an example of what must be an exceedingly common setup USB printer shared across a network!

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: CUPS......sorry....
« Reply #8 on: August 08, 2012, 06:31:09 PM »
malc

I am listing to links, not just for you but for anybody, part of the CUPS webhelp.  All that is needed is to click on the link.

http://localhost:631/

Above is great to have as a bookmark or in my case using opera, in the speed dial list.

In your case make sure you look through the sub section here,

http://localhost:631/help/sharing.html?TOPIC=Getting+Started&QUERY=

I think you should try the following:

1.. Server:  install the local printer and make sure you share it

2.. Client:  you should be able to install the "remote" printer here as well.  i.e set up a que with the printer parameters you want.

3..  Can you run lpstat -t from both your server and client and post them too

I have not had time to think this through in details yet, but I will hang in here and we can blunder through together.   ;D

Note:
Aaaahhmmm, I have set up a similar system to yours in that I remembered that my wife's pc also has a couple of KDE-mini installs and I am having trouble verifying above.

Hang tight till I get that sorted out.

What I have found out
I can now be more specific in your case, as long as we talk PCLinuxOS install on both server and client.

A.. The server finds your local printer attached to USB port,  you install this as shared (tick box) add printer default values as you like.
In your case I suggest you install a couple of printer queues using the same printer but different printer configurations  parameters.

Use the CUPS web interface to do all this (ie click on the first link I have given, follow the directions for installing a printer)

B..  Go to the client machine and use the CUPS interface again by clicking on the link previously, ie open this topic on client machine and just click following link,

http://localhost:631/printers/

You should now see that CUPS is showing your client what the client has been given access to use for printing on the server.

So whatever printer queues are installed on the server and ticked as shared will be seen on all your clients, the clients however do not have permission to change configuration values


You can however install a printer queue on the client machine which uses the remote server's printer. Install as AppSocket/HP Jetdirect , should look something like following (ie almost as in your first post)

socket://192.168.1.7:9100/Canon_MP540_series

I did not have time to check the last line on my systems.  Post back  lpstat -t from both server and client

This is what my server shows, I have installed a KDE liveCD and only one printer

Quote
[root@localhost ~]# lpstat -t
scheduler is running
no system default destination
device for hp1200: socket://localhost:9100
hp1200 accepting requests since Thu 09 Aug 2012 01:02:00 PM CDT
printer hp1200 is idle.  enabled since Thu 09 Aug 2012 01:02:00 PM CDT
[root@localhost ~]#



« Last Edit: August 09, 2012, 07:58:37 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline malc

  • Sr. Member
  • ****
  • Posts: 386
    • Malcolms Home Website
Re: CUPS......sorry....
« Reply #9 on: August 10, 2012, 03:14:25 PM »
Been doing a bit digging myself.  Took a step back and thought hang on......the CUPS Q on my server laptop has to send data to a known hardware location. It can't send it to appsocket(9100) because I don't have a service running/listening to that port (well not that I can identify anyway!)

Thought 2. windows machines work via SMB......hmmmm. So I set up a CUPS Q on my local (client) laptop that connected to the samba printer queue smb:\\192.168.1.7\Canon_MP540_series. Bingo full control !!!! NB using downloaded MP540 drivers from canon the gutenprint drivers are crap for text documents.

Next problem landscape would not print, solution - select postscript instead of PDF when printing.

This solution is far more elegant and means that my Linux laptop "sees" what the windows laptops see which makes it far easier to support a computer illiterate partner who has no patience and presses keys in a wild manner !!!!!!!!!!!

Sorry for not responding quicker but I have been watching the Olympics and being from Yorkshire (northern English county) I find it highly amusing that "Yorkshire" would be 7th in the medal table.

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: CUPS......sorry....(SOLVED)
« Reply #10 on: August 10, 2012, 06:30:38 PM »
malc

Good thinking and congratulations.

Just if you are curious, what happens if you do use a Q as: socket://192.168.1.7:9100\Canon_MP540_series    ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen