Adding Postscript to non-Postscript printers under Solaris 2.5.1, 2.6., 2.7, using uniprint driver on Ghostscript: Clarence Wilkerson (02/14/99) Under 2.5.1 x86, I used exactly the approach of Alexander Panasyuk from http://cfauvcs5.harvard.edu/SetGSprinter4Solaris.html. It was very helpful. When I changed to Solaris 7 and a newer ghostscript (5.10), I decided to try to make an installation procedure that required no operator intervention to hand doctor files in /etc/lp and one that could be easily modified for new settings and printers. The .upp uniprint drivers of later ghostscript versions make this pretty painless. I've been partially successful in this. I've added a couple of files in /usr/lib/lp and the install procedure below propagates these to /etc/lp. To do it "right", one should perhaps be able to define a "upp" printer type that would take an option to specify the exact type. I'll leave that for the next hack. For now I have separate setups for medium resolution and high resolution printing on the Epson Stylus Color Pro. I include the details of the medium resolution below. Uuencoded versions are included at the end of this in case mail mangles the spacing or special symbols. A) In the /usr/lib/lp/model ( /etc/lp/model is a link to this ) I created a small variant of the "standard" file, called -r-xr-xr-x 2 lp lp 26376 Jan 2 15:44 gs-stc* with a link to -r-xr-xr-x 2 lp lp 26376 Jan 2 15:44 standard-ghost-stc The main change is add to add piping through /usr/lib/lp/postscript/ghost-stc in several spots. There may be more elegant ways of doing this. But this survives lpadmin -x stc and a reinstall. I believe I also turned off header pages. All the ghostscript content is rolled into /usr/lib/lp/postscript/ghost-stc : toor@purdue116>ls -la ghost-stc -rwxr-xr-x 1 lp lp 58 Jan 2 05:07 ghost-stc toor@purdue116>more ghost-stc #!/bin/sh /usr/local/bin/gs @stc.upp -q -sOutputFile=- - This is nice because there is a rather long list of command line options in /usr/local/share/ghostscript/5.10/stc.upp. Also the only change needed to switch to a different printer is replacing @stc.upp with a different .upp filename. stc.upp is a file distributed with ghostscript (in my case it wound up in /usr/local/share/ghostscript/5.10/stc.upp) : toor@purdue116> cat stc.upp -supModel="Epson Stylus Color I (and PRO Series), 360x360DpI, Plain Paper" -sDEVICE=uniprint -dNOPAUSE -dSAFER -dupColorModel=/DeviceCMYKgenerate -dupRendering=/FSCMYK32 -dupOutputFormat=/EscP2 -r360x360 ............................. ( and more about color corrections ) C) I have never been able to trick Admintool into setting up a printer where the input must be piped piping ghostscript. So here's the install script I use: #!/bin/sh echo "Setting up Epson Stylus Color Pro as Postscript printer stc on /dev/lp1 ." /usr/sbin/lpadmin -x stc /usr/sbin/lpadmin -p stc -v /dev/lp1 -o "stty=-opost" /usr/sbin/lpadmin -p stc -i /usr/lib/lp/model/gs-stc /usr/sbin/lpadmin -p stc -I postscript -T PS cd /etc/lp/fd for filter in *.fd; do name=`basename $filter .fd` echo "Adding filter " $filter "as " $name "." /usr/sbin/lpfilter -f $name -F $filter done /usr/sbin/accept stc /bin/enable stc /usr/sbin/lpadmin -p stc -D "Ghostscript to Epson Stylus Color Pro ESC2" /bin/lpstat -p stc On the first run, the lpadmin -x will report an error. C) After running this script as root, there are some new files and directories created under /etc/lp ( and of course some new in the spooling directories): 1) /etc/lp/printers/stc and some std. files within it. 2) /etc/lp/interfaces/stc -rwxrwxr-x 1 lp lp 26376 Jan 2 15:45 /etc/lp/interfaces/stc* is a copy of /usr/lib/lp/model/gs-stc -rwxrwxr-x 1 lp lp 26376 Jan 2 15:45 stc >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Uuendoded files: begin 664 model.standard.diff.stc M(R-D:69F65S(@HU,#5C-3`T+#4P-0H\ M(`D)"49)3%1%4CTB+W5STQ00T%4?2`P(@D)(R!I;F9I;FET M92!D96QA>7,*+2TM"CX@"0D)1DE,5$52/2(D>TQ00T%4?2`P('P@+W5SPH@(" @(" @,"XP,# P(# N,# S-" P+C Q.#4@,"XP,SPH@(" @(" @,"XP,# P(# N,# S-" P+C Q M.#4@,"XP,S6QU