Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-15-2006, 09:52 AM   #1
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
export DISPLAY

Hi guys, when i do a export, it shows :

[root@fc4 ~]# export
declare -x DISPLAY="localhost:10.0"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="fc4.hsh"
declare -x INPUTRC="/etc/inputrc"
declare -x KDEDIR="/usr"
declare -x LANG="en_US.UTF-8"

then I do a export DISPLAY=

if I do a export, the change will be reflected.

But if i logout and login again, the display will change back to the old one.

How do I make the change permanent?

Old 10-15-2006, 10:09 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
I put it in /etc/bash.bashrc.local but you could also put it in $HOME/.bashrc.

You can leave the IP address out. I define DISPLAY like this.
export DISPLAY=":0.0"
Old 10-15-2006, 10:09 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
One way is to add the EXPORT to your ~/.bashrc (or equivalent), so it's run every time you login (or start a shell).


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
Export DISPLAY idk666 Linux - General 3 07-02-2009 11:58 AM
Trying to export display automatically in Linux ? lab123 Linux - Networking 0 09-29-2005 08:33 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 Member Intro 2 05-15-2004 04:29 AM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration