Configuring a printer on a server without a GUI

Dario Lesca d.lesca at solinos.it
Tue Nov 11 08:19:10 UTC 2014


>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

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.
> 
> 

-- 
Dario Lesca
(inviato dal mio Linux Fedora 20 con Gnome 3.10.4)



More information about the users mailing list