Personal tools
You are here: Home / OSCAR Users / EMR and Case Management Resources / eForms / eForms in development/beta testing / Useful Code / Secure printing for Oscar from Android devices
Navigation
 

Secure printing for Oscar from Android devices

On 13-04-24 09:09 PM, Darius Opensource wrote: > Quoting Dr Klein below. > > > Google CloudPrint works very well for Android devices. By using it you would of course be trusting Google to handle your confidential printouts... > > That uncertainity led me to develop an alternative, tentatively named Oscar LocalPrint. To test this proof of concept the following is required: > > A. An Ubuntu workstation with shared printers. (Ubuntu is the most familiar to Oscar users but any flavour of Linux will do) > > B. One or more Android devices as desired. C. Firefox on Android. > > D. Oscar LocalPrint (as opposed to Gioogle CloudPrint) , an extension for Firefox for Android. The attached file, OscarLocalPrint.zip.xpi, is it. > > > > 1. To allow the Ubuntu workstation and the Android devices to communicate securely, the following needs to be added to /etc/cups/cupsd.conf > > DefaultEncryption Required > ServerCertificate /etc/cups/ssl/server.crt > ServerKey /etc/cups/ssl/server.key > > , and to allow Android devices on the local network to access the shared printers, do the following: > > Find the following entry in cupsd.conf: > > <Location /> Order allow,deny </Location> > > Add the following between <Location /> and </Location > > > Allow from 192.168.* > > , so the edited entry is as follows: > > <Location /> Order allow,deny Allow from 192.168.* </Location> > > > 2. To install the extension in Firefox for Android, tap the link to OscarLocalPrint.zip.xpi while in Firefox on Android. OscarLocalPrint.zip.xpi is essentially a zip archive renamed. It contains two files, bootstrap.js and install.rdf, both which are also included as seperate attachments. Since the CUPS printing system is using self signed certificates, Firefox for Android on each Android devices needs to told to accept the self signed certificates. To do so, do the following: > > Suppose the name of the Ubuntu workstation on the network is UbuntuOne, then open the following link in Firefox for Android. > > https://UbuntuOne:631/ or use its IP address, e.g. > https://192.168.0.2:631/ > > Firefox will offer the choice refusing or accepting the self signed certificates. Accept and add an exception for the certificates. This is necessary for the Oscar LocalPrint extension to securely connect to the Ubuntu workstation. > > 3. Once the extension is installed, navigate to the Rx page of a test patient and click 'Save and Print', enter the name or the address of the Ubuntu workstation in the 'Print Server' field and enter the printer name in the 'Printer' field and click 'Send to Printer' Both 'Print Server' and 'Printer' entries will be saved for reuse. > > Feedback always welcome. > > Darius. > > P.S. > OscarLocalPrint.user.js is the desktop version of Oscar LocalPrint, a Greasemonkey script, for troubleshooting. >

Document Actions

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

eForms button

DOWNLOAD SHARED E-FORMS


 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

Subscribe Button

SUBSCRIBE TO DISCUSSION LIST 
(SEE ALL LISTS)

  

Help button

ACCESS THE ONLINE MANUALS
(PAID SUPPORT)