Difference between revisions of "Cups"

From Amahi Wiki
Jump to: navigation, search
Line 60: Line 60:
 
</pre>
 
</pre>
 
=== Restart httpd ===
 
=== Restart httpd ===
     service httpd restart
+
     systemctl restart httpd.service
 +
 
 
=== Testing ===
 
=== Testing ===
 
Go to a system on your network, and try going to http://cups
 
Go to a system on your network, and try going to http://cups

Revision as of 02:43, 29 January 2014

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.

This will add the cups printing system to a existing hda installation.

Initial system setup

Check to see if cups is installed already. It quite often is if you installed Gnome or any other programs that might have printer support.

   su -
   rpm -qa |grep cups

If you see cups, then you don't need the next line.

   yum -y install cups

Configure cups for remote access

Install links for local access to the cups configuration website, or use whatever web browser you have if you have X installed.

   yum -y install links

Navigate to the Links configuration page

Quick cheatsheet for links:
Left and Right arrows go forward and backward on pages.
Up and Down arrows move from one link to another
SpaceBar goes down 1 page.
Enter is the same as clicking a link, or puts a check in a box.
   links http://localhost:631

Once in links

  1. Hit down arrow until on "Administration" then hit enter
  2. Hit down until the checkbox next to Allow Remote Administration is highlit, then press enter
  3. Hit down until "Save Changes" is highlit, and press enter
  4. Press q to exit after changes are saved.

Creating the webapp

  1. Open the HDA Webapps configuration page http://hda/setup?sub=webapps&tab=app
  2. Create a new webapp named cups

Creating the Webapp Redirect

   su -
   nano /etc/httpd/conf.d/*cups.conf

Go down to line 5, and add this:

   ProxyPass / http://localhost:631/
   ProxyPassReverse / http://localhost:631/

Press CTRL+X to exit and save.

It should look like this


 <VirtualHost *:80>
      
              ServerName cups
              ServerAlias cups.yourdomain.net
      
      
      
              ProxyPass / http://localhost:631/
              ProxyPassReverse / http://localhost:631/
     
              DocumentRoot /var/hda/web-apps/cups/html
     
              <Directory "/var/hda/web-apps/cups/html">
              Options Indexes FollowSymLinks MultiViews
              AllowOverride AuthConfig
              Require all granted
     
              </Directory>
     
              ErrorLog  /var/hda/web-apps/cups/logs/error_log
              CustomLog /var/hda/web-apps/cups/logs/access_log combined env=!d
     
      </VirtualHost>

Restart httpd

   systemctl restart httpd.service

Testing

Go to a system on your network, and try going to http://cups