Automatic Unix DISPLAY variable export
With the servers that I manage, I sometimes need to run a command that starts some sort of GUI interface requiring an X server. This holds especially true if the server holds an Oracle database. The GUI tools Oracle provides make it easy to install Oracle, use the database configuration assistant (DBCA), run the wallet manager (OWM), and other utilities, however they all require an X Server.
What I don’t like to do is to have to determine my local computer’s IP address, and from the Unix server manually export my DISPLAY to that IP address every time I want to run one of the programs requiring an X server.
Instead, what I do on my RedHat Linux AS3 servers is edit the /etc/profile script, and add in one simple line: continue reading…