How to automatically set the $DISPLAY variable for current session in UNIX/Linux
If you use XWindows, sometimes you need to set the DISPLAY for the session to transfer to your local laptop/desktop. With the following tip you can allow Unix/Linux to automatically setting it for you.

milly 6:57 pm on April 4, 2011
In your user’s home directory, depending on the type of shell you use, add the following lines:
(In Linux, you can add it to .bash_profile)