SOLVED: adding a printer to Amahi7 with Fedora 19

RobRoss
Posts: 15
Joined: Wed Apr 06, 2011 10:08 am

SOLVED: adding a printer to Amahi7 with Fedora 19

Postby RobRoss » Wed Nov 27, 2013 12:40 pm

i installed fedora and Amahi7 using the directions for the 32bit installation. This install does not use a gui, so i am at a loss on how to configure my printer to the HDA box.

any ideas?

Ii would like to have the printer connected to the HDA and be able to access it from any other PC on the LAN.

Rob

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: adding a printer to Amahi7 with Fedora 19

Postby bigfoot65 » Wed Nov 27, 2013 2:47 pm

Try this:
https://wiki.amahi.org/index.php/Adding ... ed_printer

You will find a lot of useful information in the wiki.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

gorillazgr
Posts: 41
Joined: Sun Oct 09, 2011 9:06 am
Location: Athens
Contact:

Re: adding a printer to Amahi7 with Fedora 19

Postby gorillazgr » Thu Jan 02, 2014 11:19 am

Try this:
https://wiki.amahi.org/index.php/Adding ... ed_printer

You will find a lot of useful information in the wiki.
Dear bigfoot65!
don't forget with Amahi7.1 there is no GUI :ugeek:

so I will give you a short direction of how I finally added my HP PSC1315 printer in my freshly install Amahi7.1
don't forget I am a linux newbie , but I love Amahi and want to follow up it's updates.

1) install of CUPS and HPLIP (Hewlett Packard's Printer Drivers)

sudo yum -y install cups cups-client hplip

2) in order to have a web acces from any other PC on the lan , and edit the CUPS configurator file, we have to edit it:
(I prefer the nano editor instead of the vi, you could install it through "sudo yum - y nano")

sudo nano /etc/cups/cupsd.conf

i give you my file as it is after the modification:
everything that I have underline is my modifications! (feel free to copy/paste if you will)
MaxLogSize 0
#
# "$Id: cupsd.conf.in 11173 2013-07-23 12:31:34Z msweet $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Only listen for connections from the local machine.
Listen 192.168.1.99:631 #input your server's IP
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
Order allow,deny
Allow From localhost
Allow From all
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow From localhost
Allow From all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow From localhost
Allow From all
</Location>

# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default

# Job-related operations must be done by the owner or an administrator...
<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>

# All administration operations require an administrator to authenticate...
<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>

# All printer operations require a printer operator to authenticate...
<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>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default

# Job-related operations must be done by the owner or an administrator...
<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>

# All administration operations require an administrator to authenticate...
<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>

# All printer operations require a printer operator to authenticate...
<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>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 11173 2013-07-23 12:31:34Z msweet $".
#
3) restart the cups service:

sudo systemctl stop cups.service
sudo systemctl start cups.service

4) finally I opened a new tab in my webbrowser to the following address in order to configure CUPS and add my Printer:

htpp://192.168.1.99:631 #Don't forget as I mentioned above that the 192.168.1.99 is my server's IP. I guess yours is something else!

5) I connect the printer with the USB cable to the Amahi7.1 pc , switched it on. If everything went OK, like in my example you should have a list that
looks like this:

Image

6) without reading any special directions, I chose the first one (thought the USB specific will not be smart enough to chose, if for some reason I plug it in another USB some day later)

7) I hope that from this point on, it is an easy step by step configuration.



Goo Luck
Last edited by gorillazgr on Sat Feb 08, 2014 1:18 am, edited 3 times in total.
My HDA:
AMD Athlon(TM) 7550 Dual-Core Processor@1.25 GHz,
ASRock 960GC-GS FX board,
1024MB RAM + 4GB swap,
SATA 60GB(SYSTEM) + 2TBx3(POOL),
Gigabit Network,
Amahi7.1 (Fedora19)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: adding a printer to Amahi7 with Fedora 19

Postby bigfoot65 » Thu Jan 02, 2014 11:54 am

Yes I know Amahi 7 is headless :) The wiki guidance did not go through the entire setup but just connecting to a client mostly. The info you provided is great, but would be best if put into the wiki.

Would you mind doing that? We would greatly appreciate it.

I don't use a USB printer myself as mine is wireless. I think you will find many have gone to networked printers vs USB now. Nevertheless, the guidance is still needed for those who continue to use printers connected to a single system.

EDIT: BTW, some of this is already present in the wiki. Although it's for Ubuntu and PDF, it reflects some of the changes you made.

https://wiki.amahi.org/index.php/PDF_Printer

Note you don't have to put your IP address in the cups.conf file. Also we typically do not use sudo with Fedora 19 commands. Most users do not have that configured on their machine. All commands should be run as root user in that case.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

gorillazgr
Posts: 41
Joined: Sun Oct 09, 2011 9:06 am
Location: Athens
Contact:

Re: adding a printer to Amahi7 with Fedora 19

Postby gorillazgr » Mon Jan 06, 2014 8:52 am

Note you don't have to put your IP address in the cups.conf file. Also we typically do not use sudo with Fedora 19 commands. Most users do not have that configured on their machine. All commands should be run as root user in that case.
well I don't know if I was mistyping things, but if I didn't add Amahi's IP in the cups.conf file, I never managed to open th webconfigurator from a client-PC.
As far as the "sudo" command, although I followed the guide, and I installed my user as administrator, I couldn't process any command if I did not ask for
admin rights. So I used "sudo".

Anyways, the most important thing is the following:
Before I add/edit the wiki page about this printing information, wouldn't it be wise to merge someway those two subjects?
Adding an HDA network printer
how to add a PDF printer to your HDA
My HDA:
AMD Athlon(TM) 7550 Dual-Core Processor@1.25 GHz,
ASRock 960GC-GS FX board,
1024MB RAM + 4GB swap,
SATA 60GB(SYSTEM) + 2TBx3(POOL),
Gigabit Network,
Amahi7.1 (Fedora19)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: adding a printer to Amahi7 with Fedora 19

Postby bigfoot65 » Mon Jan 06, 2014 9:14 am

We do things as root user in Fedora 19, not sudo. That was what I meant.

As for merging the pages, let's keep them separate for now. We can merge at a later date once verified all is working. The PDF printer is not working on Fedora 19, at least not for me. I might have done something wrong though too.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

gorillazgr
Posts: 41
Joined: Sun Oct 09, 2011 9:06 am
Location: Athens
Contact:

Re: adding a printer to Amahi7 with Fedora 19

Postby gorillazgr » Sun Jan 26, 2014 2:21 pm

Yes I know Amahi 7 is headless :) The wiki guidance did not go through the entire setup but just connecting to a client mostly. The info you provided is great, but would be best if put into the wiki.

Would you mind doing that? We would greatly appreciate it.
hi again! how can I request a wiki-editing-account ?
My HDA:
AMD Athlon(TM) 7550 Dual-Core Processor@1.25 GHz,
ASRock 960GC-GS FX board,
1024MB RAM + 4GB swap,
SATA 60GB(SYSTEM) + 2TBx3(POOL),
Gigabit Network,
Amahi7.1 (Fedora19)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: adding a printer to Amahi7 with Fedora 19

Postby bigfoot65 » Sun Jan 26, 2014 2:32 pm

Request at the wiki login.

BTW if interested we have an app in testing for CUPS that adds all the Web UI pieces automatically. It also sets up a PDF printer.

Please PM me your Amahi.org username to try.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

gorillazgr
Posts: 41
Joined: Sun Oct 09, 2011 9:06 am
Location: Athens
Contact:

Re: adding a printer to Amahi7 with Fedora 19

Postby gorillazgr » Wed Jan 29, 2014 5:19 pm

great! would like to test to my new install


(sent PM)
My HDA:
AMD Athlon(TM) 7550 Dual-Core Processor@1.25 GHz,
ASRock 960GC-GS FX board,
1024MB RAM + 4GB swap,
SATA 60GB(SYSTEM) + 2TBx3(POOL),
Gigabit Network,
Amahi7.1 (Fedora19)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: adding a printer to Amahi7 with Fedora 19

Postby bigfoot65 » Wed Jan 29, 2014 5:30 pm

Done and replied to your PM.

Are you still interested in updating the wiki? I started working on it, but have not had time to finish.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 18 guests