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
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
Code: Select all
%type xclock
xclock is a tracked alias for /usr/bin/xclock