Can't open display

Stelios Bounanos sb at dial.pipex.com
Sun Mar 9 17:37:01 EET 2003


 >>>>> On Sat, 08 Mar 2003 17:41:24 +0200, ZORBADELOS KONSTANTINOS
 >>>>> <kzorba at otenet.gr> was rumoured to have said:

 > At Sat, 08 Mar 2003 14:43:29 +0000,
 > Thomas B wrote:
 >> 
 >> 
 >> 
 >> 
 >> 
 >> thelw na treksw ena programma me to wine kai thelw na to treksw ws root
 >> xwris omws na kanw login ws root
 >> 
 >> kanw su kai epeita trexw in entoli wine ...programma.exe
 >> kai mou bgazei to epomeno minima

 > Kanontas su kaneis login san root. Apla mallon ennoeis oti den kaneis login
 > san root se olo to Xsession.
 
 >> 
 >> Xlib: connection to ":0.0" refused by server
 >> Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
 >> x11drv: Can't open display: :0.0
 >> 
 >> episis to idio minima exw paratirisei otan trexw xf86cfg
 >> an den kanw lathos einai kapoio systima asfaleias toy antistoixou server ( 
 >> etsi den einai ??)
 >> 
 > Sosta.

 >> pws mporw na to apenergopoieisw ?
 >> ti epiptwseis tha exei auto gia to sistima mou kai giati einai apo default 
 >> apenergopoieimeno?
 >> otan eixa mandrake den mou ginotan auto. twra exw SuSE 8.1 me KDE 3.0.3
 >> 
 > H lysi einai na doseis tin entoli 
 > xhost +localhost
 > se ena terminal toy xristi pou exeis kanei login sto Xsession. Ayto
 > leei ston Xserver na epitrepei na syndethoun efarmoges pou trexoun sto
 > topiko mixanima.
 > Mporeis na doseis kai 
 > xhost +
 > gia na epitrepseis sto sympan na zografizei parathyra ston Xserver
 > sou. Kane ayto an den doulepsei to proto. Fysika den einai o,ti
 > kalytero apo pleyras asfaleias giati o kathenas tha mporei na thesei
 > to DISPLAY toy sto IP toy mixanimatos sou kai na zografizei ta
 > parathyra ton X efarmogon toy ekei...

Mporei na kanei poly perissotera stelnontas X events stoys dikoys soy
clients 'h na sniffarei passwords kai ta synafh. To xhost einai
anasfales kai synh8ws axrhsto.

Sthn prokeimenh periptwsh, arkei na balei kaneis sto environment toy
root kati san DISPLAY=:0.0 kai XAUTHORITY=~user/.Xauthority (opoy
user einai o xrhsths poy shkwse ton xserver). Sthn pio genikh
periptwsh poy to .Xauthority den einai readable 'h sto idio
filesystem, metafereis to "magic cookie" me to xauth(1).

Bebaia sthn periptwsh poy to mhxanhma den exei syndesh sto diktyo 'h
den mporei kanenas allos na kanei login, to xhost +localhost de
blaptei alla genika einai kakh idea.

 >> episis pws ginetai (an ginetai) na balw ena eikonidio sto dektop mou to 
 >> opoio otan to klikarw na me rwta
 >> gia to root password kai meta na trexei thn entoli pou tou exw orisei ??
 >> 
 > Mporeis na grapseis ena wrapper script to opoio na zita to password
 > toy root kai sti synexeia afou parei ena root shell na ektelesei to
 > programma sou. Ayto to exei kanei i Redhat me to consolehelper. Kathe
 > redhat-config* ergaleio kanei ayti ti douleia. Vevaia den einai
 > tetrimeno kai thelei doulitsa.

 >> Eyxaristw poli !!!
 >> 
 >> 
 > ======================================================
 >   Kostas Zorbadelos, Msc University of Athens
 >   Dept Of Informatics & Telecommunications
 >   email: kzorba at otenet.gr


Rgds,
/-sb.



More information about the Linux-greek-users mailing list