LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-25-2008, 02:57 PM   #1
crathm
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
Samba/Printer config error with RHEL5


Hello everybody,

First off, thank you for your time and help with assisting me with this problem. I am new to Linux OS and have been doing a lot of reading to get caught up to speed. I am experiencing problems with configuring my Rhel 5 Linux box to act as a print and storage server to my windows computer. I have read several google walkthroughs and tutorials and im stuck on one part. My overall goal is to set up a Samba Print/Storage Server with my linux box as the server. What I have working is this:

My windows box can connect to my linux samba server.
The user can create files and directories as well as move windows files to the linux box in the home directory of the user.
Windows does detect that a printer is attached to the linux computer.
Windows is able to add the printer to its printer list (using its equivalent windows version of the printer driver)
Windows shows me that the printer is connected, and the printer status is ready.

When I try to print... Nothing happeneds and nothing is shown in the print cues on both OS's.

Smb config is simple at the moment while I try to get it to work and everything is allowed atm.

My smb.conf configuration file is as shown:

[global]
workgroup = printgroup
server string = Samba Server ~ Version %v
netbios name = Sambaserver
hosts allow = 192.168.21.101 192.168.21.103 127.0.0.1
hosts deny = All
printcap name = cups
# load printers = Yes
printing = cups
show add printer wizard = no
# disable spools = Yes

[homes]
comment = Home Directories
browseable = No
writable = Yes
[printers]
comment = All Printers
path = /var/spool/samba
# path = /var/spool/cups
printer = raw
browseable = Yes
# writable = Yes
printable = Yes
use client driver = Yes
guest ok = Yes
# printer admin = sambauser

Things commented out are from different testing.
Also I added and the network to my cupsd.conf file

# Enable printer sharing and shared printers.
Browsing On
BrowseAllow all
BrowseAddress 192.168.21.255
# BrowsePoll 192.168.21.111
# BrowseRelay 127.0.0.1
# BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)

DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow 192.168.21.0/24
</Location>

I also added a /etc/hosts.lpd file containing
# 192.168.21.119 is my linux server ip
192.168.21.119
REJECT SERVICE=X NOT SERVER


Any advice or suggestions would be greatly appreciated.
 
Old 11-25-2008, 03:05 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Any reason why you commented out "load printers"?
Try adding "cups options = raw" in global settings

Here's a printer definition that works you can try

Code:
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
 
Old 11-25-2008, 03:25 PM   #3
crathm
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
I commented that line out during one of my testing phases. There is no specific reason why it was still commented but i did add that global setting " cups options = raw", and uncommented Load printers and i was able to make a successful test page. Not sure if it was one or the other or both but it worked.

Thank you very much billymayday.
 
  


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
system-config-printer returns Index Error vishudh Linux - Newbie 1 02-23-2008 09:31 PM
an error installing system-config-printer-gui-0.6.116.5-1 q0987 Linux - Enterprise 2 01-11-2007 06:41 AM
Samba config and Network printer problem z3r0star21 Linux - Networking 5 04-07-2006 01:37 PM
Error running redhat-config-samba rje_NC Fedora 5 08-03-2004 11:33 PM
redhat-config-samba attribute error rwhitworth Linux - Networking 1 06-19-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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