shared Printer/Printing problem using Frontaccounting

Discussion regarding the installation and configuration of Linux distributions.

shared Printer/Printing problem using Frontaccounting

Postby sarthor » Fri Jun 07, 2013 4:28 am

Salam o Alykum,
FrontAccounting latest 2.3.16, installed on ubuntu-server 12.04 ip=192.168.1.101
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 Quotation or Reports, the prints is strnage, some garpage raw text or some .php or html coding,
the images can be checked here
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

Code: Select all

 lp -d EPSON300 print.txt
 lp -d EPSON300 Hi.pdf
and the print is normal text print
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

Code: Select all

 +0300] Unable to encrypt connection from localhost - An unexpected TLS packet was received.


my /etc/cups/cupd.conf

Code: Select all

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
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow  all
</Location>
<Location /admin>
 Order allow,deny
 Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
   </Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <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>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <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>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    Allow all
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

Printer.conf

Code: Select all

<Printer EPSON300>
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
</Printer>
<Printer PDF>
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
</Printer>


Thanks.
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
sarthor
Battalion Quarter Master Havaldaar
 
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
ICQ: 163419827
Website: http://amazai.net
WLM: sarthor@hotmail.com
Yahoo Messenger: baidaraka@yahoo.com
Location: Pukhtoonistan

Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron