Differences between revisions 16 and 18 (spanning 2 versions)
Revision 16 as of 2020-02-14 03:03:56
Size: 4555
Editor: sam
Comment:
Revision 18 as of 2020-03-02 21:55:59
Size: 3933
Editor: sam
Comment:
Deletions are marked like this. Additions are marked like this.
Line 84: Line 84:
=== On the client side: === === On the client side for MAC: ===
Line 86: Line 86:

http://customers.crecom.com.au/winprint/jre-8u171-windows-i586.exe <-for windows
Line 96: Line 94:
Unzip the crecomps.zip into c:\crecomps\ <-for windows
Line 99: Line 96:
Open a command promnt "cmd". cd into c:\crecomps .
Line 102: Line 97:
Run the install.bat file. <-for windows
Line 105: Line 99:
It may open some text windows and close with no errors. Windows security might ask you if you are sure you want to run this, say "yes". Check the logs under c:\crecomps\logs . You should not see any obvious errors.

Run the crecompsw.exe program. Go to the startup tab and look under arguments <- for windows
Check the logs under c:\crecomps\logs . You should not see any obvious errors.
Line 122: Line 114:
Go back to the General tab and set startup type to "Automatic". Click "start" and "Apply". This should allow the program to automatically start up when you reboot the computer.

Go to "devices and printers" under Control Panel. Right click on your A4 printer and go to Printer Properties -> Advanced -> Printing Defaults. Choose "2 Sided" printing and click Apply.
Line 133: Line 121:

to set up two sided printer.

Go to "devices and printers" under Control Panel. Right click on your A4 printer and go to Printer Properties -> Advanced -> Printing Defaults. Choose "2 Sided" printing and click Apply.

On the server side:

If the web server has been set up for Guacamole, In the file /etc/httpd/conf/httpd.conf, add the lines between the gray bars

<VirtualHost *:80>
    ServerName examplehost.crecom.com.au


    Alias /printers /var/www/html/printers
    <Directory /var/www/html/printers>
        Options Indexes FollowSymLinks MultiViews ExecCGI
        AllowOverride Options
        Order allow,deny
        Allow from all
    </Directory>
    ProxyPassMatch ^/printers !


    Proxypass / http://localhost:8080/guacamole/
    ProxyPassReverse / http://localhost:8080/guacamole/

    ErrorLog logs/guacamole.log
    CustomLog logs/guacamole-access.log combined
</VirtualHost>
<VirtualHost *:80>

Uncomment the following line:

AddHandler cgi-script .cgi

Add the following line just after "DocumentRoot"

SetEnv LD_LIBRARY_PATH lib:/usr/lib:/u/ccr.15/lib

Add apache to the "control" group (in /etc/group)

control:3232:apache

Create the following directoriy /var/www/html/printers/

And copy 2 files from sam

/u/ccdev/std/internet/cgi/deviceservice.cgi
/u/ccdev/std/binl/printer

Important: make sure you set the above 2 files to be executable and never use binx11 printer executable

Add a new file .htaccess containing the following:

Options -Indexes

run prnaad and for the "System printer name" you have to specify a directory (start and end with slash). To make things less messy, put them in a subdirectory containing all the printers:

/printers/docket/
/printers/laser/
/printers/label/

Make sure /u/cc is a symbolic link to /cc

ln -s /u/cc /cc

Restart apache:

service httpd restart

Program should automatically create them (below your $CCDIR). If it does not, then you may have to do it yourself.

If this is for a company with many locations, or a server with multiple companies, it might be a good idea to place these under the company directory (and maybe with individual directories for locations).

Once the above is all set, proceed to setting up the client.

On the client side for MAC:

Download 2 files:

http://customers.crecom.com.au/winprint/jre-10.0.2_osx-x64_bin.dmg <-for mac

http://customers.crecom.com.au/winprint/crecomps.zip

Run the jre-installer, follow all the defaults.

Unzip the crecomps.zip into /Library/crecomps/   <-for mac

Run the install.sh file.    <-for mac

Check the logs under c:\crecomps\logs . You should not see any obvious errors.

sudo vi /Library/crecomps/start.sh. Leave everything as is but modify the arguments as follows: (this is last step) <-for mac

start&URL=<URL>&SECS=<INTERVAL>&CENV=<CCDIR>&CP_<CREPRINTERx>=<WINPRINTERNAME>&CP_<CREPRINTERx>=nexa

Where:

  • <URL> is in the format http://drboom.crecom.com.au/printers/deviceservice.cgi

  • <INTERVAL>is number of seconds between checking for new jobs. 5 seconds seem ok, If server and client can take it, you can go as low as 1 second

  • <CCDIR> is their CCDIR like /u/cc/

  • <CREPRINTERx> is the Control short printer name (the ones you set up in prnaad on the server). x is 1 to 3

  • <WINPRINTERNAME> is the corresponding windows printer name

Restart the computer and check if the service auto started

Important note for Linux or Mac:

make sure the printer is "shared to network" or java may not see the printer.

Important note for Window:

java do not see any printer that is shared from other computer, it has to have direct connection.

to set up two sided printer.

Go to "devices and printers" under Control Panel. Right click on your A4 printer and go to Printer Properties -> Advanced -> Printing Defaults. Choose "2 Sided" printing and click Apply.

Installing_java_printing (last edited 2025-11-23 23:52:02 by JonCo)