Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-17-2010, 05:21 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Thumbs down 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

xterm Xt error: Can't open display:
xterm: DISPLAY is not set
Old 11-17-2010, 10:36 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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:
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query related to syslog? your_shadow03 Linux - Newbie 5 05-15-2009 11:32 AM
A Query related to Git? your_shadow03 Linux - Newbie 10 04-24-2009 12:35 AM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 07:39 PM
One query related utkarshrawat Linux - Newbie 2 05-27-2008 03:01 AM
kernel related query abhidude Linux - General 2 11-29-2004 10:09 AM > Forums > Linux Forums > Linux - Server

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration