LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2004, 05:13 AM   #1
Grafbak
Member
 
Registered: Jun 2003
Location: /dev/null
Distribution: Knoppix 3.3
Posts: 61

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing under Linux. Cups, Apsfilter, lpr ? Sonic_Traveler Linux - Hardware 4 10-03-2011 04:52 PM
printing using cups and linux hp drivers jhowe Linux - Hardware 5 10-18-2005 12:57 PM
Printing from Linux to WinXP (SAMBA & CUPS) Yoda_Oz Linux - Networking 0 02-03-2005 09:20 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Printing from Linux to HP OfficeJet 5500 on XP Pro via CUPS wrw3 LinuxQuestions.org Member Success Stories 3 06-08-2004 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration