RE: samba and pdfs

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Lisa Kachold
Date:  
To: Main PLUG discussion list
Subject: RE: samba and pdfs

Hi Craig,



1) Troubleshoot: "What is it - what is it not?"



What do your logs say?

Example /var/log/samba/

[2008/10/26 14:33:08, 0] smbd/service.c:make_connection(252)
spidersvr (10.217.7.11) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}
***********************
2) Verify Cups PDF settings: "Divide and conquer.."


What changed? Did you upgrade any drivers?

---excerpt from Reference---(see below)
First, physically verify attachment of our printer to our Linux server’s parallel port. The printer we’ll use is a Canon i560. We use this printer because we want to demonstrate click-and-print driver downloading. The driver for the BJC-7000 printer is standard in Windows XP, so there is nothing to download.
However, Fedora Linux doesn’t ship with a driver specifically for the Canon i560, so how will we support it on the Linux side in the CUPS-and-Postscript case? The answer is that the Canon i560 is backward compatible with the Canon BJC-7000, so we’ll use the BJC-7000 driver on Linux. However, on the Windows side, when we’re ready to demonstrate SMB printing with a native printer driver and a raw queue, we’ll use the “real” i560 driver to create an interesting test case for automatic driver downloading.

Now we need to tell the server about the printer we’ve attached to it. We’ll also need to deal with the sharing issues just mentioned. We’ll do this in three main steps:
1.
We’ll use the Fedora printer configuration tool to add a new queue, or spool, for the printer we’ve just connected. We’ll tell Fedora that the printer is connected to the local parallel port, /dev/lp0, and we’ll configure this queue to translate Postscript print jobs to the
printer’s native language. At the same time, we’ll enable sharing of the printer via IPP and LPD. Later, we’ll demonstrate IPP with both Windows and Linux clients and LPD with a Windows client.
2.
We’ll add an additional raw spool that accepts raw printer data and forwards it directly to the printer. We’ll configure Samba to offer SMB printing via this raw spool; we’ll do this using Webmin. Later, we’ll demonstrate how to use this printer share with a Windows client.
3.
We’ll configure the Linux server to support click-and-print driver downloading. Later, we’ll demonstrate that capability with two Windows clients: one to upload the driver for the first time and another to show that driver downloading works.

Leveraging Linux Printers

Adding a Postscript Spool for Our Printer
To add and share a new spool for the Canon i560 printer that accepts Postscript print jobs, justfollow these steps. Bear in mind that we must use the older (but compatible) Canon BJC-7000 driver. That’s because no driver specifically for the Canon i560 is included with Fedora or avail-
able on www.linuxprinting.org as of this writing.
What if we needed to use a printer that wasn’t supported by Fedora? We’d check www.linuxprinting.org for an appropriate driver. www.linuxprinting.org offers PPD files for many printers. These can then be imported into the CUPS printing system using the “Import PPD” option on the “Actions” menu of the Fedora printer configuration tool.
1.
Pull down the “Applications” menu and drill down to System Settings Printing. Wait for the printer configuration tool to appear.
2.
Click the “New” button to add a new print queue.
3.
Click “Forward” on the explanatory page that follows.
4.
On the “Queue name” page, enter LinPrinter1
in the “Name” field. In the “Short
description” field, enter Linux Printer One
or another descriptive name that you like.
Click “Forward.”
5.
On the “Queue type” page, pull down the “Select a queue type” menu and pick “Locally-connected”
6.
In the list box beneath that menu, select “/dev/lp0.” Then click “Forward.”
7.
On the “Printer model” page, pull down the “Manufacturer” menu and pick “Canon.”
Then scroll through the list of models and pick “BJC 7000.” Click “Forward.”
8.
The “Finish, and Create the New Print Queue” page appears. Click “Finished.”
9.
When asked whether you wish to print a test page, click the “Yes” button. A test page will emerge after a short delay.


First, we’ll physically attach our printer to our Linux server’s parallel port. However, unlike
in our Windows examples, the printer we’ll use is a Canon i560. We use this printer because we
want to demonstrate click-and-print driver downloading. Since the driver for the BJC-7000
printer we used earlier is standard in Windows XP, there is nothing to download, so the i560
is a much better demonstration of that feature.
However, Fedora Linux doesn’t ship with a driver specifically for the Canon i560, so how
will we support it on the Linux side in the CUPS-and-Postscript case? The answer is that the
Canon i560 is backward compatible with the Canon BJC-7000, so we’ll use the BJC-7000
driver on Linux. However, on the Windows side, when we’re ready to demonstrate SMB print-
ing with a native printer driver and a raw queue, we’ll use the “real” i560 driver to create an
interesting test case for automatic driver downloading.
Now we need to tell the server about the printer we’ve attached to it. We’ll also need to deal
with the sharing issues just mentioned. We’ll do this in three main steps:


1.


We’ll use the Fedora printer configuration tool to add a new queue, or spool, for the printer
we’ve just connected. We’ll tell Fedora that the printer is connected to the local parallel
port, /dev/lp0, and we’ll configure this queue to translate Postscript print jobs to the
printer’s native language. At the same time, we’ll enable sharing of the printer via IPP and
LPD. Later, we’ll demonstrate IPP with both Windows and Linux clients and LPD with a
Windows client.


2.


We’ll add an additional raw spool that accepts raw printer data and forwards it directly
to the printer. We’ll configure Samba to offer SMB printing via this raw spool; we’ll do
this using Webmin. Later, we’ll demonstrate how to use this printer share with a Win-
dows client.


3.


We’ll configure the Linux server to support click-and-print driver downloading. Later,
we’ll demonstrate that capability with two Windows clients: one to upload the driver for
the first time and another to show that driver downloading works.


4428.book Page 286 Tuesday, August 2, 2005 8:54 PM


Page 23

Leveraging Linux Printers


287


Adding a Postscript Spool for Our Printer


To add and share a new spool for the Canon i560 printer that accepts Postscript print jobs, just
follow these steps. Bear in mind that we must use the older (but compatible) Canon BJC-7000
driver. That’s because no driver specifically for the Canon i560 is included with Fedora or avail-
able on www.linuxprinting.org as of this writing.


What if we needed to use a printer that wasn’t supported by Fedora? We’d check
www.linuxprinting.org for an appropriate driver. www.linuxprinting.org
offers PPD files for many printers. These can then be imported into the CUPS
printing system using the “Import PPD” option on the “Actions” menu of the
Fedora printer configuration tool.


1.


Pull down the “Applications” menu and drill down to System Settings Printing. Wait for
the printer configuration tool to appear.


2.


Click the “New” button to add a new print queue.


3.


Click “Forward” on the explanatory page that follows.


4.


On the “Queue name” page, enter LinPrinter1
in the “Name” field. In the “Short
description” field, enter Linux Printer One
or another descriptive name that you like.
Click “Forward.”


5.


On the “Queue type” page, pull down the “Select a queue type” menu and pick “Locally-
connected” as shown in Figure 5.12.


6.


In the list box beneath that menu, select “/dev/lp0.” Then click “Forward.”


7.


On the “Printer model” page, pull down the “Manufacturer” menu and pick “Canon.”
Then scroll through the list of models and pick “BJC 7000.” Click “Forward.”


8.


The “Finish, and Create the New Print Queue” page appears. Click “Finished.”


9.


When asked whether you wish to print a test page, click the “Yes” button. A test page will
emerge after a short delay.


10.


Leave the printer configuration tool on the screen in order to continue with the next section.


Adding a Raw Spool for Our Printer


The spool we just created is useful for Linux clients, as well as for Windows clients using Post-
script printer drivers. However, sometimes we want to use special features of a native Windows
printer driver. Here are the steps to create a raw spool that accepts print jobs from Windows cli-
ents using the native Canon i560 printer driver:


1.


Pull down the “Applications” menu and drill down to System Settings Printing. Wait for
the printer configuration tool to appear.


2.


Click the “New” button to add a new print queue.


3.


Click “Forward” on the explanatory page that follows.


4428.book Page 287 Tuesday, August 2, 2005 8:54 PM


Page 24

288


Chapter 5
Printer Sharing between Wind----see reference for the full instructions---


First, we’ll physically attach our printer to our Linux server’s parallel port. However, unlike
in our Windows examples, the printer we’ll use is a Canon i560. We use this printer because we
want to demonstrate click-and-print driver downloading. Since the driver for the BJC-7000
printer we used earlier is standard in Windows XP, there is nothing to download, so the i560
is a much better demonstration of that feature.
However, Fedora Linux doesn’t ship with a driver specifically for the Canon i560, so how
will we support it on the Linux side in the CUPS-and-Postscript case? The answer is that the
Canon i560 is backward compatible with the Canon BJC-7000, so we’ll use the BJC-7000
driver on Linux. However, on the Windows side, when we’re ready to demonstrate SMB print-
ing with a native printer driver and a raw queue, we’ll use the “real” i560 driver to create an
interesting test case for automatic driver downloading.
Now we need to tell the server about the printer we’ve attached to it. We’ll also need to deal
with the sharing issues just mentioned. We’ll do this in three main steps:


1.


We’ll use the Fedora printer configuration tool to add a new queue, or spool, for the printer
we’ve just connected. We’ll tell Fedora that the printer is connected to the local parallel
port, /dev/lp0, and we’ll configure this queue to translate Postscript print jobs to the
printer’s native language. At the same time, we’ll enable sharing of the printer via IPP and
LPD. Later, we’ll demonstrate IPP with both Windows and Linux clients and LPD with a
Windows client.


2.


We’ll add an additional raw spool that accepts raw printer data and forwards it directly
to the printer. We’ll configure Samba to offer SMB printing via this raw spool; we’ll do
this using Webmin. Later, we’ll demonstrate how to use this printer share with a Win-
dows client.


3.


We’ll configure the Linux server to support click-and-print driver downloading. Later,
we’ll demonstrate that capability with two Windows clients: one to upload the driver for
the first time and another to show that driver downloading works.


4428.book Page 286 Tuesday, August 2, 2005 8:54 PM


Page 23

Leveraging Linux Printers


287


Adding a Postscript Spool for Our Printer


To add and share a new spool for the Canon i560 printer that accepts Postscript print jobs, just
follow these steps. Bear in mind that we must use the older (but compatible) Canon BJC-7000
driver. That’s because no driver specifically for the Canon i560 is included with Fedora or avail-
able on www.linuxprinting.org as of this writing.


What if we needed to use a printer that wasn’t supported by Fedora? We’d check
www.linuxprinting.org for an appropriate driver. www.linuxprinting.org
offers PPD files for many printers. These can then be imported into the CUPS
printing system using the “Import PPD” option on the “Actions” menu of the
Fedora printer configuration tool.


1.


Pull down the “Applications” menu and drill down to System Settings Printing. Wait for
the printer configuration tool to appear.


2.


Click the “New” button to add a new print queue.


3.


Click “Forward” on the explanatory page that follows.


4.


On the “Queue name” page, enter LinPrinter1
in the “Name” field. In the “Short
description” field, enter Linux Printer One
or another descriptive name that you like.
Click “Forward.”


5.


On the “Queue type” page, pull down the “Select a queue type” menu and pick “Locally-
connected” as shown in Figure 5.12.


6.


In the list box beneath that menu, select “/dev/lp0.” Then click “Forward.”


7.


On the “Printer model” page, pull down the “Manufacturer” menu and pick “Canon.”
Then scroll through the list of models and pick “BJC 7000.” Click “Forward.”


8.


The “Finish, and Create the New Print Queue” page appears. Click “Finished.”


9.


When asked whether you wish to print a test page, click the “Yes” button. A test page will
emerge after a short delay.


10.


Leave the printer configuration tool on the screen in order to continue with the next section.


Adding a Raw Spool for Our Printer


The spool we just created is useful for Linux clients, as well as for Windows clients using Post-
script printer drivers. However, sometimes we want to use special features of a native Windows
printer driver. Here are the steps to create a raw spool that accepts print jobs from Windows cli-
ents using the native Canon i560 printer driver:


1.


Pull down the “Applications” menu and drill down to System Settings Printing. Wait for
the printer configuration tool to appear.


2.


Click the “New” button to add a new print queue.


3.


Click “Forward” on the explanatory page that follows.


4428.book Page 287 Tuesday, August 2, 2005 8:54 PM













Reference: http://port25.technet.com/videos/winlinchapter.pdf



3) Challenge your Assumptions: "PDF - some printer drivers don't support PDF..."

Have you EVER been able to print to a PDF?

http://www.linux.com/feature/61826

http://www.linuxprinting.org/ - check features of drivers here.

4) Other information: "Did you know..."


cups-pdf will allow you to print to a PDF.


Did you know you can also use Ghostscript to create a psuedo printer
device to print directly to a PDF from a Windows based system using
Samba?



Reference:
http://64.233.169.104/search?q=cache:_mv73Q9Q0EUJ:www.reverendlinux.com/linux/mpdf.pdf+XP+workstation+to+my+samba+shared+pdf+format&hl=en&ct=clnk&cd=8&gl=us&client=firefox-a


http://wapedia.mobi/en/Obnosis | http://en.wiktionary.org/wiki/Citations:obnosis | Obnosis.com (503)754-4452

> Subject: Re: samba and pdfs
> From:
> To:
> Date: Tue, 28 Oct 2008 12:26:04 -0700
>
> On Tue, 2008-10-28 at 12:20 -0700, Sean Roe wrote:
> > Hi All,
> >
> > I am trying to print a pdf from an XP workstation to my samba shared
> > printer attached to a fedora core 9 server. I can print other kinds
> > of docs from each workstation (email, spreadsheets, pictures and the
> > like) but for some reason I cant print PDFs. The printer is a canon
> > i560 on the lpt port, I have tried different PDFs and even different
> > clients (Adobe and Foxit Reader) and the same behavior happens: the
> > priniting dialog comes up I accept it, it starts the printing progress
> > bar, sits in that state for approx minute and then returns like it
> > worked. If sombody could point me to a resource, I have spent an
> > hour looking on the web to no avail, I would be most thankful.
> ----
> generally, I use windows native print drivers and set up cups to give me
> a 'raw' printer that just allows the windows native print driver to work
> without putting print code through the ghostscript interpreter.
>
> You don't say how you are actually printing so it's hard to give you
> anything specific here.
>
> In general, a PDF should print just like any other document.
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


_________________________________________________________________
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss