LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-01-2006, 12:53 AM   #1
royeo
Member
 
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.

Thanks,

royeo
 
Old 12-01-2006, 12:59 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
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:

export VARIABLENAME

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

HIH


Cheers,
Tink
 
  


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

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

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

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