ubuntuusers.de

Xdmx - ssh X11 forwarding error

Status: Ungelöst | Ubuntu-Version: Kubuntu 18.10 (Cosmic Cuttlefish)
Antworten |

tobiasteichmann

Anmeldungsdatum:
28. Oktober 2016

Beiträge: 31

Hi,

I'm trying to use my laptop as a third screen to my desktop PC. I found the xdmx packet to be the solution for me.

I have X session running on both machines and a ssh tunnel from my laptop to my PC with the command:

ssh -X -c aes128-gcm@openssh.com user@PC

I have also run

echo $DISPLAY

and got

 localhost:10.0 

as output.

So when I tried to start Xdmx with

startx -- /usr/bin/Xdmx :1 +xinerama -display :0.0 -display localhost:10.0 -norender -noglxproxy -ignorebadfontpaths

and I got this output on my PC:

...
(Fatal Error) dmx: dmxOpenDisplay: Unable to open display localhost:10.0

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console

And this one on my laptop:

X11 connection rejected because of wrong authentication.

I also tried to google the problem, but all the solutions I found did not work. One of them was to add the localhost:10.0 display to the auth-file and coping that over (with extract and merge).

Please help me, cause I have no idea what to do.

PS: Desktop 18.10, Laptop 18.04

dajohb

Anmeldungsdatum:
29. Januar 2016

Beiträge: 166

did you try

xhost +

on your laptop?

tobiasteichmann

(Themenstarter)

Anmeldungsdatum:
28. Oktober 2016

Beiträge: 31

dajohb schrieb:

did you try

xhost +

on your laptop?

I did, got

access control disabled, clients can connect from any host

back, but still same error message.

dajohb

Anmeldungsdatum:
29. Januar 2016

Beiträge: 166

do you get any X applications running with remote Display from PC to laptop?

for example xterm?

ssh from laptop to pc and then

xterm

if not your working try to debug by:

ssh -vv -X -c aes128-gcm@openssh.com user@PC 
xterm

tobiasteichmann

(Themenstarter)

Anmeldungsdatum:
28. Oktober 2016

Beiträge: 31

dajohb schrieb:

do you get any X applications running with remote Display from PC to laptop?

ssh from laptop to pc and then

xterm

Yes I did now, no problem at all.

dajohb

Anmeldungsdatum:
29. Januar 2016

Beiträge: 166

still get the same error?

(Fatal Error) dmx: dmxOpenDisplay: Unable to open display localhost:10.0

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console

even with

1
xhost +

on your laptop?

tobiasteichmann

(Themenstarter)

Anmeldungsdatum:
28. Oktober 2016

Beiträge: 31

dajohb schrieb:

still get the same error?

(Fatal Error) dmx: dmxOpenDisplay: Unable to open display localhost:10.0

even with

1
xhost +

on your laptop?

Yes I do.

Antworten |