[Pluto-help] stampante con samba

Alberto Piras Ce.Di. alberto.piras a nordingros.it
Gio 31 Ott 2002 08:35:24 CET


sto cercando di aiutarmi :-), successivamente vi riporto i file esattamente
come li ho configurati, ma la domanda da ignorante è la stampante la devo
usare con smbmount come faccio con gli HD dei pc con winzoz?
se si, la devo montare in una cartella a parte o dove?
ecco i file :


/etc/samba/smb.conf

[global]
workgroup = cedi
guest account = nobody
keep alive = 60
os level = 2
kernel oplocks = No
security = user
printing = bsd
printcap name = /etc/printcap
load printers = Yes
socket options = TCP_NODELAY
map to guest = Bad User
interfaces = 192.168.0.10/255.255.255.0

[homes]
comment = Directory Base
read only = No
create mask = 0640
directory mask = 0750
create mode = 0750
browseable = No

[cdrom]
comment = CD-Rom PC Ufficio
path = /media/cdrom
locking = No
read only = yes
guest ok = yes

[printers]
comment = All Printers
security = server
path = /var/spool/lpd/lpcan
browseable = no
printable = yes
public = yes
writable = no
# create mode = 0700 se lascio 0700 all'avvio mi da un warning
create mode = 0755

[ljet]
security = server
path = /var/spool/lpd/lpcan
printer name = lpcan
writable = yes
public = yes
printable = yes
print command = lpr -r -h -P %p %s


/etc/printcap

lpcan:\
         :cm=Prova per stampare con la canon s400:\
         :lp=/dev/null:\
         :mx=0:\
         :sd=/var/spool/lpd/lpcan:\
         :af=/var/spool/lpd/lpcan/acct:\
         :if=/usr/bin/samba_print:


/usr/bin/samba_print (non modificato)

#!/bin/bash
#
# Debugging log file, change from /dev/null if you like.
#
logfile=/dev/null

if test -L $logfile ; then
echo "$0: $logfile should not be a symbolic link." 1>&2
exit 2
fi

#
# Protect the password
#
umask 0066
if ( >> $logfile ) 2> /dev/null ; then
#
# Some debugging help,
# change the >> to > if you want to same space.
#
exec >> $logfile      2>&1
else
rm -f   ${logfile}.$$
exec  > ${logfile}.$$ 2>&1
fi

#
# Print out the used command line
#
echo smbclient $@

#
# Supplement and pass standard input to smbclient
#
(
  # NOTE You may wish to add the line `echo translate'
  # if you want automatic CR/LF translation when printing.
  #     echo translate
echo "print -"
cat
) | smbclient ${1+"$@"


/var/spool/lpd/lpcan/.config

#questo file .config è necessario?????
share="//pc_winzoz/nome_stampante_condivisa"
user="tizio"
password="blablabla"

#quale sarebbe questo utente???? quello di winzozo e quello di linux????


Un grazie particolare a chi è arrivato qua in fondo, Alberto





More information about the pluto-help mailing list