LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   About setting DISPLAY variable (https://www.linuxquestions.org/questions/linux-general-1/about-setting-display-variable-97015/)

Rex_chaos 09-26-2003 12:24 AM

About setting DISPLAY variable
 
hi all,
I have booted my RH7.2 in text mode. It fails to run a graphic-mode program in text mode and reports that I need to set the DISPLAY variable. How to set it?

UltimaGuy 09-26-2003 05:41 AM

You cannot run a graphics mode player in text mode. You have to have the Xserver running for you to enable running graphical programs. When you start XServer, the DISPLAY variable is automatically set.

linux_pioneer 09-27-2003 05:37 AM

Try startx to start running x server.

Rex_chaos 09-27-2003 05:42 AM

Yes. I am running X now. However, it stills demand me to set DISPLAY. It's really weird.

linux_pioneer 09-29-2003 01:24 AM

You can set the display variable $DISPLAY in your .profile file in your home directory. The name may differ depending what shell your using. I use bash so for me its .bash_profile.
Try adding this:
export DISPLAY="$IP:0.0"


All times are GMT -5. The time now is 07:48 AM.