1825048 Members
2961 Online
109678 Solutions
New Discussion юеВ

Export Display

 
Abhijeet_3
Frequent Advisor

Export Display

Hi,

I have have 2 servers.
Server A has GUI console. and other ServerB is terminal.

what steps I need to follow on both servers , so after telnet from ServerA to serverB , I can able to get GUI of serverB.

Thx
10 REPLIES 10
Oved
Advisor

Re: Export Display

If you are working from the graphic console so do the following:
1. In the server run "xhost +" or "xhost ". The first says everyone has a permission to access your GUI server, and the latter specify a server, so only it can do it.
2. In serverB set the DISPLAY variable to serverA.

Good Luck....
Nicholas Faber
Honored Contributor

Re: Export Display

On server a enter:

>>xhost +

telent to serverB and enter:

>>EXPORT DISPLAY=serverA:0.0

HTH

Nick
It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
Bharat Katkar
Honored Contributor

Re: Export Display

From Server A Console:

Telnet to the Server B.
# xhosts +
# export DISPLAY=:0.0
Execute your GUI command.

Regards,
You need to know a lot to actually know how little you know
Sridhar Bhaskarla
Honored Contributor

Re: Export Display

Abhijeet,

Look at the prompt to see on which server I am runing the command.

Open an appropriate term (dtterm,hpterm etc.,) on the graphical console of serverAAA

serverA$xhost + serverB
serverA$telnet serverB

serverB$export DISPLAY=serverA:0

serverB#hpterm

This should display the hpterm of serverB on serverA's graphic console.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Abhijeet_3
Frequent Advisor

Re: Export Display

Thx for reply.

I have issue.When I give command
ServerA#/usr/bin/X11/xhost +ServerB

It gives error " Xlib:client is not authorised to connect to server "

Both servers has entry in /etc/hosts file.
On serverA , display is correct ( ServerA:0.0 )
Geoff Wild
Honored Contributor

Re: Export Display

Try this, then serverb:

xhost +localhost

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Abhijeet_3
Frequent Advisor

Re: Export Display

same error for , xhost +localhost.
Alex Glennie
Honored Contributor

Re: Export Display

try this ...

cp /usr/dt/config/Xservers -> /etc/dt/config/Xservers

vi the /etc Xservers file thus :

* Local local@console /usr/lib/X11/X :0 -ac audit 0


wq!

/sbin/init 2
/sbin/init 3 and try again .....?
Alex Glennie
Honored Contributor

Re: Export Display

other things/thoughts to check:
is /etc/hosts involved or is name resolution being done by NIS or DNS ?

Are multiple network cards involved on either system at all ?
Abhijeet_3
Frequent Advisor

Re: Export Display

Alex,

On serverA when I copied and edit Xservers file , then /sbin/init 2 , /sbin/init 3 , I am unable to get a CDE screen .

Both the servers are using Built-in -Lan only. Hosts file is used for name service.