[Techtalk] CUPS/Slack/Samba/A printer and not quite
understanding the manual
Nils Philippsen
nils at wombat.dialup.fht-esslingen.de
Fri Apr 19 19:30:26 EST 2002
On Fri, 2002-04-19 at 05:33, Davis, Jennifer wrote:
> Hi all:
>
> I have again embarked on a task that is above my head, though I
> thought it wasn't going to be originally, and of course I am asking for
> help.
>
> Basically, I got this USB printer Epson C40UX and I installed it on
> my roommates win98 PC as her PC is the most accesible one in the house. It
> is running on Windows 98. I have set up sharing on that printer and it
> seems to work as I am able to print to that printer with the laptop when it
> boots into Windows.
>
> The problem occurs when I try to print from linux, especially since
> I use Linux on my desktop, my non-office time on my laptop and the server
> runs linux (obviously). I thought setting up CUPS would do the trick. it
> installed okay, but I am just not cluing into the part of the manual that
> discusses "Printing With other Systems"
>
> http://www.cups.org/sam.html#PRINTING_OTHER
>
> If anyone could explain this in intermediate user English, I would be so
> grateful.
The section that's relevant for you is "Printing to Windows Servers". It
describes two methods with which you can print on a printer connected to
a Windows machine:
1. Let the Windows machine act as if it were a Unix print server,
accepting the lpd protocol.
> Device URI: lpd://192.168.0.200/ipp
Basically, that's what you tried, but the Windows machine wasn't setup
properly for that. Either the service wasn't installed at all or it
wasn't activated. For this method to work, you would have to
install/activate the "TCP/IP Printing Services" on the Windows machine.
I don't know whether this service is avaliable for all Windows versions,
though.
2. Let the Linux box act as if it were a Windows client. You need to
configure the Windows box so that it allows other computers to use its
printers. On the Linux box you have to have the samba package installed
which contains the "smbspool" program. Then you need to setup cups so
that it knows were your smbspool program is (verbatim from the page):
--- 8< ---
To configure CUPS for SAMBA, run the following command:
ln -s `which smbspool` /usr/lib/cups/backend/smb ENTER
--- >8 ---
where "ENTER" of course means pressing the Enter key and `...` is a
command within backticks (accent grave).
Now restart your cups system (the command might differ for you because
you haven't disclosed what distribution you use, this command is for
Red Hat Linux):
service cups restart
You should be able to administrate CUPS from the machine where it is
running on by directing a web browser to the http://localhost:631/ URL.
>From the start page, click on "Manage Printers", then "Add Printer".
where it should ask you for an account and a password. Use "root" and
your root password (at least that's how it works here, as I said this
might vary with your distro).
Set the printer name (short name you use on the command line), its
location and description, click on "Continue". Now it should ask you for
the device where you printer is on. Choose "Windows Printer via Samba"
from the Dropdown Box, "Continue".
Now it asks you for the so-called device URI (Uniform Resource
Identifier). Valid URIs for printing via SMB are (again verbatim from
the page):
--- 8< ---
smb://workgroup/server/sharename
smb://server/sharename
smb://user:pass@workgroup/server/sharename
smb://user:pass@server/sharename
--- >8 ---
The first and the third one are for setups where the Windows machine is
in a different workgroup or NT domain as Samba is configured on your
Linux box. The first and the second are used when you don't need a valid
user on the box your printing two, the third and the fourth if you do.
If the Windows Network/SMB name of your roommate's machine were
'machine', its domain were 'domain' and the printer share were
'printer', the URI might look like this:
smb://domain/machine/printer
Then "continue" and choose the correct driver (which is hopefully
installed with your cups package).
Nils
--
Nils Philippsen / Berliner Straße 39 / D-71229 Leonberg //
+49.7152.209647
nils at wombat.dialup.fht-esslingen.de / nils at redhat.de /
nils at fht-esslingen.de
Ever noticed that common sense isn't really all that common?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://linuxchix.org/pipermail/techtalk/attachments/20020419/cc097c19/attachment.pgp
More information about the Techtalk
mailing list