Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Speicherort für MIT magic cookie bzw. Xauthority
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Sat Jul 29, 2023 1:39 pm    Post subject: Speicherort für MIT magic cookie bzw. Xauthority Reply with quote

Hallo allerseits!

Seit Jahren verbinde ich mich zu einem Rechner bei mir in der Arbeit via x11vnc über einen ssh-Tunnel folgendermaßen:
Code:
ssh -t -L 5900:localhost:5900 user@remote \
    'x11vnc -rfbauth ~/.vnc/passwd -localhost -display :0 -geometry 1728x972 -nomodtweak


Der Remote-Rechner war früher auch auf Gentoo, seit ca. einem Jahr läuft da Artix Linux drauf. Aber auch damit das immer problemlos funktioniert. Jetzt hat das heute auf einmal nicht mehr geklappt, x11vnc startete nicht mehr ("XOpenDisplay(":0") failed." und "Invalid MIT-MAGIC-COOKIE-1 key").

Nach einigem Rumprobieren hab ich dann rausgefunden, dass die Anmeldeinformation scheinbar nicht mehr in ~/.Xauthority gespeichert wird, sondern in /tmp/xauth_irgendwas. Wenn man die Auth-Info explizit angibt, dann kann man x11vnc wieder starten (indem man "-auth $(find /tmp -name xauth\* -user $(whoami) -type f)" als Parameter hinzufügt).

Scheinbar hat sich da also was geändert. Interessanterweise gibt "xauth info" nach wie vor "Authority file: /home/user/.Xauthority" aus. Und dann findet x11vnc einfach die Anmeldeinformation nicht automatisch und kann nicht starten.

Weiß einer von euch, was da los ist? Ist das eine Arch-/Artix-spezifische Änderung? Oder steht das bei Gentoo auch an (die haben ja immer etwas aktuellere Pakete als wir in stable)? Bzw. wie kommt's dass xauth nicht den tatsächlichen Speicherort der Auth-Info ausgibt?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum