LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2008, 11:28 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
export DISPLAY=:0.0 !!!!


Friends ,

For Graphics related job in Unix Environment we need to set first the DISPLAY Like following way :
"export DISPLAY=:0.0"

Here my question is :

1) Why we need to export the DISPLAY when we are going to work in graphics related task in unix platform ?

2) Here what is the meaning of ":0.0"
Can u plz explain me ?

Waiting for ur kind reply ... ...
 
Old 11-12-2008, 11:33 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by shipon_97 View Post
Friends ,

For Graphics related job in Unix Environment we need to set first the DISPLAY Like following way :
"export DISPLAY=:0.0"

Here my question is :

1) Why we need to export the DISPLAY when we are going to work in graphics related task in unix platform ?
You don't necessarily need to do that manually - only
if you're trying to display something in X that is
run by a different user than the owner of the current
display (the logged in user).

Quote:
Originally Posted by shipon_97 View Post
2) Here what is the meaning of ":0.0"
Can u plz explain me ?

Waiting for ur kind reply ... ...
man X
/DISPLAY



Cheers,
Tink
 
1 members found this post helpful.
Old 11-12-2008, 12:38 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Code:
export DISPLAY=:0.0
This sets the environment variable $DISPLAY to be :0.0. When you run an X-windows program, this tells the program where to find the X server, and which display on the X server to use.

The X server is the program that performs the actual tasks of drawing on the display and handling keyboard and pointer (mouse, tablet etc.) inputs.

You also don't need to export it: that just means that the setting will be inherited automatically from any programs that you run from the current shell. You could, for example, say:
Code:
DISPLAY=:0.0 xterm &
to just start an X terminal with DISPLAY set; any commands run on that terminal emulator would then have the DISPLAY variable available. In that case, the DISPLAY would be blank.

You can also change DISPLAY to run commands on other hosts, or other X servers. See the manuals for xauth and X.
 
2 members found this post helpful.
  


Reply



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
Export DISPLAY idk666 Linux - General 3 07-02-2009 11:58 AM
What is the difference between DISPLAY= and export DISPLAY=?? john test Linux - Newbie 4 09-01-2008 06:41 PM
export DISPLAY binary_0011 Linux - Newbie 2 10-15-2006 10:09 AM
how to export the display bruse Linux - Networking 18 05-03-2005 09:13 PM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 AM.

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