Printing from XP to Linux-CUPS
Hello all
I have installed Knoppix 3.6 on an old P3 machine. I would like to use this as my file and printer server.
The problem is that i can't print from another machine on the network. Locally the printer works, i got a testpage and i could print some text out of KWrite.
In WindowsXP i can look for a printer, and it will find the HP Laserjet 5 as i changed the security parameter to "share" .
The printer is also installed in WindowsXP as my default printer with the correct drivers.
When i want to print some text from XP to this printer it refuses.
When i print from notepad i get an error : A StartDocPrinter call was not issued.
When i try to print a test page from "Properties" i simply get a "Test page failed to print".
I have included my smb.conf in this post and i hope that someone can get me going.
It took me 2 days to even SEE the printer on the network. I think it has something to do with write permissions and users.
I dont care about the security of my internal network (it is at home behind a smoothwall), in fact i wouldnt mind throwing the doors wide open, i need this printer to do its job.
Can someone please help me ?
My username on the Linuxbox, with the printer attached is "grave"
If u need any further information, let me know i'll post it right away.
Here's my smb.conf as it is now :
;
; /etc/samba/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
; every parameter.
;
[global]
display charset = iso-8859-15
name resolve order = lmhosts host wins bcast
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
obey pam restrictions = yes
preserve case = yes
write list = grave,@grave
user = grave,@grave
passwd program = /usr/bin/passwd %u
dns proxy = no
printing = cups
invalid users = root
dos charset = 850
workgroup = P2212
syslog only = no
printcap name = cups
security = share
short preserve case = yes
max log size = 1000
guest account = grave
load printers = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
encrypt passwords = true
passdb backend = smbpasswd guest
wins support = no
server string = %h server (Samba %v)
path = /var/spool/cups/tmp
unix password sync = false
comment = Spuugbak Printer
valid users = grave,@grave
syslog = 0;
panic action = /usr/share/samba/panic-action %d
unix charset = iso-8859-15
[homes]
comment = Home Directories
browseable = yes
; By default, the home directories are exported read only. Change next
; parameter to "no" if you want to be able to write to them.
read only = no
; File creation mask is set to 0700 for security reasons. If you want to
; create files with group=rw permissions, set next parameter to 0775.
create mask = 0775
; Directory creation mask is set to 0700 for security reasons. If you want to
; create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0775
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = grave
[printers]
printer admin = grave
comment = All Printers
browseable = yes
path = /home/grave/printers
printable = yes
public = yes
writable = yes
create mode = 0775
; A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
;
; The next two parameters show how to auto-mount a CD-ROM when the
; cdrom share is accesed. For this to work /etc/fstab must contain
; an entry like this:
;
; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
;
; The CD-ROM gets unmounted automatically after the connection to the
;
; If you don't want to use auto-mounting/unmounting make sure the CD
; is mounted on /cdrom
;
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
EDIT :
I needed to print, and to get it working. I connected my Laserjet to an old P2 machine with win98, cost me less than 2 minutes. I can finally print.
Linux is stable and nice to hobby around with, also works pretty well as a server for all kinds of stuff, but that printing part should be made easier. Just share the F***ing printer dammit.
Last edited by Grafbak; 09-21-2004 at 06:52 AM.
|