From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,24a0216c8051cebb X-Google-Attributes: gidfee84,public From: htl10@cus.cam.ac.uk (Dr H. T. Leung) Subject: Re: Samba printing to win98 pc printer Date: 1999/08/25 Message-ID: <7q16gs$q6t$1@pegasus.csx.cam.ac.uk>#1/1 X-Deja-AN: 517079724 References: <7q123c$umt$1@news8.svr.pol.co.uk> To: "John Sheldrake" Organization: University of Cambridge, England Newsgroups: comp.unix.osf.osf1 Originator: htl10@ursa.cus.cam.ac.uk You should verify that you can manually send print job over by generating the appropriate printer driver-codes. For example, in my set up the windows printer is actually HP5P which is PCL based rather than postscript, So I need to do gs -sDEVICE=ljet4 -SOutputFile=tempjob.pcl My_postscipt_file.ps Or something like that to generate the driver codes. Then I do smbclient \\the_bloody_windows_machine\printer_share -P plus the appropriate -U (windows user) option and if necessary, type in the windows share's password. Then at the smb prompt, I type "print tempjob.pcl". If things goes well, it would come out at the printer. If you are luckily to have been blessed with a postscript printer, you can just generate a little postscript file (latex, xfig, whatever) and smbclient right away for testing. Then you can automate this process by setting up a magic filter to do the gs conversion, setting up your printcap file with an appropriate print queue, and lastly, use smbprint (a little script from the samba source distribution, I believe, or from the samba website) as a print filter which drives smbclient with some default options. It would be useful for you to read the linux printing-HOWTO for that particular section on printing to windows printers. http://www.picante.com/~gtaylor/pht/current/pht.html In article <7q123c$umt$1@news8.svr.pol.co.uk>, "John Sheldrake" writes: |> Hi all |> |> I want to be able to print from my Dec Alpha 1200 (DU 4.0d) to a shared |> printer |> on a windows98 pc. I've downloaded and installed samba 2.0.5.a |> |> I've setup /etc/inetd.conf & /etc/services and then used swat to configure a |> printer |> which is attached to the win98 pc. Swat has updated |> /usr/local/samba/lib/smb.conf |> with the details for the printer, but now what? |> |> I've no idea how to define a printer to use the samba setup |> |> Can anybody give me a nudge in the right direction -- -------------------------------------------------- "What you don't care cannot hurt you." Chap. 7a, AMS-NS