environmental variables
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > environmental variables




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    environmental variables  
Joe Bloggs


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-12-07 12:14 AM

Hi, newbie question: how do I automatically set environmental variables (spe
cifically $BROWSER) at boot time?





[ Post a follow-up to this message ]



    Re: environmental variables  
sk8r-365


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-12-07 12:14 AM

Horton heard a Who named Joe Bloggs saying:
> Hi, newbie question: how do I automatically set environmental variables (specifica
lly $BROWSER) at boot time?

Hi, how do we know which environ and distro is in use by your post?
Hi, How do we know what your goals are by your post?
Hi, how do we know what you're intending to accomplish?
Hi, how can we help you given you *lack* of information?

--
sk8r-365





[ Post a follow-up to this message ]



    Re: environmental variables  
**__Mike__**


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-12-07 06:16 AM

Have a look at a hidden file named .profile or .dtprofile in your home
directory. A snippet is below. And be careful in here, people bite. If that
don't work, refer to the reply above mine.

-Mike


# you're after something like BROWSER=blah_blah_blah
# ~/.profile: executed by the command interpreter for login shells.

# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

# exists.

# see /usr/share/doc/bash/examples/startup-files for examples.

# the files are located in the bash-doc package.



# set PATH so it includes user's private bin if it exists

if [ -d ~/bin ] ; then

PATH=~/bin:"${PATH}"

fi

"sk8r-365" <sk8r-365@sk8r.debian.etch.invalid.org> wrote in message
 news:obqdnbbkTZUGLpPanZ2dnUVZ_oLinZ2d@br
esnan.com...
> Horton heard a Who named Joe Bloggs saying: 
>
> Hi, how do we know which environ and distro is in use by your post?
> Hi, How do we know what your goals are by your post?
> Hi, how do we know what you're intending to accomplish?
> Hi, how can we help you given you *lack* of information?
>
> --
> sk8r-365







[ Post a follow-up to this message ]



    Re: environmental variables  
Jim Beard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-14-07 06:15 PM

Joe Bloggs wrote:
> Hi, newbie question: how do I automatically set environmental variables (specifica
lly $BROWSER) at boot time?

In any of a number of ways, depending on your system
and what you want to do.

And, FWIW, you need to set your line length.  GigaNews is
not doing it for you.

No cheers.

jim b.

--
UNIX is not user-unfriendly; it merely
expects users to be computer-friendly.





[ Post a follow-up to this message ]



    Re: environmental variables  
s. keeling


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-15-07 06:12 AM

sk8r-365 <sk8r-365@sk8r.debian.etch.invalid.org>:
>  Horton heard a Who named Joe Bloggs saying: 
>
>  Hi, how do we know which environ and distro is in use by your post?

How many distros default to Bash.  Debian's one of them.

HOST=$(hostname)
ssh server_monster
export DISPLAY=$HOST:0.0
startx

in ~/.profile or .bash_profile.  That'll be defined in all subsequent
child processes spawn in the process in which it was defined.  This is
true of most Bourne-ish shells.

>  Hi, How do we know what your goals are by your post?

He's a noob.  How's he to know?  Still trying to get his bearings.

>  Hi, how can we help you given you *lack* of information?

Extrapolate.  :-)


--
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://blinkynet.net/comp/uip5.html      Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register