Running xwindows based debugger in Linux guest on a Mac host
Posted: 1. Apr 2014, 07:09
I have been developing Python software on a Linux guest running on a Mac laptop. I have been trying out a debugger that I heard about, and I found out that it uses X Windows for display.
I know almost nothing about X Windows, so I'm not sure what I need to do to make X Windows-based applications run from within a Linux guest. When I tried to run the debugger, it displayed a message that said "Unable to access the X Display, is $DISPLAY set properly?" After reading a few things, I wondered if the way it is supposed to work is that I need to make sure that an X Windows server is running on my Mac and that I have sshed into the Linux guest with the -X option to allow X11 forwarding and appropriate X11 settings in the ssh_config and sshd_config files. I tried that, and DISPLAY is now defined as localhost:10.0 in the guest. Now I get four messages saying "X11 connection rejected because of wrong authentication." along with the message about the DISPLAY variable. Do I have the basic understanding right about how the guest and host are supposed to work together as X11 client and server and I just need to make sure some configuration details are correct, or am I misunderstanding how it's supposed to work from beginning to end?
Thanks,
Mo
I know almost nothing about X Windows, so I'm not sure what I need to do to make X Windows-based applications run from within a Linux guest. When I tried to run the debugger, it displayed a message that said "Unable to access the X Display, is $DISPLAY set properly?" After reading a few things, I wondered if the way it is supposed to work is that I need to make sure that an X Windows server is running on my Mac and that I have sshed into the Linux guest with the -X option to allow X11 forwarding and appropriate X11 settings in the ssh_config and sshd_config files. I tried that, and DISPLAY is now defined as localhost:10.0 in the guest. Now I get four messages saying "X11 connection rejected because of wrong authentication." along with the message about the DISPLAY variable. Do I have the basic understanding right about how the guest and host are supposed to work together as X11 client and server and I just need to make sure some configuration details are correct, or am I misunderstanding how it's supposed to work from beginning to end?
Thanks,
Mo