On 11.11.2014 11:15, poma wrote:
On 11.11.2014 04:15, Robert Moskowitz wrote:
> 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.
>
>
$ ssh server -l user
user@server's password:
X11 forwarding request failed on channel 0
Last login: ...
$ 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:2179): Gtk-WARNING **: cannot open display:
$ su -c 'yum install xorg-x11-xauth xorg-x11-fonts-Type1'
Password:
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.fc20 will be installed
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.fc20 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
xorg-x11-fonts-Type1 noarch 7.5-9.fc20 fedora 521 k
xorg-x11-xauth x86_64 1:1.0.9-1.fc20 updates 30 k
Transaction Summary
================================================================================
Install 2 Packages
Total download size: 551 k
Installed size: 912 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): xorg-x11-xauth-1.0.9-1.fc20.x86_64.rpm | 30 kB 00:00
(2/2): xorg-x11-fonts-Type1-7.5-9.fc20.noarch.rpm | 521 kB 00:01
--------------------------------------------------------------------------------
Total 366 kB/s | 551 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
Installing : xorg-x11-fonts-Type1-7.5-9.fc20.noarch 1/2
Installing : 1:xorg-x11-xauth-1.0.9-1.fc20.x86_64 2/2
Verifying : 1:xorg-x11-xauth-1.0.9-1.fc20.x86_64 1/2
Verifying : xorg-x11-fonts-Type1-7.5-9.fc20.noarch 2/2
Installed:
xorg-x11-fonts-Type1.noarch 0:7.5-9.fc20 xorg-x11-xauth.x86_64 1:1.0.9-1.fc20
Complete!
$ 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:2196): Gtk-WARNING **: cannot open display:
$ exit
logout
Connection to server closed.
$ ssh server -l user
user@server's password:
Last login: ...
/usr/bin/xauth: file /home/user/.Xauthority does not exist
$ system-config-printer
** (system-config-printer.py:2227): WARNING **: Couldn't connect to accessibility
bus: Failed to connect to socket /tmp/dbus-YjDPTOKg4c: Connection refused
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not
be saved or shared with other applications.
Actually 'install cups' already pulled 'urw-fonts' & Co., so no need
for 'xorg-x11-fonts-Type1'.
poma