LinuxQuestions.org
Review your favorite Linux distribution.
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 03-16-2013, 09:28 PM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
environment variables, are they governed by GDM? or something outside, e.g., echo $so


There seems to be something missing when I try to search for env, e.g., "echo $EDITOR" or "echo $VISUAL

so what is this governed by on Debian6?

Fred
 
Old 03-16-2013, 09:56 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Environment variables are not governed by your distro or desktop environment. They are set using your shell & system's initializations files. If some of env variable is missing or not set then you will need to set it.

To check:
Code:
~$ env
OR
~$ printenv
To set a value:
Code:
~$ EDITOR=vi
~$ export EDITOR
~$ echo $EDITOR
vi
 
Old 03-17-2013, 05:02 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Hi Fred,

try read here and here

Regards
 
1 members found this post helpful.
Old 03-18-2013, 08:35 PM   #4
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
Kooru,
thanks, the second 'here' was helpful, especially if every program can have its own set of env although this is given for Ubuntu and not Debian. What is perplexing is the governing file, bashric or profile- from the env command at ~/ there are various defaults (DESKTOP_SESSION=default) or (GDMSESSION=default) which must be governed by the lasting configuration, i.e., bashric or profile, so:
a, will defaults be recognised and overridden, even temporarily
b, whatis a GDMSESSION as opposed to a gimp session?

Fred.
 
1 members found this post helpful.
  


Reply


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
[SOLVED] echo and Variables jettwa2001 Programming 4 04-30-2011 02:49 PM
bash echo variables casperdaghost Linux - Newbie 9 03-10-2010 04:21 PM
echo variables into config file. Karas Linux - Newbie 1 11-27-2009 11:15 AM
How to echo variables and commands in one line? hindll01 Programming 1 09-10-2004 06:02 AM
environment variables and gdm problem cpv204 Slackware 1 05-27-2003 08:35 AM


All times are GMT -5. The time now is 02:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration