Re: [debian-knoppix] Can connect to ISP but can't connect to Internet
Hi Stephen,
On Fri, Aug 01, 2003 at 19:49:44 +0800, Stephen Liu wrote:
> > After getting root privileges, you may need to set the DISPLAY variable
> > to :0.0 ("export DISPLAY=:0.0"). Then you can run X programs as root
> > although the X session was started by a normal user.
>
> Could you please explain further in more detail. Thanks in advance.
Each X11 application reads the DISPLAY environment variable. This
variable tells the application which X11 display (X server) to connect
to. The display can run on the local machine or on a remote machine.
Common DISPLAY values are
:0.0 Display number 0, screen number 0 on the local machine. The
connection to the X server will be established via unix domain
sockets.
127.0.0.1:0.0 Same display, but the connection to the X server will be
established via tcp socket (port 6000+displaynumber).
1.2.3.4:0.0 Display number 0, screen number 0 on 1.2.3.4 (remote
machine).
X11 has its own display permission management. The most simple (and
unflexible) tool to set display permissions is xhost. You can
permit/deny the display on a per-host basis. See "man xhost" for
details. The xauth tool sets permissions on a per-user basis and stores
cookies in the user's ~/.Xauthority file. ("man xauth")
If you want to know more details, read the manual pages or even better,
buy a good book about Linux :)
bye,
Chris
--
Christian Perle perle@itm.tu-clausthal.de
Grunaer Str. 31 http://www.itm.tu-clausthal.de/~perle/
01069 Dresden LinuxGuitarKitesBicyclesBeerPizzaRaytracing
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
Reply to: