Difference between revisions of "PDF Printer"

From Amahi Wiki
Jump to: navigation, search
Line 24: Line 24:
  
 
== Configure Web Interface ==
 
== Configure Web Interface ==
You will need desktop access to your HDA.
+
* Desktop access to your HDA.
* Access the web interface via <nowiki>http://localhost:631</nowiki>
+
** Access the web interface via <nowiki>http://localhost:631</nowiki>
* Select Administration and enter your First Admin User name and password.
+
** Select Administration and enter your First Admin User name and password.
* Under "Server Settings" check the box that says "Allow remote administration"
+
** Under "Server Settings" check the box that says "Allow remote administration"
 +
* SSH access to your HDA.
 +
** Stop the service:
 +
<blockquote><blockquote>{{Code|sudo service cups stop}}</blockquote></blockquote>
 +
<ul>
 +
<ul>
 +
<li>Edit /etc/cups/cupsd.conf and make changes as follows:</li>
 +
<ul>
 +
<li>Change <code>Listen localhost:631</code> to <code>Port 631</code></li>
 +
<li>Add <code>  Allow @LOCAL</code> above the 3 occurrences of <code></Location></code></li>
 +
</ul>
 +
</ul>
 +
<ul>
 +
<li>Start the service:</li>
 +
{{Code|sudo service cups start}}
 +
</ul>
 +
 
 
Now you can remotely access the web interface from any client using <nowiki>http://hdaip:631</nowiki> (hdaip is the IP address of your HDA).
 
Now you can remotely access the web interface from any client using <nowiki>http://hdaip:631</nowiki> (hdaip is the IP address of your HDA).
  

Revision as of 16:14, 4 August 2012

Msgbox-WOPr.png Work In Progress
This article is currently undergoing major expansion or restructuring. You are welcome to assist by editing it as well. If this article has not been edited in several days, please remove this template.


The tutorial will show you how to add a PDF printer to your HDA using CUPS. You can connect to it with clients and generate PDF files that will be saved on your HDA. These will be available via an Amahi file share from any client.

We will also configure the web interface to allow remote administration of printers securely via the web browser.

Install PDF Printer

bash code
​sudo apt-get install cups-pdf​


Secure CUPS Web Interface

This will add a user name and password to the administration section of the web interface.

  • Stop the service:
bash code
​sudo stop cups​
  • Edit the configuration file:
bash code
​sudo vi /etc/cups/cupsd.conf​
  • Add the following text below <Location /admin>:
Text
​Encryption Required AuthType Default Require user @SYSTEM​
  • Save the file.
  • Start the service:
bash code
​sudo start cups​


Configure Web Interface

  • Desktop access to your HDA.
    • Access the web interface via http://localhost:631
    • Select Administration and enter your First Admin User name and password.
    • Under "Server Settings" check the box that says "Allow remote administration"
  • SSH access to your HDA.
    • Stop the service:
bash code
​sudo service cups stop​
    • Edit /etc/cups/cupsd.conf and make changes as follows:
      • Change Listen localhost:631 to Port 631
      • Add Allow @LOCAL above the 3 occurrences of </Location>
    • Start the service:
    • bash code
      ​sudo service cups start​

    Now you can remotely access the web interface from any client using http://hdaip:631 (hdaip is the IP address of your HDA).

    Add PDF Printer to Client

    This is a fairly easy step for Windows.

    • Access your shares via \\hda
    • Right click on the PDF printer and select "Connect".
    • You should see the PDF printer now.

    Printer3.PNG

    • Right click on the printer and select connect. Answer Yes to install when it prompts to install the printer.
    • Now, it won’t find the drivers, so select OK as we will install the drivers from the printer disk.

    Printer4.PNG

    • You should now see the add printer wizard.
    • Select "Generic" and "MS Publisher Color Printer" or similar driver that is not text only and then OK.

    Your PDF printer should now be ready to use.