Brian W. Carver
One tiny problem to describe, but then for the benefit of posterity I'll
describe how I printed across the network! When printing from the
client computers, printing is fine, but it prints a blank page at the
end. SuSE even has a description of this problem in their database, but
I don't understand their solution. Anyone able to explain it to a dummy? Procedure 1. Solution for network printing on 8.0 -
Install samba.
-
Edit /etc/inetd.conf to uncomment the line that says:
swat stream tcp nowait.400 root /usr/sbin/swat swat
Tip
Make sure you have inetd restarted, as root issue
rcinetd restart
-
Edit /etc/hosts.allow to contain:
swat: 127.0.0.1 192.168.0.
Note
if like me, you want any local computer (192.168.0.x) to be able to
access SWAT.
-
Type http://localhost:901 into a web
browser.
Use swat to set up things. I'll include my smb.conf as an attachment
to show you how I set up my printer and a couple of shared
directories. You can also follow the same advice I did from
Samba Server Step-by-Step Guide which is an old but still
useful guide.
-
The one thing he doesn't tell you in that guide is to go to SWAT's
passwords section and create a samba user for each client computer.
You'll have to have a linux user on the server for each of these
computers too. Then I made sure my windows computers were actually
using the same user names and passwords for logging into windows
-> and then finally in swat click on ENABLE
USER for each user you've created.
-
After that the server computer showed up in Network Neighborhood and I could
set up a network printer in Windows with the ->->.
Good luck. I feel like some of what works for me, works on accident and
I don't really understand what I've done myself. I just know the
clients can print, and I'm thrilled with that.
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2002/05/01 04:43:18
# Global parameters
[global]
interfaces = 192.168.0.1/24 127.0.0.1/24
bind interfaces only = Yes
security = SHARE
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
time server = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
character set = ISO8859-15
os level = 2
dns proxy = No
wins support = Yes
guest account = smbuser
hosts allow = 192.168.0.2 192.168.0.3 192.168.0.4
printing = lprng
hide dot files = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
guest ok = Yes
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
[printer1]
path = /var/tmp
read only = No
create mask = 0600
guest ok = Yes
printable = Yes
printer name = printer1
oplocks = No
[public]
comment = Public
path = /home/public
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes
[data]
comment = Data
path = /home/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes
|