LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2013, 06:24 PM   #1
sarthor
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Rep: Reputation: 1
FA printing shared printer win7, output Like .php or html or the paper


HI,
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:
 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:
 +0300] Unable to encrypt connection from localhost - An unexpected TLS packet was received.
my /etc/cups/cupd.conf
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
<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:
<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>
yes, I am not an expert, Just a learner.
Help, Thanks.

Last edited by sarthor; 06-06-2013 at 10:59 PM.
 
Old 06-07-2013, 07:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your images are a bit blurry and difficult to read but it looks like raw postscript or PDF data vs PHP or HTML.

FrontAccounting only supports the lpd protocol which needs to be configured in cups. Which is why you can print normally via lp command.

Once configured you should be able to print to localhost port 515 from FA and select the windows printer via SMB.

You most likely will need to install xinetd.

http://frontaccounting.com/fawiki/in...ons?setlang=fr

http://www.cups.org/documentation.php/man-cups-lpd.html
http://manpages.ubuntu.com/manpages/...ups-lpd.8.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS question - printer will not restart printing after running out of paper - WHY? Stephanie Seney Linux - General 10 02-24-2014 02:15 PM
[SOLVED] Problems printing to Win7 attached printer - Worked one day then stopped. jlavik Linux - Newbie 4 10-14-2010 08:28 AM
Printing to XP Shared printer with FC-5 mirwin Linux - Hardware 4 08-25-2006 06:46 PM
Printing to a shared XP printer nyumedic2000 Linux - Newbie 1 05-17-2005 09:46 PM
Installed new printer, and color printing soaks the paper with ink. mikeyt_333 Linux - Hardware 9 04-16-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration