Linux Debian support - environmental variables

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > October 2007 > environmental variables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author environmental variables
Joe Bloggs

2007-10-11, 7:14 pm

Hi, newbie question: how do I automatically set environmental variables (specifically $BROWSER) at boot time?
sk8r-365

2007-10-11, 7:14 pm

Horton heard a Who named Joe Bloggs saying:
> Hi, newbie question: how do I automatically set environmental variables (specifically $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
**__Mike__**

2007-10-12, 1: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



Jim Beard

2007-10-14, 1:15 pm

Joe Bloggs wrote:
> Hi, newbie question: how do I automatically set environmental variables (specifically $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.
s. keeling

2007-10-15, 1: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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com