View previous topic :: View next topic |
Author |
Message |
oiper Guru
Joined: 01 May 2003 Posts: 316 Location: Alabama, US
|
Posted: Tue Jan 27, 2004 5:01 am Post subject: Samba/Cups/Windows Client (SOLVED) |
|
|
I spent too long on this and thought I might as well post this if it could save somebody else the hassle.
I have a printer set up and served, via Cups and Samba, from a Gentoo Linux machine. Another Linux machine worked fine with the shares and printer and the Windows XP machine worked fine with the shares, BUT the WinXP machine would only get as far as adding an extry for the networked printer. At that point I'd get an "Access denied" message or "Contact your administrator" or something nutty. Anyways, I was led to set up another Cups entry for the very same printer, but set the new entry up as a "raw" printer. I did at first, but that just seemed very stupid to have to do (2 entries and all). Anyways, I did uncomment the raw mime type line in both /etc/cups/mime.convs and /etc/cups/mime.types as suggested elsewhere. Also I installed the printer drivers on the Windows client instead of setting up the drivers to install automatically from Samba b/c, well, I had enough to figure out at the time. After adding the WinXP printer, I just aligned the cartridge. All that said, if I did remember everything, here's my /etc/samba/smb.conf file:
[global]
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 50
map to guest = Bad User
security = user
smb password file = /etc/samba/private/smbpasswd
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
dns proxy = no
domain master = no
preferred master = no
max protocol = NT
printcap name = cups
encrypt passwords = yes
[Storage]
guest ok = yes
read only = no
path = /storage
[printers]
use client driver = yes
lpq command = lpstat -o %p
lprm command = cancel %p-%j
printable = yes
printer name = Lexmark
# To allow "guest account" to print
guest ok = yes
create mask = 0700
print command = lpr -P %p -o raw %s -r #using client side printer drivers
path = /var/spool/samba
comment = All Printers
printing = cups
printer admin = root,guy,gal,somebody
hosts allow = 192.168.1.102 # This might not have been needed even in my case
admin users = root,guy,gal,somebody
[homes]
comment = Home Directories.
path = /home/%u
read only = no
browseable = no
# END OF FILE _________________ www.bearscanfly.org - Because hiking is cool |
|
Back to top |
|
|
Krigg n00b
Joined: 22 Apr 2003 Posts: 59 Location: Out There
|
Posted: Thu Jan 29, 2004 3:51 pm Post subject: |
|
|
nice, I was having just such a problem with setting up my linux machine as a print server when I came by this post.
Now if you could only let me know why none of my Windows machines can browse Network Neighborhood!
Oh, I can get to the linux machine by opening Explorer and typing
on the Address line....and that works fine. I can even set up folders on my linux machines to be shared and they come up at boot no problem...
go figure.. _________________ Have gun, will carry! |
|
Back to top |
|
|
oiper Guru
Joined: 01 May 2003 Posts: 316 Location: Alabama, US
|
Posted: Thu Jan 29, 2004 7:20 pm Post subject: well |
|
|
I wish I could help there too. The "storage" section in my smb.conf is all I needed to share the /storage directory on a linux machine, and it showed up right away for the WinXP client. Make sure if you have at least
Code: |
security = user
smb password file = /etc/samba/private/smbpasswd
max protocol = NT
encrypt passwords = yes
|
in your global section of smb.conf, that you do a Code: | smbpasswd -a username | for each user. I'm not 100% sure of this, but you probably need both machines to have the same username. ie. If there's a JoeSomebody user on the Win machine, add a JoeSomebody on the linux machine, then run the smbpasswd -a JoeSomebody to set up their Samba password and account. Hope that made sense. _________________ www.bearscanfly.org - Because hiking is cool |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|