LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   printing from win 98 client to samba printer on red hat linux with cups (http://www.linuxquestions.org/questions/linux-networking-3/printing-from-win-98-client-to-samba-printer-on-red-hat-linux-with-cups-124466/)

shashi_lq 12-10-2003 01:04 AM

printing from win 98 client to samba printer on red hat linux with cups
 
I have one Red Hat Linux 8 machine and 4 windows 98 clients. I want to configure the Red Hat Linux 8 machine as a printer server with CUPS. The printer is a LaserJet with drivers only for WIN 98.
I want to install the Laserjet on Red Hat Linux 8 machine as a raw printer. The win 98 clients should be
able to print to the Linux machine using the vendor supplied driver for win98.

I installed Red Hat Linux 8, Samba 2.2 and the default printing system as cups.

My /etc/samba/smb.conf is as follows

[global]
workgroup = funwin
netbios name = AMAZON
server string = Amazon Samba Server
security = SHARE
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
printing = cups
printcap name = cups
# printer driver file = /usr/local/shashi/samba/print/printers.def
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
printing = cups
printcap name = cups
print command = lpr -P%p -o raw %s -r
browseable = yes
# min print space = 2000

[raw_q]
comment = raw_q
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
print command = lpr -P%p -o raw %s -r
printer name = raw_q
use client driver = Yes

I have changed /etc/cups/mime.convs and /etc/cups/mime.types to allow raw printing

when a win 98 machine wants to prints the job appears in the /var/spool/samba/ directory. It stays in the spool for some time and disappears without any printing on the printer.

I want to know how to configure any printer on Linux with CUPS and Samba using the client ( specifically win 98) supplied drivers. The printer driver for win 98 are installed manually by the users.


All times are GMT -5. The time now is 03:13 PM.