Skrivet av NoWin:
Min smb.conf ser ut så här när det gäller printerdelen:
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
; load printers = yes
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
printer admin = @lpadmin
När jag installerar en printer gör jag så här i Windows med smb.conf enligt ovan:
Add printer
Network printer
jag skriver i vad den heter, i mitt fall \\192.168.1.1\DESKJET_940C
Nu får du upp en ruta där du skall ange skrivarfabrikat och modell för druvrutiner.
Klart!
Det var värt ett försök, Men jag möts ständigt av den här bilden.
http://www.emileriksson.net/~emil/error.jpg
Så här ser min SMB.CONF ut
----------------------------------------------------------------------------------
[global]
workgroup=IRONMAN
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = eth0
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 10
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# load printers = yes
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[DESKJET_960C]
comment = HP DeskJet 960C
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
----------------------------------------------------------------------------------
Så här ser min cups ut
---------------------------------------------------------------------------------
AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
MaxClients 10
LogLevel debug
MaxLogSize 0
SystemGroup lpadmin
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow from all
BrowseRemoteProtocols cups
BrowseAddress @LOCAL
BrowseLocalProtocols cups dnssd lpd smb
DefaultAuthType Basic
<Location />
Order allow,deny
Allow all
</Location>
<Location /admin>
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subs$
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-P$
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subs$
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-P$
AuthType Default
Require user @SYSTEM
Order deny,allow
Allow @LOCAL
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
------------------------------------------------------------------------------
Jag blir snart galen och slänger ut datorn!
Du kan väl jämför med dina configar, se om det är något som skiljer nämnvärt?