Configuring a printer on a server without a GUI

Robert Moskowitz rgm at htt-consult.com
Tue Nov 11 10:59:10 UTC 2014


On 11/10/2014 10:19 PM, Dario Lesca wrote:
>  From console or a ssh shell run:
>
> $ sudo cupsctl _remote_admin=1
> $ sudo firewall-cmd --permanent --add-port=631/tcp
> $ sudo firewall-cmd --add-port=631/tcp

Other than it is port 9100 for the printer?

>
> Then point your browser to https://ip.of.our.host:631/admin and add your
> printer.
>
> Or to work only from command line use lpstat, lpinfo and lpadmin.
> Some example:
> $ sudo lpinfo -m -l
> $ sudo lpadmin -E -p laser1 -v socket://my.prin.ter.ip:9100 -m ./driver.ppd
>
> Hope this (and some man type and search engines) help
>
> Il giorno lun, 10/11/2014 alle 17.15 -1000, Robert Moskowitz ha scritto:
>> I have a server here that has no GUI installed.
>>
>> No gnome, xfce, or any other.  And I want to install a printer.  It is
>> an HP8610 and I have the url for it.  I strangely thought that
>> system-config-printer would work, but that also requires more than just
>> a text window as I get:
>>
>> # system-config-printer
>> Unable to init server: Could not connect: Connection refused
>> Unable to init server: Could not connect: Connection refused
>> Unable to init server: Could not connect: Connection refused
>>
>> (system-config-printer.py:15388): Gtk-WARNING **: cannot open display:
>>
>>
>> Oh, yes, no monitor at ALL.  Only a serial console or SSH terminal.
>>
>>



More information about the users mailing list