<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FA printing shared printer win7, output Like .php or html or the paper]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4132&amp;type=atom" />
	<updated>2013-06-26T18:38:04Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4132</id>
		<entry>
			<title type="html"><![CDATA[Re: FA printing shared printer win7, output Like .php or html or the paper]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16897#p16897" />
			<content type="html"><![CDATA[<p>Probably your cups server is installed without lpd emulation, so you have to install cups-bsd package first. FA does not support cups protocol, only lpr/lpd. Also, you have to use some printing system like cups if your printer cannot print pdf files directly (probably this is the reason why your first approach failed).<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-06-26T18:38:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16897#p16897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FA printing shared printer win7, output Like .php or html or the paper]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16794#p16794" />
			<content type="html"><![CDATA[<p>HI,<br />FrontAccounting latest 2.3.16, installed on ubuntu-server 12.04 ip=192.168.1.101 <br />1- printer is shared with LPR/LPD service on some Win7 machine ip=192.168.1.148, I told to Frontaccounting that printer is on 192.168.1.148 port 515, because FA support lpd printer at the moment, When FA is printing invoice&nbsp; Quotation or Reports, the prints is strnage, some garpage raw text or some .php or html coding,<br /><a href="https://www.dropbox.com/sh/e8390d5gbqbolb9/Tihn1su5l-"> the images can be checked here</a><br />2- Next I installed cups on my ubuntu-server machine and added that shared printer via cups to my ubuntu machine, Now I can send print from command prompt from the same ubuntu-server machine like&nbsp; </p><div class="codebox"><pre><code> lp -d EPSON300 print.txt 
 lp -d EPSON300 Hi.pdf </code></pre></div><p> and the print is normal text print<br />Now here i told to frontaccounting that printer is on localhost, Now if I am sending print from frontaccounting via browser,I am getting error on tail -f /var/log/cups/error.log<br /></p><div class="codebox"><pre><code> +0300] Unable to encrypt connection from localhost - An unexpected TLS packet was received.</code></pre></div><p>my /etc/cups/cupd.conf<br /></p><div class="codebox"><pre><code>vi /etc/cups/cupsd.conf
root@srvr1-zbr-database:~# cat /etc/cups/cupsd.conf
LogLevel warn
MaxLogSize 0
#SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS dnssd
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
WebInterface Yes
&lt;Location /&gt;
  # Allow shared printing...
  Order allow,deny
  Allow  all
&lt;/Location&gt;
&lt;Location /admin&gt;
 Order allow,deny
 Allow all
&lt;/Location&gt;
&lt;Location /admin/conf&gt;
  AuthType Default
  Require user @SYSTEM
   &lt;/Location&gt;
&lt;Policy default&gt;
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  &lt;Limit Create-Job Print-Job Print-URI Validate-Job&gt;
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document&gt;
    Require user @OWNER @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices&gt;
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs&gt;
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit Cancel-Job CUPS-Authenticate-Job&gt;
    Require user @OWNER @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit All&gt;
    Order deny,allow
  &lt;/Limit&gt;
&lt;/Policy&gt;
&lt;Policy authenticated&gt;
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  &lt;Limit Create-Job Print-Job Print-URI Validate-Job&gt;
    AuthType Default
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document&gt;
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default&gt;
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs&gt;
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    Allow all
  &lt;/Limit&gt;
  &lt;Limit Cancel-Job CUPS-Authenticate-Job&gt;
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  &lt;/Limit&gt;
  &lt;Limit All&gt;
    Order deny,allow
  &lt;/Limit&gt;
&lt;/Policy&gt;</code></pre></div><p>Printer.conf<br /></p><div class="codebox"><pre><code>&lt;Printer EPSON300&gt;
UUID urn:uuid:5fb9a974-2b34-329e-53cc-695ae5948584
Info EPSON300
Location
MakeModel Epson LX-300+ Foomatic/ibmpro (recommended)
DeviceURI smb://192.168.1.148/EPSON300
State Idle
StateTime 1370533770
Type 8433668
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
&lt;/Printer&gt;
&lt;Printer PDF&gt;
UUID urn:uuid:39870712-4947-368b-7bd9-e4d5fc91f256
Info PDF
MakeModel Generic CUPS-PDF Printer
DeviceURI cups-pdf:/
State Idle
StateTime 1370478760
Type 8450124
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
&lt;/Printer&gt;</code></pre></div><p>yes, I am not an expert, Just a learner.<br />Help, Thanks.</p>]]></content>
			<author>
				<name><![CDATA[sarthor]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18004</uri>
			</author>
			<updated>2013-06-05T21:07:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16794#p16794</id>
		</entry>
</feed>
