I am going to guess that the problem you are running into is (at least 
in part) due to an incompatiblity between the foomatic-rip that LP is 
using and the current hpijs.  You might try modifying the interface 
script for your queue (/etc/lp/interfaces/{queue-name}) so that it uses 
/usr/lib/cups/filter/foomatic-rip-hplip in place of foomatic-rip.  You 
also need the SAMBA bits to print to a Windows hosted printer.  To add 
the SAMBA bits:

    # pkg install SUNWsmba

Another alternative would be to use CUPS as your primary print system 
and configure the queue under it.  To so do you will need to do the 
following:

install CUPS and SAMBA

    # pkg install SUNWcups SUNWsmba

install a missing link

    # ln -s ../../../sfw/bin/smbspool /usr/lib/cups/backend/smb

Make CUPS the "active" print service

    # print-service -s cups

make sure that you have a line with

    "cups    account    required    pam_unix_account.so.1"

in /etc/pam.conf

Create the queue

    % gnome-open http://localhost:631/admin
    (use the data you provided to create the queue.)
    Depending on the Windows system hosting the printer, you might also
    try using http://windows-server:631/printers/printer as the device-uri.

-Norm

Vano Beridze wrote:
> First I wanted to use new print manager that is written using GTK but could 
> not find a way to add smb printer.
>
> Then I used Old Java-based Print Manager and was able to add printer but 
> printing still does not work.
>
> What I did step by step:
>
> 1. Opened terminal
> 2. Ran the command pfexec printmgr.
> 3. Program started and I pressed OK in the little popup dialog
> 4. Invoked Printer | New Network Printer
> 5. Printer name: Local
>     Printer make: HP
>     Printer model: HP Color Laser Jet 3500 Foomatic/hpijs
>     Printer driver: SUNWhpijs(S): , hpijs 2.8.7.3
>     Fault notification: Write to Superuser
>     Destination: smb://user:password at domain/server/printer
>
> Here I used real values instead of user,password,domain,server and printer
>
> And pressed OK
>
> Here is the log of what was executed after this action:
> % /usr/sbin/lpadmin -p Local -s localhost -v /dev/null -m 
> netstandard_foomatic -A write -n 
> /usr/share/ppd/SUNWhpijs/HP/hp-color_laserjet_3500-hpijs.ppd.gz -o 
> dest=smb://user:password at domain/server/printer -o protocol=bsd -o 
> banner=always -I postscript -u allow:all
> % /usr/bin/enable Local
> % /usr/sbin/accept Local
>
> But I can't print.
>   


Reply via email to