Posibolt Printer Setup

From Posibolt Solutions Pvt Ltd
Jump to: navigation, search

Java Applet

Java Applet in Windows


These are the tested versions for Firefox and Java (jre -8).

Firefox Version Java Version Compactible OS
47.0.1 jre-8u77 Windows 10
47 jre-8u66 Windows 7, 8
46 jre-8u77 Windows 7, 8
43 jre-8u77 Windows 7, 8
41 jre-8u91 Windows 7, 8
40 jre-8u74 Windows 7, 8
40 jre-8u66 Windows 7, 8

Tested Version For Firefox and Java (jre- 7).

Firefox Version Java Version Compactible OS
46 jre-7u99 Windows 7, 8

Tested Version For Firefox and Java (jre-6).

Firefox Version Java Version Compactible OS
46 jre-6u45 Windows 7, 8
40 jre-6u45 Windows XP
  • Download and install any of these firefox version .
  • Download Java version compactible with firefox version from java archive downloads based on your system architecture(32/64 bit).
  • For confirming your system architecture, go to My Computer → Properties →System Type (32/64 bit).
  • You can use the below link for downloading java.

http://www.oracle.com/technetwork/java/archive-139210.html

  • Create an account and register for free. Then only you can download from this site.
  • Select the java version you needed,a list of jre files of the selected versions will be displayed.
Java Archive.png
Java Archive.png
  • Download the jre .exe file for windows.


  • From Downloads , right click the jre file and click on Run As Administrator from the menu .
Run as admin.png
Run as admin.png
  • Install java by clicking on Install . It may take few seconds.
  • After installing, click on Close.
  • Directly you get into the screen for verifying java , by clicking Verify Java Version.
Verify java.png
Verify java.png
  • After veryfying you want to activate java by clicking Activate Java.
Activate java.png
Activate java.png
  • Now Java Applet is activate on your system.
  • Sometimes after installation you won't get into the screen of verifying Java
  • In that case , you may need to active java applet using java applet test
  • You can use the below link for activating java applet;

https://www.java.com/en/download/installed.jsp.


  • After activating java applet, You want to copy java policy file from Program files →Java → Jre → lib → security → java policy file to desktop for editing.

[May be you didnt have permission to edit file from lib directory].

  • Remove the command marked in the below picture and save the file.
Remove command.png
Remove command.png

[ Need space between grant and open brace after removing command]

  • You should copy the same file and save to lib folder [Program files →Java → Jre → lib ].
  • Now go to control panel and select Java .
Control panel.png
Control panel.png
  • Click on Java , under Updates, untick the option check for updates automatically and click on Do Not Check.
Update.png
Update.png
  • Under security, enable the option High and click on Edit site list and there you can add the url of your posibolt instance in the format
    http:// periyar.posibolt.com/
  • If you are using jre 6 and jre 7 versions of java, you don't want to add the exceptional site.You can continue by skip this step.
Security.png
Security.png
  • Instead of domain name you can use ip address in the below format,
http:// 192.168.0.100.8088/
  • Click on continue and apply the changes by clicking on Apply.
  • For allow java permission, click on the iconshown in the left hand side of browser ,select the site and click on More Information.
Permission.png
Permission.png
Permission2.png
Permission2.png
  • Under permission, enable the option Allow for both java and java-vulnerable plugin.
Permission 3.png
Permission 3.png
  • Now you can Login to POSibolt. Go to Administration → Preference page.
    • Enable printing
    • Enable java applet.
Print.png
Print.png
  • After enable java applet, when you take print first time; a popup screen will be generated.Select the checkbox against the option Always allow this applet to access the printer and click OK
Print1.png
Print1.png
  • If the printer is still not detected in Posibolt after doing all these setup, the reason may be java is blocked by antivirus . For white list the site , you can follow the steps in below link;

https://www.hide-my-ip.com/firewall-config-mcafee.shtml


Java Applet In Linux


Recommended version for Firefox and Java

Firefox Version Java Version Compactible
40 jdk-6u45 yes

These are the tested versions for Firefox and Java (jdk -8).

Firefox Version Java Version Compactible
47 jdk-8u66 yes
46 jdk-8u77 yes
43 jdk-8u77 yes
41 jdk-8u91 yes
40 jdk-8u74 yes
40 jdk-8u66 yes

Tested Version For Firefox and Java (jdk- 7).

Firefox Version Java Version Compactible
46 jdk-7u99 yes

Tested Version For Firefox and Java (jdk-6).

Firefox Version Java Version Compactible
46 jdk-6u45 yes
  • Download and install any of these firefox version .
  • Please follow the steps in below links to install firefox

https://support.mozilla.org/en-US/kb/install-firefox-linux

http://www.tecmint.com/install-firefox-in-linux


  • Download Java version compactible with firefox version from Java Archive Downloads based on your system architecture.
  • For confirming you system architecture, Go to terminal

Enter uname -a; There you can check the system type(32 /64 bit)

  • You can use the below link for downloading Java from Java archive downloads

http://www.oracle.com/technetwork/java/archive-139210.html

  • Create an account and register for free. Then only you can download from this site.
  • Select the java version you needed,a list of jdk files for the selected versions will be displayed.
  • Enable the option Accept License Agreement and Download the corresponding jdk tar.gz file for linux based on your system type.
Java Archive.png
Java Archive.png

For Installing java, Go to terminal

  • Extract and Move the jdk file from downloads to opt folder .
tar -xvzf jdk**.tar.gz -C ~/ -[For eg:tar -xvzf jdk-7u80-linux-i586.tar.gz -C ~/]
mv ~/Downloads/jdk** /opt/
  • Modify the java policy file from security and save.

For moving and modify the java policy file from security ,you can use the following steps (Make sure that Use the jdk file name which you downloaded, here jre file name is for example)

cd ~/opt
cd  /jdk**/jre/lib/security/  -[For eg:cd  ~/jdk1.7.0_80/jre/lib/security/ ]
gedit java.policy

or
Go to Home  → Jdk folder → Jre → lib  → Security → java policy →  Open with gedit →  Edit the file → save


  • Modify the java.policy file by making the following changes
grant  {    
permission java.security.AllPermission;
};
Linux.png
Linux.png
  • Set Path for jdk
export PATH= ~/jdk **/bin:$PATH  - [For eg:export PATH= ~/jdk1.8.0_77/bin:$PATH]
  • Run java control panel.
jcontrol
  • Now You got the Java contol panel screen.

Note: If you are using the jdk-6 version, there is no option to add the exception site list . so please skip the below point and continue with next step.

  • Under security enable the option High and click on Edit site list and there you can add the posibolt urlin the format
    http:// ***.posibolt.com/
    or ip address without domain name.


Java linux.png
Java linux.png
  • Click on Ok and apply the changes by clicking on Apply.

For Enabling Mozilla Firefox Plugin



  • Create a directory called plugins if you do not have it. Type:

mkdir -p ~/.mozilla/plugins

  • Create a symbolic link. Type:

For 32 bit system:

ln -s ~/jdk **/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/ - [For eg:ln -s ~/jdk1.8.0_77/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/]

For 64 bit system:

ln -s ~/jdk **/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/ - [For eg:ln -s ~/jdk1.8.0_77/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/ ]

  • Restart your browser and test Java

Now restart your browser and test java using the below link;

https://www.java.com/en/download/installed.jsp

  • Here you want to verify java by click on Verify Java.
Verify java.png
Verify java.png

After verifying, activate java by click on Activate Java.

Activate java.png
Activate java.png

Note: Sometimes, when testing java for verification, it shows java is outdated or some other messages. It doesnt mean java is not activated. please follow the below step and continue.

  • Now go to browser menu,click on Add ons
  • Under plugins, For java plugin select always active from dropdown
Java plugin.png
Java plugin.png
  • For allow java permission, click on the icon shown in the left hand side of browser ,select the site and click on More Information.
Permission.png
Permission.png
Permission2.png
Permission2.png
  • Under permission, enable the option Allow for both java and java-vulnerable plugin.
Permission 3.png
Permission 3.png
  • Make your system's Firefox updation off by using these steps.
    • From the browser menu, click on Preferences or Options.
    • Choose Advanced from the left hand side menu
    • Under Update, enable the option Never check for updates


Printer Configuration:

Using Device Path (Recommended):

Note: Add printer using device path is not applicable for customized print format

  • Login to POSibolt. Go to Administration → Preference page.
    • Enable printing
    • Enable java applet.
Print.png
Print.png
  • To add the printer using device path, Enter the device path (path of device connected to your machine) in the respective print to device field.

eg: /dev/usb/lp0, /dev/lp0

Devpath.png
Devpath.png

Using System printer:

If the printer is configured in your machine,

  • Login to POSibolt. Go to Administration → Preference page.
    • Enable printing
    • Enable java applet.
  • Choose the printer from dropdown
  • Save
  • If you are using customized print format, Printer should be add as driver.

Firefox Auto Update Locking

  • Download this file Mozilla.cfg
  • Copy mozilla.cfg file from downloads to Firefox install directory(Mozilla Firefox)
  • Go to "Firefox_install_direcory(Mozilla Firefox) ->defaults ->pref"
  • Edit "channel-prefs" file
  • Add below line at the bottom of the file and save it
pref("general.config.filename", "mozilla.cfg");
  • Restart Firefox
  • To verify the firefox update is locked or not,Go to about:preferences#advanced from your browser, you can see that

Never check for updates option is enabled and all others are disabled and locked.

Options.png
Options.png
  • Also verify from browser Help -> About Firefox, there you can see the note Updates disabled by your system administrator.
About.png
About.png

Troubleshooting

  1. if java and firefox versions are configured successfully and it is not detected in posibolt preference page
  • Run java control panel
  • Under General tab
  • Click the view button under Temporary internet files
Java applet.png
Java applet.png
  • Delete all cache
Java applet1.png
Java applet1.png

Server Print

Linux(server) - Linux(client)


  • Connect the printer to POS client machine.
  • Install cups server (By default cups will be installed in all linux systems).
  • Open http://localhost:631/admin from POS client machine web browser . Or you can access using your system ip (eg. 192.168.0.**:631).
  • Under Administration Click on Add Printer.
Ad printr.png
Ad printr.png
  • It may ask user name and password. Give the username and password of the root.
  • Select Your Printer from Local Printers and click Continue.
Linux 3.png
Linux 3.png
  • Give any name for printer.
  • Tick Share This Printer and click Continue.
Linux 4.png
Linux 4.png
  • Select Raw from the list and click Continue.
Linux 5.png
Linux 5.png
  • Select Raw Queue (en) and Click on Add Printer.
Linux 6.png
Linux 6.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • Click on Printer Name.
Linux 8.png
Linux 8.png
  • Select Test Print from maintenance page to confirm that printer is configured successfully.

Now We Need To Configure This Shared Printer In CUPS Server On Posibolt Server :-


  • Open http://localhost:631/admin from posibolt server web browser. It may ask user name and password. Give the username and password of the root.
  • Under Add Printer, Select Internet Printing Protocol (http) and Click Continue.
Linux 10.png
Linux 10.png
  • Give your POS client printer details in below format and click Continue.
  • http:POS_Client_IP:631/printers/printer_name
  • eg: http ://192.168.1.128:631/printers/POS1
Linux 11.png
Linux 11.png
  • Give any name for printer and click Continue.
Sharedname.png
Sharedname.png
  • Select Raw from the list and click Continue.
  • Select Raw Queue (en) and Click on Add Printer.
  • Click on Set Default Options.
  • Click on Printer Name.
  • Under Maintenance click on Test print and make confirm that printer is configured successfully.
  • Open Posibolt from POS client machine and change preference.
Preferences.png
Preferences.png
  • For enabling cash drawer , make the option Enable Cash Drawer as yes.

Note: The name given for printer in sever is listed under the tab of SERVER PRINT in POSibolt preferences page.

Linux(server) - Windows(client)


Note: Before add a shared printer in server make sure that you have set following changes in remote machine with pre-configured printer .

Printer Sharing:

  • Go to Printer Properties.
Windows 7.png
Windows 7.png
  • Under sharing, tick the option Share this printer.
  • Give a name for printer in the Share Name field.
Share.png
Share.png
  • Click Ok.

To Turn Off Password protected Sharing:

  • Go to Control Panel and select Network & sharing center.
  • Click on Change Advance Sharing settings.
  • Enable the option Turn Off Password Protected Sharing.
Turn off.png
Turn off.png
  • Enable the option Turn On File And printer Sharing.
Turn on.png
Turn on.png

Now We need to configure this shared printer in posibolt server .


For this do the below steps:

  • Open http://localhost:631/admin from Posibolt server web browser. It may ask user name and password. Give the username and password of the root.
  • Under administration, Click on Add Printer.
Ad printr.png
Ad printr.png
  • Select Windows Printer via SAMBA and click Continue.
Samba.png
Samba.png
  • Give your windows printer details in below format and click Continue.

smb://Windows _System_IP_Address/PrinterName

eg : smb://10.8.0.80/EPSON

  • Give any name for printer and click Continue.
Sharedname.png
Sharedname.png
  • Select Raw from the list and click Continue.
Linux 5.png
Linux 5.png
  • Select Raw Queue (en) and Click on Add Printer.
Linux 6.png
Linux 6.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • Click on Printer Name.
Linux 8.png
Linux 8.png
  • Select Print Test Page from Maintenance drop down list.
Test print.png
Test print.png
  • Now you would get test print out in windows machine.
  • Open Posibolt in Windows machine and change preference .
Preferences.png
Preferences.png
  • For enabling cash drawer , make the option Enable Cash Drawer as yes.

Windows(server)- Linux(client)


  • Connect the printer to POS client machine.
  • Install cups server (By default cups will be installed in all linux systems).
  • Open http://localhost:631/admin from POS client machine web browser . Or you can access using your system ip (eg. 192.168.0.**:631).
  • Under Administration Click on Add Printer.
Ad printr.png
Ad printr.png
  • It may ask user name and password. Give the username and password of the root.
  • Select Your Printer from Local Printers and click Continue.
Linux 3.png
Linux 3.png
  • Give any name for printer.
  • Tick Share This Printer and click Continue.
Linux 4.png
Linux 4.png
  • Select Raw from the list and click Continue.
Linux 5.png
Linux 5.png
  • Select Raw Queue (en) and Click on Add Printer.
Linux 6.png
Linux 6.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • Click on Printer Name.
Linux 8.png
Linux 8.png

Now we need to configure this shared printer Posibolt server in Windows:


For this,

  • Go to Control panel and select Devices and Printers
  • Click on Add a printer
  • Click on Add a Network, wireless or Bluetooth
Windows.png
Windows.png
  • In that screen click on the option Printer that I wasn't listed
Windows 2.png
Windows 2.png
  • Enable the option select a shared printer by name and enter the printer name in the format http /192.168.0.*:631/printers/printer name , and click Next
Windows 3.png
Windows 3.png
  • A screen with list of printers will be displayed,Select the printer manufacturer name and model of printer which you connected in client machine

[You can select the driver after configuration also]

Windows 4.png
Windows 4.png
  • click OK and Next to Finish
Windows 5.png
Windows 5.png
Windows 6.png
Windows 6.png
  • Then you can see the configured printer in Devices and Printers.
Windows 7.png
Windows 7.png
  • For selecting Driver
    • Go To Printer Properties
    • Under option Advanced , you can select the driver and click on Apply
Windows 8.png
Windows 8.png
  • For test print Go to option General
  • Now open Posibolt from client machine and change preferences ,Then you can see the shared printer name under server print.
Preferences.png
Preferences.png
  • For enabling cash drawer , make the option Enable Cash Drawer as yes.

Server print (With Drivers)

Linux(server) - Linux(client)


  • Install printer driver in both client and server machines.
  • Connect the printer to POS client machine.
  • Install cups server (By default cups will be installed in all linux systems).
  • Open http://localhost:631/admin from POS client machine web browser . Or you can access using your system ip (eg. 192.168.0.**:631).
  • Under Administration Click on Add Printer.
Ad printr.png
Ad printr.png
  • It may ask user name and password. Give the username and password of the root.
  • Select the Printer installed from Local Printers and click Continue.
Add print.png
Add print.png
  • Give any name for printer(Without special characters)
  • Tick Share This Printer and click Continue.
Add p.png
Add p.png
  • Select the manufacturer of printer from the list and click Continue.
Add 3.png
Add 3.png
  • Select the model of printer from the list and click Add Printer.
Add 4.png
Add 4.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • For Cash Drawer control setup,

Click on Cash Drawer Control , select the options as your preference and click on Set Default Options.

Cash drawer setup.png
Cash drawer setup.png
Cash Drawer : Which Cash Drawer want to be open( Eg: Open Drawer 1, Open Drawer 2 etc)
Cash Drawer Open : When cash drawer want to be opened (eg:After Printing, Before Printing etc.)
Cash Drawer 1 Pulse Width : Select the time seconds for opening the cash drawer 1
Cash Drawer 2 Pulse width : Select the time seconds for opening the cash drawer 2
  • Click on Printer Name.
Pn.png
Pn.png
  • Click Test Print from maintenance to confirm that printer is configured successfully.

Now We Need To Configure This Shared Printer In CUPS Server On Posibolt Server :-


  • Open http://localhost:631/admin from posibolt server web browser. It may ask user name and password. Give the username and password of the root.
  • Under Add Printer, Select Internet Printing Protocol (http) and Click Continue.
Linux 10.png
Linux 10.png
  • Give your POS client printer details in below format and click Continue.
  • http:POS_Client_IP:631/printers/printer_name
  • eg: http ://192.168.1.128:631/printers/POS1
Connection name.png
Connection name.png
  • Give any name for printer and click Continue.
Shared printer.png
Shared printer.png
  • Select printer model from the list and click Add Printer.(printer driver want to be installed,then only it shows the manufacturer name and model)
Add 4.png
Add 4.png
  • Click on Set Default Options.
  • For Cash Drawer setup,click on Cash Drawer Control and select the options as your preference.
  • Click on Printer Name.
  • Under Maintenance click on Test print and make confirm that printer is configured successfully.
  • Open Posibolt from POS client machine and change preference.
Cash drawer.png
Cash drawer.png

Note: The name given for printer in sever is listed under the tab of SERVER PRINT in POSibolt preferences page.

Linux(server)- Windows (Client)


Note: Before add a shared printer in server make sure that you have set following changes in remote machine with pre-configured printer .

Printer Sharing:

  • Go to Printer Properties.
Windows 7.png
Windows 7.png
  • Under sharing, tick the option Share this printer.
  • Give a name for printer in the Share Name field.
Share.png
Share.png
  • Click Ok.

To Turn Off Password protected Sharing:

  • Go to Control Panel and select Network & sharing center.
  • Click on Change Advance Sharing settings.
  • Enable the option Turn Off Password Protected Sharing.
Turn off.png
Turn off.png
  • Enable the option Turn On File And printer Sharing.
Turn on.png
Turn on.png

Now We need to configure this shared printer in posibolt server .


For this do the below steps:

  • Open http://localhost:631/admin from Posibolt server web browser. It may ask user name and password. Give the username and password of the root.
  • Under administration, Click on Add Printer.
Ad printr.png
Ad printr.png
  • Select Windows Printer via SAMBA and click Continue.
Samba.png
Samba.png
  • Give your windows printer details in below format and click Continue.

smb://Windows _System_IP_Address/PrinterName

eg : smb://10.8.0.80/EPSON

Printer connection.png
Printer connection.png
  • Give any name for printer and click Continue.
Sharedname.png
Sharedname.png
  • Select manufacture name of printer from the list and click Continue.
Manufacture name.png
Manufacture name.png
  • Select the model of printer and Click on Add Printer.
Driver name.png
Driver name.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • Click on Printer Name.
Pn.png
Pn.png
  • Select Print Test Page from Maintenance drop down list.
Test print.png
Test print.png
  • Now you would get test print out in windows machine.
  • Open Posibolt in Windows machine and change preference .
Cash drawer.png
Cash drawer.png

Windows(server)- Linux(client)


  • Connect the printer to POS client machine.
  • Install printer driver.
  • Install cups server (By default cups will be installed in all linux systems).
  • Open http://localhost:631/admin from POS client machine web browser . Or you can access using your system ip (eg. 192.168.0.**:631).
  • Under Administration Click on Add Printer.
Ad printr.png
Ad printr.png
  • It may ask user name and password. Give the username and password of the root.
  • Select Your Printer from Local Printers and click Continue.
W1.png
W1.png
  • Give any name and description for printer.
  • Tick Share This Printer and click Continue.
W2.png
W2.png
  • Select modelof printer from the list and click Continue.
Print with drive.png
Print with drive.png
  • Click on Set Default Options.
Set default.png
Set default.png
  • Click on Printer Name.
W3.png
W3.png

Now we need to configure this shared printer Posibolt server in Windows:


For this,

  • Go to Control panel and select Devices and Printers
  • Click on Add a printer
  • Click on Add a Network, wireless or Bluetooth
Windows.png
Windows.png
  • In that screen click on the option Printer that I wasn't listed
Windows 2.png
Windows 2.png
  • Enable the option select a shared printer by name and enter the printer name in the format http /192.168.0.*:631/printers/printer name , and click Next
Windows 3.png
Windows 3.png
  • A screen with list of printers will be displayed,Select the printer manufacturer name and model of printer which you connected in client machine

[You can select the driver after configuration also]

Windows 4.png
Windows 4.png
  • click OK and Next to Finish
Windows 5.png
Windows 5.png
Windows 6.png
Windows 6.png
  • Then you can see the configured printer in Devices and Printers.
Windows 7.png
Windows 7.png
  • For selecting Driver
    • Go To Printer Properties
    • Under option Advanced , you can select the driver and click on Apply
Windows 8.png
Windows 8.png
  • For test print Go to option General
  • Now open Posibolt from client machine and change preferences ,Then you can see the shared printer name under server print.
Cash drawer.png
Cash drawer.png

Download Print