Download your favorite Linux distribution at LQ ISO.
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 12-01-2006, 01:53 AM   #1
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
How to set an environment variable

I have FC-5 and use KDE.

How do you set an environment variable? Specifically the DISPLAY or $DISPLAY variable, (does the $ mean anything?). Also, I don't know anything about daemons. If I had an error message that said the "xscreensaver" daemon wasn't running, how would I launch it? Right now I just have the command "xscreensaver" on a line in rc.local.


Old 12-01-2006, 01:59 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
rc.local is commonly run before a switch to the final run-level,
so xscreensaver won't be running for you because it can't connect
to X. But with KDE you should be able to run it from ~/.kde/Autostart ?

As for the variables:


It is then later on referenced with $VARIABLENAME, e.g. echo $DISPLAY.




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
how to set environment variable pranith Linux - Newbie 1 01-28-2005 12:23 AM
How to set an environment variable? dantemarmol Linux - Newbie 7 08-22-2003 11:59 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 01:38 PM
how to set CC environment variable General 2 12-18-2001 02:02 AM
how do you set the environment variable CC? Linux - General 0 12-17-2001 10:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration