Make sure the Samba initscript is in the default runlevel:
- Code: Select all
# rc-update -v show | grep samba
samba | default
If it isn't, add it:
- Code: Select all
# rc-update add samba default
Same goes for the CUPS daemon:
- Code: Select all
# rc-update -v show | grep cups
cupsd | default
- Code: Select all
# rc-update add cupsd default
Also make sure your Samba configuration file /etc/samba/smb.conf is correct. Here's mine as an example (obviously your NETBIOS name and Public directory path will be different to mine):
- Code: Select all
[global]
netbios name = meshedgedx
message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
printcap name = cups
printing = cups
printer admin = @adm
log file = /var/log/samba3/log.%m
max log size = 50
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
name resolve order = wins lmhosts bcast
wins support = yes
dns proxy = no
[homes]
comment = Home Directories
read only = no
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = yes
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = yes
printable = yes
create mask = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = yes
[PUBLIC]
path = /home/fitzcarraldo/Public/
guest ok = yes
read only = no
Make sure you have UFW configured to allow Samba and CUPS to access the network: see my post
How to config ufw/ufw-frontends for Samba browsing/printing.
In addition, I had to enable authentication on a Vista PC on my home network. Perhaps the same applies with Windows 7 (I don't know). See the first part of the SL Wiki article
HOWTO: Vista printer sharing for details. Also make sure the firewall on your other PCs are not blocking the traffic. I had to configure the firewalls at both ends, as I explained in the aforementioned SL Wiki article.