Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up a display environment variable for a remote unix system

Trying to get some graphical network simulator (ns2) code to display from my university's unix system. My local OS is Ubuntu 10 and I am accessing the unix system through PuTTY SSH client. When some prewritten code is executed, the following error prompt occurs:

no display name and no $DISPLAY environment variable

What can be done to get remotely executed code to display on my system? I am a total novice with unix and my attempts at redefining the $DISPLAY env var were spectacular failures. Thanks. Appreciated.

like image 891
farm ostrich Avatar asked Jan 22 '11 23:01

farm ostrich


1 Answers

Just do:

$ ssh -X [email protected]

This should launch ssh with X forwarding enabled, when run from a terminal emulator like Xterm, gnome-terminal and the like. username should be your account name on the remote computer, of course.

like image 190
thkala Avatar answered Jan 29 '23 21:01

thkala