LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-11-2005, 03:40 AM   #1
Mr. Slappy
LQ Newbie
 
Registered: Oct 2004
Location: at home with a warm laptop
Distribution: Ubuntu, CentOS, Solaris
Posts: 24

Rep: Reputation: 15
Samba, Printing, and Windows OH MY!


Hi all-

I am having a problem sharing my printer . I am using RHE4 and the printer is a hp officejet v40xi. I have successfuly set it up and can print to it from the RHE box, but I can not connect to it from a windows box (xp home). I can see it on the network but I dont have access to it. I have set up the printer configuration gui to allow other computer to print to it with all host checked. This is the printer section of smb.conf
Code:
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = yes
# Set public = yes to allow user 'guest account' to print
	printable = yes
So can you help me fix this? I am lost and my GF needs to print from her laptop to this box.

Thanks in advance,

Mr.Slappy


I forgot to mention I get this error on the windows box " A StartDocPrinter call was not issued."

Last edited by Mr. Slappy; 05-11-2005 at 03:52 AM.
 
Old 05-11-2005, 05:55 AM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Make sure the GUI does have it shared. I always edit my configs and scripts. Look at your /etc/cups/cupsd.conf. Check this and change if needed.

<Location />
Order Deny,Allow
Deny From All
#Allow From 127.0.0.1
#
# Do this (example) to allow just your LAN.
Allow From 192.168.2.0/24
#
# Or do this to allow everyone.
#Allow From All
</Location>

Then restart cups and make sure your firewall port 631 is open.

Sometime when I pick the exact printer for the Linux print server, I have to pick a generic printer in Windows. Picking the exact printer name Windows sometimes doesn't work. IE;
Linux -> HP940C
Windows -> HP generic inkjet

edit;
Also, check the /etc/samba/smb.conf for this.

load printers = yes
printcap name = cups
printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes


Then restart.

Should work.



There is a way to make this work correctly, I've nevered took the time to research it.

Last edited by -X-; 05-11-2005 at 05:59 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 from a Windows box to Samba gblasius Linux - Newbie 2 10-03-2005 03:05 AM
samba, printing and windows just don't mix hotrodowner Linux - Networking 2 05-10-2005 08:58 PM
printing to windows box using samba? snakeo2 Linux - Newbie 9 02-26-2005 06:06 AM
Windows printing to CUPS via Samba JahToasted Linux - General 0 08-22-2003 02:28 PM
linux on a windows server -printing etc...SAMBA? andym Linux - Newbie 2 05-19-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:08 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