Re: Environment Variable weirdness
On Wed, Sep 29, 1999 at 08:39:48PM -0400, Salman Ahmed wrote:
>
> (1)
> Running Debian 2.1, I noticed sth odd about a couple of
> environment variables (I am running XFree-3.3.3.1-2).
>
> First of all :
>
> HOSTTYPE=i386-linux
Compilation was for i386 so it would run on more than just pentiums.
> (2)
> The other thing is that the DISPLAY env variable is set
> to "unix:0.0". My question is : shouldn't this variable
> be of the form $HOSTNAME:0.0 ? So why is set to "unix:0.0" ?
>
> And how do I change this env variable on a global basis
> (ie for all users) ?
unix:0.0 means it's using a Unix Domain Socket, IIRC. UDS is for
local connections.
> (3)
> The last thing is : I'd like to create an environment variable
> that contains the following information : kernel version and
> machine architechture. e.g. : linux-2.2.12-i686. Let's call
> it OSVERSION. Where do I set this environment variable ?
/etc/environment is a good place.
Ben
Reply to: