Walter Cigana wrote:
> Hi all,
>
> I am using a setup with LinuxCNC/MachineKit running on a beagleBone Black.
>
> I have been trying for a week or so to get to ssh into the BBB and start
> linuxcnc with the display showing up on my remote computer.
>
> I know this is possible since many people refer to this working for them
> and I've seen videos of people having it in their setup.
> I have tried the usual "export DISPLAY=...:0" and "xhost +myIP" commands,
> but I still get a "cannot open display" error when trying to launch and app
> remotely.
>
> I have looked around and tried many things that people suggest: X11
> forwarding and the like, but want to stay away from VNC if possible.
>
>   
The simplest, but probably worst performing, would be
ssh -X name@beaglebone

A quick way to test the network connection and Xwindows autorization is
with xclock, which will put an analog clock on your Xwindows server,
if all the permissions are allowing it.  WAY faster than trying to start
LinuxCNC.

The downside of the ssh -X is that it is an encrypted session, which is 
probably
just a waste of CPU time on a local network.  But, it should get around most
of the X authority problems.  X forwarding with export DISPLAY=
is that it needs the Xserver to allow it.  A MAJOR problem is that most
Linux installs FORBID remote access to the X server by default!
I'm guessing this is what you are running into.  It varies a bit from
system to system, but you need to remove the nolisten option from the
line that starts the X server. 
Here's one mention of it :
http://askubuntu.com/questions/72812/how-to-disable-nolisten
But, it seems on Ubuntu 10.04 it is in/etc/X11/xinit/xserverrc

Also, for ssh -X to work, //etc/ssh/sshd_config  /must have the
forwarding enabled, with /
/

X11Forwarding yes

I hope some of this helps, it seems to be a very obscure
problem, and it shouldn't be that obscure.  I guess ssh -X
works for most users.

Jon


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to