Men jag har problem med att dela ut skrivaren till andra datorer.
Problemet är följande: Försöker jag ansluta min skrivare på min klient dator så får jag följande fel "0x0000000d". Ett helt oförstående fel i windows.
Mina loggar visar följande när jag trycker "Anslut" på skrivaren i windows: Log: /var/log/samba/log.mittdatornamn
Kod: Markera allt
[2010/05/30 21:37:47, 0] param/loadparm.c:9783(widelinks_warning)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
Kod: Markera allt
#
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Egna andringar.
ServerName Printserver # your printserver name
ServerAdmin emil@Printserver # the person for printer-related hate-mail, eg you
AccessLog /var/log/cups/access_log # probably doesn't need changing
ErrorLog /var/log/cups/error_log # doesn't really need changing either
MaxClients 10
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
# Listen on the LAN interface, Port 631 (IPP)
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow @LOCAL
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow @LOCAL
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription$
# Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
# AuthType Default
#Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer A$
#AuthType Default
#Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
#Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job-related operations must be done by the owner or an administrator...
<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-Subscription$
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<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>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer A$
AuthType Default
Require user @SYSTEM
Order deny,allow
Allow @LOCAL
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Så här ser min samba smb.conf ut som gäller printing
Kod: Markera allt
[global]
load printers = yes
printing = cups
printcap name = cups
security = user
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
public = yes
guest ok = yes
writable = yes
printable = yes
[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers
browseable = yes
guest ok = yes
read only = yes
[HP Deskjet 960C]
path = /var/spool/public
read only = yes
printable = yes
guest ok = yes
Kod: Markera allt
-r-xr-xr-x 1 root root 14234 2002-09-24 16:05 cups5.hlp
-r-xr-xr-x 1 root root 280268 2004-01-03 19:44 cupsdrv5.dll
-r-xr-xr-x 1 root root 219540 2004-01-03 19:44 cupsui5.dll
drwxr-xr-x 2 root root 4096 2010-05-28 15:55 x64
Kod: Markera allt
-r-xr-xr-x 1 root root 14234 2010-05-28 15:54 cups5.hlp
-r-xr-xr-x 1 root root 280268 2010-05-28 15:54 cupsdrv5.dll
-r-xr-xr-x 1 root root 219540 2010-05-28 15:54 cupsui5.dll
-rwxr--r-- 1 root root 22312 2010-05-28 15:55 hp-deskjet_960c.ppd
cupsaddsmb -H PrintServer -U root -h PrintServer -v HP960C
Password for root required to access pelargir via SAMBA:
Så får jag upp "Det finns inga windows drivrutiner installerade"
När jag borde fått upp.
Kod: Markera allt
Running command: smbclient //pelargir/print\$ -N -U'root%######' -c 'mkdir W32X86;put /var/spool/cups/tmp/411b688237af4 W32X86/HPDeskJet930C.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
Domain=[PELARGIR] OS=[Unix] Server=[Samba 3.0.5]
putting file /var/spool/cups/tmp/411b688237af4 as \W32X86/HPDeskJet930C.ppd (6269.3 kb/s) (average 6269.5 kb/s)
putting file /usr/share/cups/drivers/cupsdrv5.dll as \W32X86/cupsdrv5.dll (4718.9 kb/s) (average 4795.2 kb/s)
putting file /usr/share/cups/drivers/cupsui5.dll as \W32X86/cupsui5.dll (14292.9 kb/s) (average 6669.8 kb/s)
putting file /usr/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp (6949.9 kb/s) (average 6677.0 kb/s)
Running command: rpcclient pelargir -N -U'root%######' -c 'adddriver "Windows NT x86" "HPDeskJet930C:cupsdrv5.dll:HPDeskJet930C.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"'
Printer Driver HPDeskJet930C successfully installed.
Running command: rpcclient pelargir -N -U'root%######' -c 'setdriver HPDeskJet930C HPDeskJet930C'
Succesfully set HPDeskJet930C to driver HPDeskJet930C.
Vart ska jag börja leta ?
Jag tycker jag har försökt med allt. Men nu behöver jag lite hjälp.