Code Sample |
$ smbd restart $ nmbd restart should have been $ sudo smbd restart $ sudo nmbd restart |
Code Sample |
$ /opt/hplip/sbin/cupsaddsmb -H localhost -U root -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print$ -N -A /tmp/46d86d9748516 -c 'mkdir W32X86;put /tmp/46d86d922450d W32X86/OfficeJetG85.ppd;put /opt/hplip/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /opt/hplip/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /opt/hplip/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /opt/hplip/share/cups/drivers/pscript5.dll W32X86/pscript5.dll' Domain=[DSLKAYAK] OS=[Unix] Server=[Samba 3.0.25b] putting file /tmp/46d86d922450d as \W32X86/OfficeJetG85.ppd (2943.0 kb/s) (average 2943.0 kb/s) putting file /opt/hplip/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (1660.3 kb/s) (average 1779.6 kb/s) putting file /opt/hplip/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (908.1 kb/s) (average 1565.5 kb/s) putting file /opt/hplip/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (3486.8 kb/s) (average 2834.9 kb/s) putting file /opt/hplip/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (3978.1 kb/s) (average 3124.5 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/46d86d9748516 -c 'put /opt/hplip/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /opt/hplip/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /opt/hplip/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll' Domain=[DSLKAYAK] OS=[Unix] Server=[Samba 3.0.25b] putting file /opt/hplip/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (3.1 kb/s) (average 3.1 kb/s) putting file /opt/hplip/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (2454.6 kb/s) (average 440.8 kb/s) putting file /opt/hplip/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (2225.2 kb/s) (average 755.7 kb/s) Running command: rpcclient localhost -N -A /tmp/46d86d9748516 -c 'adddriver "Windows NT x86" "OfficeJetG85:pscript5.dll:OfficeJetG85.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,OfficeJetG85.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,c upsui6.dll"' Printer Driver OfficeJetG85 successfully installed. Running command: rpcclient localhost -N -A /tmp/46d86d9748516 -c 'setdriver OfficeJetG85 OfficeJetG85' Succesfully set OfficeJetG85 to driver OfficeJetG85. |
Code Sample |
[global] workgroup = JUANITO netbios name = DSLKAYAK hosts allow = 192.168.1. security = share load printers = yes printing = cups printcap name = cups [share] path = /mnt/sdb4/dslshare read only = no browseable = yes guest ok = yes [printers] comment = All Printers path = /var/spool/samba browseable = yes public = yes guest ok = yes writable = no printable = yes [print$] comment = Printer Drivers path = /opt/hplip/share/cups/drivers browseable = yes guest ok = no read only = yes write list = root |
Code Sample |
LogLevel info Port 631 Listen /opt/hplip/var/run/cups/cups.sock Browsing On BrowseAddress 192.168.1.255 <Location /> Order Deny,Allow Deny From None Allow From 192.168.1.* Allow From 127.0.0.1 </Location> <Location /admin> AuthType Basic AuthClass System Allow From 127.0.0.1 Order Deny,Allow Deny From All </Location> |
Code Sample |
$ sudo chown -R dsl /var/spool/samba $ chgrp -R staff /var/spool/samba $ chmod 777 /var/spool/samba $ cmod o+t /var/spool/samba |