Changes

From Amahi Wiki
Jump to: navigation, search
981 bytes added ,  01:07, 25 March 2016
no edit summary
{{NeedsUpdate}}<br />The [http://www.amahi.org/apps/cups CUPS] web application is currently in Testing for Amahi 7 or greater. This guide is incomplete, but when finished will add allow manual adding the cups printing system to a existing hda 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.
SpaceBar goes down 1 page.
Enter is the same as clicking a link, or puts a check in a box.
links <nowiki>http://localhost:631</nowiki> 
=== Once in links ===
#Hit down arrow until on "Administration" then hit enter
#Hit down until the checkbox next to Allow Remote Administration is highlit, then press enter
#Hit down until "Save Changes" or "change settings" is highlithighlighted, and press enter#When asked for username and password use "root" and "yourownHDApassword" which was set while installing your hda. It seems that only user "root" save changes.
#Press q to exit after changes are saved.
 
=== Creating the webapp ===
#Go to the apps on the dashboard and install Webapps if not installed already#Open the HDA Webapps configuration page http://hda/setup?sub=webapps&tab=app
#Create a new webapp named cups
 
=== Creating the Webapp Redirect ===
Edit the config-file using a editor like "nano". Perhaps you have to install it first:
su -
yum -y install nano
Now you can edit cups
su -
nano /etc/httpd/conf.d/*cups.conf
Go down to line 5, and add this:
ProxyPass / <nowiki>http://localhost:631/</nowiki> ProxyPassReverse / <nowiki>http://localhost:631/</nowiki>
Press CTRL+X to exit and save.
 
== It should look like this ==
<br/>
<pre> <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></pre>=== Restart httpd ===check that /var/hda/web-apps/cups/logs exists and is owned by apache:usersThen restart httpd.
ServerName cups ServerAlias cups systemctl restart httpd.sabatech.comservice
ProxyPass / === Testing ===Go to a system on your network, and try going to <nowiki>http://localhost:631/ ProxyPassReverse / http:cups<//localhost:631nowiki>
   DocumentRoot /var/hda/If you have problems connecting to the CUPS web-apps/cups/html  <Directory "/var/hda/web-apps/cups/html"> Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script UI, it may be because your DNS Server is not set correctly.fcgTry using IP address in your browser: AllowOverride AuthConfig Order allow,deny Allow from all  </Directorynowiki ErrorLog http:/var/hda/web-apps/cups/logs/error_log CustomLog /var/hda/web-apps/cups/logs/access_log combined env=!dontlog  IP_ADDRESS:631</VirtualHostnowiki>=== Restart httpd === service httpd restart=== Testing ===Go to a system on (replace IP_ADDRESS with your network, and try going to http://cupsHDA IP address)
12,424

edits