On Tue, 31 Dec 2002, Palmer, Hilary wrote:
> Am I missing something?
>
> In order for me to get my Windows 2000 box to print to a HP DeskJet 1220c I
> need to do the following:
>
> 1. Have the printer in cups set to "HP DeskJet 1220C, CUPS+GIMP-print
> v4.2.3"
> 2. Make sure that I use a PostScript printer driver on Windows 2000 (I am
> using HP DJ 1200/PS).
> 3. Change the print command in smb.conf from "lpr-cups -P %p -o raw %s -r"
> to "lpr-cups -P %p -r %s"
Instead of 2. and 3. you could (I guess, don't have a DJ 1200 PS printer
available) use the PCL driver.
>
> Now when I want to print I need to:
> 1. Pause the printer on my Linux system.
> 2. Print my document in Windows.
> 3. Edit the print file with vi and remove the top 2 and bottom 2 lines that
> contain some JPL commands.
> 4. Edit the print file with Kedit to remove the "^M" character from every
> line.
dos2unix? (or is it d2u?)
> 5. Reenable the printer.
What happens when you print directly from linux?
Does your windows PS driver have options such as "optimise for
portability", which is usually not the default, since "optimise for speed"
is. This is the case with the Adobe drivers.
BTW, we have a Canon LBP-660 laser printer, and I have to jump through
hoops to print from linux. Till, if you read this thread, interestingly
enough I could print to the LBP-660 via the network with the printer test
pages in Mandrake 8.{1,2} (IIRC), but nothing else. It seems to do PCL
emulation in software, which is only available if the printer is on a
windows 9x machine (AFAIK, win2k support doesn't look good ...). So I was
using some sort of HP Laserjet (1 or IIP) PCL driver.
>
> Also the status information on the Windows system says "Access denied,
> unable to connect". Is there a way to fix that?
Are you authenticated by samba? ie do you see a share with your username
when you browser the machine from windows? I would guess you aren't, and
you should really just add yourself a windows password (as root):
# smbpasswd -a <username>
<username> should be a valid unix account, which you also log into windows
with, and the password you enter should be the password you log into
windows with.
If you aren't authenticating, you won't be able to do things like delete
print jobs ...
If it were a winxp box, it would probably be that you had the firewall
enabled, which by default firewalls off ports 137-139, which would give
you similar problems to pre-windows2000 servers (including Windows NT
server).
FYI, newer CUPS versions are supposed to be able to auto-detect PS vs
non-PS jobs, so hopefully newer versions of samba should be able to drop
the default -o raw option. Also, CUPS-1.17 had a PS driver available for
windows, which coud make setting up printers easier (so that CUPS could
auto-install windows print drivers on the samba server).
Unfortunately I have been spending most samba time on samba3 thus far, but
if you have time to experiment I could think of some things for you to try
...
Oh, and I just got back from holiday (no connection ...) and have waded
through my inbox, and about half the cooker backlog ...
Regards,
Buchan
--
|----------------Registered Linux User #182071-----------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7