Export DISPLAY on RHEL Red Hat Enterprise Linux

Writing by on Saturday, 8 of June , 2013 at 3:50 am

On the source machine

[user@sourcemachine ~] echo $DISPLAY
:1011.0
[user@sourcemachine ~] xhost +

On the remote machine

[user@sourcemachine ~] ssh user@remotemachine
[user@remotemachine ~] export DISPLAY=sourcemachine:1011.0
[user@remotemachine ~] /usr/bin/firefox &

OR

[user@sourcemachine ~] ssh -X user@remotemachine
[user@remotemachine ~] /usr/bin/firefox &

With the ssh -X option, you don’t need to worry about DISPLAY, but some applications might not work.

Leave a comment

Category: Linux

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.