Printing over WAN's
Jamie Coppinger
jamie at vetsolutions.co.uk
Wed Sep 17 13:06:32 GMT 2003
Hi,
I'm having problems printing across a WAN from a Windows XP PC to a SCO Unix
server.
System layout:
Main site:
IP range 192.168.1.*
SCO Unix 5.0.6 server running Samba version 2.2.6.
Number of XP PC's, some with attached printers which are working via Samba.
Number of dumb network terminals, again some with attached printers which
print via netcat.
Cisco router connecting to remote over a kilostream circuit.
Remote site:
IP range 192.168.2.*
2 x PC's running XP.
4 x dumb network terminals, 1 with 3 x attached printers.
Cisco router connecting to main over a kilostream circuit.
PC's are using Anita terminal emulation software.
All print jobs from the remote site go via the spooler on the Unix machine
at the main site and printing IS working at the remote site via netcat to a
specified port on the dumb terminal with the attached printers.
The printer in question (HPLJ1300) is listed as a valid device via testprns.
smbstatus shows the PC at the remote site as I'm able to map to shared areas
on the Unix server across the WAN from the PC.
I am able to browse via Network Neighbourhood to the shared printer from the
XP machine. After installing however the printer status shows 'access
denied, unable to connect' and printing to this device fails.
I haven't physically attached the printer to the PC as I was aware of
problems previously when trying to print to a shared printer over a WAN via
samba. The way its setup it should be passed to Samba which should then pass
it on to netcat to print to the port on the dumb terminal.
smb.conf below.
Any help gratefully received.
Jamie.
[global]
workgroup = WORKGROUP
netbios name = BRAID
server string = Samba (%v) Server on %h
hosts allow = 192.168.1. 192.168.2. 127.
printcap name = lpstat
load printers = yes
printing = sysv
print command = lp -sc -o raw -d%p %s ; rm %s
guest account = vet
log level = 1
log file = /usr/local/samba/var/log.%m
max log size = 50
security = user
map to guest = Bad User
null passwords = yes
encrypt passwords = yes
smb passwd file = /usr/local/samba/private/smbpasswd
username map = /usr/local/samba/private/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = net0
os level = 20
preferred master = yes
time server = yes
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
[premvet]
comment = Premvet Data
path = /u/vetdata
public = yes
read only = no
[common]
comment = Windows Common Area
path = /w/common
public = yes
read only = no
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jamie Coppinger Tech Support
E-mail: jamie at vetsolutions.co.uk
support at vetsolutions.co.uk
Phone: 0131 5560555
Vet Solutions, 2/3 Dublin Meuse, Edinburgh, EH3 6NW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the samba-technical
mailing list