LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Xterm related query (https://www.linuxquestions.org/questions/linux-server-73/xterm-related-query-844778/)

mr.blacklisted 11-17-2010 04:21 AM

Xterm related query
 
when i used the xterm command on my server then i get the following error
how i can go through it
can anybody plzz help me out

The i wrote was: xterm -bg purple

error:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set

theNbomr 11-17-2010 09:36 AM

How did you log into the server? Is your console on an X server? You use the term 'on my server' which makes me think you may be trying to run an X application from a text-mode console. If you used something like ssh to login from a GUI console, then you could probably simply add the '-X' option to the ssh commandline:
Code:

ssh -X joebloggs@my.server.somewhere
This should result in a login shell where $DISPLAY is set to something like 'localhost:10', at which point you should be able to run X applications.

--- rod.


All times are GMT -5. The time now is 09:54 PM.