[CentOS] Airprint to old printer using Centos server

2016-10-31 Thread Gary Stainburn
Hi folks,

I've found a number of articles on setting up a Linux / CUPS / Avahi server to 
allow airprinting, but they all seem to be quite old.

Two questions:

1) Does anyone have a link for a more recent article, hopefully specifically 
for Centos7.

2) I'm on a structured, VLAN network.  Will I have to put a WIFI card into my 
Centos server to give it a presence on the WIFI before this will work?

Gary
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Airprint to old printer using Centos server

2016-10-31 Thread Tom Grace

On 31/10/2016 10:43, Gary Stainburn wrote:

Hi folks,

I've found a number of articles on setting up a Linux / CUPS / Avahi server to
allow airprinting, but they all seem to be quite old.

Two questions:

1) Does anyone have a link for a more recent article, hopefully specifically
for Centos7.
I've not seen specific instructions for CentOS 7, but when I last did 
this the actual AirPrint script was simple enough that I doubt you'd 
have trouble. Main thing is making use that you can print directly from 
your CentOS machine.


2) I'm on a structured, VLAN network.  Will I have to put a WIFI card into my
Centos server to give it a presence on the WIFI before this will work?
Depends how the network is set up. I had my AirPrint server on a 
different VLAN to the wifi, and you need the following for that to work:
An Avahi bridge so the announcements from AirPrint are also announced on 
the WiFi

Firewall rules to allow the CUPS port through from the WiFi to your server

I found this was pretty easy to configure, but I was able to completely 
control the network (putting VMs on any VLAN; opening firewalls etc.). 
It might be easier to use wifi in your setup.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Airprint to old printer using Centos server

2016-10-31 Thread Richard Grainger
Hi Gary

I got this working in a previous role a while ago:
http://thirdlineit.blogspot.co.uk/2011/12/active-directory-authenticated-airprint.html
(ignore the authentication aspects).  I also managed to do it recently
on my home network using Ubuntu, so the principle still works.
Summary:

1. Install CUPS
2. Enable IPP for the printer queues
3. To make the printers visible across subnets/VLANs/broadcast domains
you can use DNS-SD instead of avahi.  Basically you just need to
create special DNS records for each printer queue and this avoids
having to forward avahi requests.  Here is one page that describes the
process: 
http://www.craig-tolley.co.uk/mini-projects/configuring-airprint-using-dns/
...but there are other guides out there.

Hope this helps!
Richard


On Mon, Oct 31, 2016 at 10:43 AM, Gary Stainburn  wrote:
> Hi folks,
>
> I've found a number of articles on setting up a Linux / CUPS / Avahi server to
> allow airprinting, but they all seem to be quite old.
>
> Two questions:
>
> 1) Does anyone have a link for a more recent article, hopefully specifically
> for Centos7.
>
> 2) I'm on a structured, VLAN network.  Will I have to put a WIFI card into my
> Centos server to give it a presence on the WIFI before this will work?
>
> Gary
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Airprint to old printer using Centos server

2016-10-31 Thread Gary Stainburn
I used the instructions available at 

https://www.marcus-povey.co.uk/2011/11/11/howto-printing-to-any-printer-with-an-ipadiphone-and-apple-airprint/

and 

http://www.linux-magazine.com/Online/Features/AirPrint

which were basically the same thing.  I did the test using my laptop which is 
already on the WIFI network.

As you said, the instructions were so simple.  To make life easier regarding 
the network, I'm just going to add a USB WIFI dongle to each server as that's 
what I'm already using on the laptop.  Unfortunately. HP and Linux drivers 
don't always talk to each other.

Gary

On Monday 31 October 2016 12:00:07 Tom Grace wrote:
> On 31/10/2016 10:43, Gary Stainburn wrote:
> > Hi folks,
> >
> > I've found a number of articles on setting up a Linux / CUPS / Avahi
> > server to allow airprinting, but they all seem to be quite old.
> >
> > Two questions:
> >
> > 1) Does anyone have a link for a more recent article, hopefully
> > specifically for Centos7.
>
> I've not seen specific instructions for CentOS 7, but when I last did
> this the actual AirPrint script was simple enough that I doubt you'd
> have trouble. Main thing is making use that you can print directly from
> your CentOS machine.
>
> > 2) I'm on a structured, VLAN network.  Will I have to put a WIFI card
> > into my Centos server to give it a presence on the WIFI before this will
> > work?
>
> Depends how the network is set up. I had my AirPrint server on a
> different VLAN to the wifi, and you need the following for that to work:
> An Avahi bridge so the announcements from AirPrint are also announced on
> the WiFi
> Firewall rules to allow the CUPS port through from the WiFi to your server
>
> I found this was pretty easy to configure, but I was able to completely
> control the network (putting VMs on any VLAN; opening firewalls etc.).
> It might be easier to use wifi in your setup.
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos



-- 
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk 
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Airprint to old printer using Centos server

2016-10-31 Thread David Nelson
I use the DNS-SD approach as well and it works quite well. Provided that you 
run your own DNS, or are friendly with whoever does. (The records have to go in 
a zone that is in your clients’ search domain.) The advantage here is it works 
across networks/vlans and doesn’t require you to have any administrative 
control over the devices.

You could also create a .mobileconfig profile that specifies the location of 
the queues and install that on the iPads. You need to be using an MDM to push 
it out to your clients, or have a small enough number of devices that you can 
install the profile manually. (Or post the profile on a web server somewhere 
and tell your users to go there and install it themselves.) 

David


> On Oct 31, 2016, at 5:06 AM, Richard Grainger  wrote:
> 
> Hi Gary
> 
> I got this working in a previous role a while ago:
> http://thirdlineit.blogspot.co.uk/2011/12/active-directory-authenticated-airprint.html
> (ignore the authentication aspects).  I also managed to do it recently
> on my home network using Ubuntu, so the principle still works.
> Summary:
> 
> 1. Install CUPS
> 2. Enable IPP for the printer queues
> 3. To make the printers visible across subnets/VLANs/broadcast domains
> you can use DNS-SD instead of avahi.  Basically you just need to
> create special DNS records for each printer queue and this avoids
> having to forward avahi requests.  Here is one page that describes the
> process: 
> http://www.craig-tolley.co.uk/mini-projects/configuring-airprint-using-dns/
> ...but there are other guides out there.
> 
> Hope this helps!
> Richard
> 
> 
> On Mon, Oct 31, 2016 at 10:43 AM, Gary Stainburn  wrote:
>> Hi folks,
>> 
>> I've found a number of articles on setting up a Linux / CUPS / Avahi server 
>> to
>> allow airprinting, but they all seem to be quite old.
>> 
>> Two questions:
>> 
>> 1) Does anyone have a link for a more recent article, hopefully specifically
>> for Centos7.
>> 
>> 2) I'm on a structured, VLAN network.  Will I have to put a WIFI card into my
>> Centos server to give it a presence on the WIFI before this will work?
>> 
>> Gary
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] how to view a picture under shell?

2016-10-31 Thread Glenn WANG
hi, all, is there any command(such asciiview) to view the picture under
bash shell? I found the asciiview could meet my requirement, but how to
install it on centos? thanks.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos