Page 1 of 1

X: unable to open display "localhost:10.0"

Posted: Fri Oct 04, 2013 1:38 pm
by cah
When I was trying to show xclock from hsiao.net to local workstation at work with VcXsrv running, I got the error:

unable to open display "localhost:10.0"

After some research, I found out I was missing the following entry in /etc/hosts:

Code: Select all

127.0.0.1       localhost
After adding it, xclock pops out fine.

Also, xclock was not installed in Solaris 11 by default, I had to run the following command to install:

Code: Select all

% pkg install xclock
           Packages to install:  1
       Create boot environment: No
Create backup boot environment: No

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  1/1         9/9      0.0/0.0$<3>

PHASE                                        ACTIONS
Install Phase                                  30/30 

PHASE                                          ITEMS
Package State Update Phase                       1/1 
Image State Update Phase                         2/2 

PHASE                                          ITEMS
Reading Existing Index                           8/8 
Indexing Packages                                1/1
Then, it was installed in /usr/bin:

Code: Select all

%type xclock
xclock is a tracked alias for /usr/bin/xclock