On 01/09/2012 01:23 PM, Kirk Wallace wrote:
> On Mon, 2012-01-09 at 10:16 -0800, Kirk Wallace wrote:
>    
>> The recent talk about headless emc2 got my to look into running emc2 on
>> a remote PC with ssh. I looked at the wiki page
>> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Running_Multiple_User_Interfaces
>>
>> and generic pages on X11 through ssh
>> http://www.techotopia.com/index.php/Displaying_Ubuntu_Linux_Applications_Remotely_%28X11_Forwarding%29
>>
>> After apt-get installing ssh-server (sshd). I was able to get the
>> generic bit to work. I think the bit I don't have worked out is the
>> setting the remote environment. The remote emc2 page calls for an
>> environment script but this is for a run-in-place set up. Can anyone
>> share the features for a LiveCD install?
>>      
> Here is what the emc command returns:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> kwallace@104:~/emc2$ emc
> EMC2 - 2.4.6
> Machine configuration directory is
> '/home/kwallace/emc2/configs/stepper-2'
> Machine configuration file is 'stepper_inch.ini'
> Starting EMC2...
> X Error of failed request:  BadWindow (invalid Window parameter)
>    Major opcode of failed request:  3 (X_GetWindowAttributes)
>    Resource id in failed request:  0xffffffff
>    Serial number of failed request:  738
>    Current serial number in output stream:  739
> Shutting down and cleaning up EMC2...
> Cleanup done
> EMC terminated with an error.  You can find more information in the log:
>      /home/kwallace/emc_debug.txt
> and
>      /home/kwallace/emc_print.txt
> as well as in the output of the shell command 'dmesg' and in the
> terminal
> kwallace@104:~/emc2$
>    
Kirk

When you ssh to the remote machine, use this:  ssh -X <username>@<host>

The -X sets up the tunnel to the remote machine and sets your 
environment there to put the X display on your local system.

Mark

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to