Salut,
Incerc sa configurez un server SAMBA exclusiv pentru a genera documente .pdf.
#rpm -qa | grep samba
samba-client-3.0.8-0.pre1.3
samba-common-3.0.8-0.pre1.3
system-config-samba-1.2.21-1
samba-swat-3.0.8-0.pre1.3
samba-3.0.8-0.pre1.3
# uname -r
2.6.9-1.667
# cat /etc/redhat-release
Fedora Core release 3 (Heidelberg)
Fiserul /etc/samba/smb.conf:
[global]
workgroup = DEFAULTWG
netbios name = admin
security = share
log file = /var/log/samba/log.%m
max log size = 50
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.1.170/24
map to guest = bad user
load printers = yes
printing = cups
printcap name = cups
guest account = nobody
os level = 1
[pdfoutput]
path = /mnt/pdfdropbox
force user = nobody
read only = No
guest ok = Yes
[pdf-gener]
path = /var/tmp
guest ok = yes
printable = Yes
comment = PDF Generator
print command = /usr/bin/printpdf %s
Resursa cu numele "[pdfoutput]" va fi folosita ca recipint pentru
fisierele .pdf. Scriptul care-mi genereaza fisiere .pdf este:
# cat /usr/bin/printpdf
DATE=`date +%b%d-%H%M%S`
OUTDIR=/mnt/pdfdropbox
ps2pdf $1 $OUTDIR/$DATE.temp
mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
rm $1
Pe o statie windows merg si adaug imprimanta "[pdf-gener]", iar ca si
driver aleg un Apple LaserWrite. Aceasta imprimanta are status-ul:
"acces denied, unable to connect". De unde e problema? De la fisierul
de configurare al sambei? Pe serverul samba nu am conectata vreo
imprimanta.
Multumesc!
---
Detalii despre listele noastre de mail: http://www.lug.ro/