Re: Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- From: CJ Chitwood {Circuit Breaker} <cj.chitwood@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 09:10:10 -0500
I forget what they call it, but please find my replies immediately
following those lines to which I am replying (just woke up, mind's not too
sharp).
On Tue, 26 Dec 2006 21:54:06 -0800, left_coast wrote:
CJ Chitwood {Circuit Breaker} wrote:
First, you did not give some critical information here. What Linux
distribution and version? What cups version? Samba version? (If you posted
[Serenity][pts/0]
[root][/etc/samba]# uname -r
2.6.14.3-AthlonXP_1600+_CJ.Chitwood
[Serenity][pts/0]
[root][/etc/samba]#
You said you can map the printer, but does it show up when browsing the
network from XP? Does your XP see the computer you are hosting the
printer on?
I can see the workgroup, MSHOME, in the "Microsoft Windows Network", but
when I try entering that through the XP box I get an error:
"MSHOME is not accessible. You might not have permission to use this
network resource. Contact the administrator of this server to find
out if you have access permissions.
The network path was not found."
Funny thing is, I'm using an administrative account on the box in
question, and it shows that the computer is indeed in the MSHOME workgroup
(in My Computer/System Properties/Computer Name). At the very least, the
computer should see itself, if not the other three or four computers in
the workgroup.
However, I can't even see the computer if I type in the IP address like
"\\ipadd", "\\ipadd\", or "\\ipadd\printername". I was at least getting
this much from another computer, so maybe the laptop I'm using is
malconfigged... although it does see the Internet...
Actually, I'm typing in Pan on the "serving" computer. Last night, I was
VNC'ed into the "server" from my work laptop, which is a member of a
domain, not my MSHOME workgroup. That laptop at least showed the printer,
the Pub folder, and two other items when I typed in "\\<ipaddy here>\" on
the address bar. However, this morning I'm using my fiancee's laptop, and
it's a member of the MSHOME workgroup, and it doesn't see jack relating to
the "server". And, smb.conf shows "workgroup = MSHOME" and it's not
commented.
Do you have a firewall setup on your system?
Not currently. iptables shows wide open, and the router uses the "server"
as a DMZ, and also several ports are expressly pointed at the "server"
from the days before the DMZ option was chosen (but not the
Microsoft-specific ports -- just ports like SSH, FTP, etc).
The firewall issue is about to be rectified though. I removed it when one
of my apt-get upgrade commands borked its install (it hasn't worked since,
although I have tried). I reinstalled Firestarter, but it won't start. I
forget the error. I'm going to try guarddog next -- if it doesn't work,
it's on to manual table editing. I saw two attempts to connect to my
"server" through the VNC log last night, so I'm going to have to set
something up, even if it's just removing DMZ on the router.
Do you get any messages in your samba logs that show any information on
a connection attempt?
I'm not even sure where the logs are. I see no samba, smb, or nmb log
files anywhere in /etc or /var/log. Is there somewhere else I can look?
Also, an excerpt of my smb.conf:
; If you want Samba to log though syslog only then set the following
; parameter to 'yes'. Please note that logging through syslog in
; Samba is still experimental.
syslog only = no
; We want Samba to log a minimum amount of information to syslog. Everything
; should go to /var/log/{smb,nmb} instead. If you want to log through
; syslog you should set the following parameter to something higher.
syslog = 0;
Do you have such a directory? Is it writable by the cups daemon?
Which directory? I don't see to which part of my post you are referring,
and I don't know for what directory I should look.
At the moment, I do not have cups serving a windows network, when I did,
here are some of the the things I had in my smb.conf file:
printcap name = cups
load printers = yes
These two, check.
printcap cache time = 60
Perhaps I should add this -- I don't have it currently.
printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
here's mine:
[printers]
comment = All Printers
browseable = yes
path = /home/smbprint
printable = yes
public = yes
writable = yes
create mode = 0700
guest only = yes
use client driver = yes
; above line suggested by tldp howtos - win + debprint
guest account = smbprint
when I "ls /home" I get, among my other directories of course:
drwxr-xr-x 2 smbprint nogroup 48 Dec 24 23:30 smbprint
So it is RWX for the smbprint user, which should be enough for samba
printing. I would have used something like /tmp/print or similar, but
when samba was wanting a user account at some point, I decided to make one
just for it. There is indeed a "smbprint" user. It even has a password,
though at the moment none of the ones I can imagine having set it to are
working. Could that be it?
From your second reply:
On your Linux system, did you run testparm to test your smb.conf file?
No, I did not. I've never used that tool, AFAIK.
Here we go:
[Serenity][pts/0]
[root][/etc/samba]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Global parameter guest account found in service section!
Processing section "[pub]"
Processing section "[cdrom]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MSHOME
server string = Samba %v at %h
interfaces = 192.168.10.9
security = SHARE
guest account = samba-user
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
unix password sync = Yes
syslog = 0
max log size = 1000
name resolve order = lmhosts host wins bcast
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
printcap name = cups
os level = 34
preferred master = Yes
domain master = Yes
wins support = Yes
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
hosts allow = 192.168.10., 127.
printing = cups
print command =
lpq command = %p
lprm command =
[homes]
comment = Home Directories
read only = No
create mask = 0755
browseable = No
[printers]
comment = All Printers
path = /home/smbprint
read only = No
create mask = 0700
guest only = Yes
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
[pub]
comment = share directory 3775 root:src
path = /gen-sambashare
read only = No
create mask = 0640
directory mask = 0750
guest ok = Yes
[cdrom]
comment = Samba server's CD-ROM
path = /cdrom
guest ok = Yes
locking = No
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
[Serenity][pts/0]
[root][/etc/samba]#
Also, from your Linux system, Does running `smbclient -L localhost` show
what you have samba configured to share listed under "Sharename"? Do you
have your printer listed?
[Serenity][pts/0]
[root][/etc/samba]# smbclient -L localhost
Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost failed
[Serenity][pts/0]
[root][/etc/samba]#
Same results as non-admin user, too.
Thanks for the help... I have to run though...
Cj
--
CJ Chitwood, posting a long time ago as Circuit Breaker
To reply via e-mail, sink theship.
.
- Follow-Ups:
- References:
- Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- From: CJ Chitwood {Circuit Breaker}
- Re: Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- From: left_coast
- Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- Prev by Date: wget - the question for advanced users
- Next by Date: Re: Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- Previous by thread: Re: Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- Next by thread: Re: Printing from WinXP to Samba/Linux (Continuing from getting it to print to begin with -- lol)
- Index(es):
Relevant Pages
|