[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: IP Address Variable?
- From: Johannes Franken <jfranken jfranken de>
- To: redhat-list redhat com
- Subject: Re: IP Address Variable?
- Date: Wed Jul 31 16:38:15 2002
* Joe Giles <jgiles joeman1 com> [2002-07-31 04:37 +0200]:
> I use DHCP, and I would like to use an IP variable (If one exists) to
> set my DISPLAY option...
To answer to your question: there's no such variable, but two special
hostnames: »localhost« and the your machine's local hostname, so setting
export DISPLAY=localhost:0
would make it work.
But doing that would be using the X Server's tcp socket, which is
deprecated for security reasons. The Debian people even added "-nolisten
tcp" to their xserverrc, to switch that off.
Better use »local« (that is, unix domain socket) addresses, which are
faster, safer and don't depend on any local ones.
To do so, just
export DISPLAY=:0
--
Johannes Franken
Professional unix/network development
mailto:jfranken jfranken de
http://www.jfranken.de/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]