[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] netcfg error



> salut,
> je lance netcfg en root sur un imac 233 rev A de linuxppc avec redhat.
> il lit tous les fichiers, et ensuite m'affiche:
> Tclerror: no display name and no *DISPLAY environment var
> what to do ?

Réponse un peu tardive mais bon... ;)

Tu as probablement fait un "su - root" pour lancer netcfg.

La variable d'environnement DISPLAY indique l'adresse IP et le numéro du
display à utiliser pour les applications X.
Quand tu fais un su, la variable DISPLAY est indéterminée.

Il te suffit de faire:

export DISPLAY="localhost:0.0"
netcfg

ou encore:
DISPLAY=localhost:0.0 netcfg

Note que ce truc-là, ça n'a l'air de rien, mais ça permet d'éxécuter des
applications X sur une machine distante et avoir l'affichage sur ta
caisse à toi. Suffit de changer DISPLAY...

  -o)  Pascal Bleser        | Instead of giving  Windows
  /\\  C++/UNIX Development | the "three-finger-salute",
 _\_v  ATOS Payment Systems | give it  the  "one-finger-
       Aachen, Germany      | goodbye" <jfk/propaganda>
pbleser@atos-group.com------------------guru@linuxbe.org
---------
This message was sent by Majordomo 1.94.3. Please report problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.