LinuxCNC works on SSH X but don't start on startx

More
23 Feb 2015 21:41 #56232 by knorst
Hello

I've installed a debian image with Xenomai kernel on a RPi and setup the LinuxCNC.

If I run from a ssh -X terminal works, but if I try to run from startx direct from RPi I receive this log error.

Any suggest to fix?

Follow the log error, the subsequent debug errors are consequence from rtapi_app_xenomai fault:

RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=/usr/libexec/linuxcnc/inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/usr/share/linuxcnc/examples/sample-configs/ARM/BeagleBone/BeBoPr'
Machine configuration file is 'BeBoPr.ini'
INIFILE=/usr/share/linuxcnc/examples/sample-configs/ARM/BeagleBone/BeBoPr/BeBoPr.ini
PARAMETER_FILE=pru-stepper.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
rtapi_msgd startup failed - aborting
/usr/libexec/linuxcnc/rtapi_app_xenomai: FATAL - will not run as root
rtapi_app startup failed - aborting
Starting LinuxCNC IO program: io
io started
halcmd loadusr io started
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4157
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done


Best Regards
Henrique

Please Log in or Create an account to join the conversation.

More
23 Feb 2015 22:03 #56235 by ArcEye
Hi

You seem to be running a Xenomai kernel and an old Linuxcnc 2.6 by the look of it.
I think this may be one of Charles's old images, it might even come from the UBC3 testing era
before the fork into Machinekit

You need to go to the Machinekit forum, Linuxcnc does not support Xenomai or ARM processors in any of its branches any more
There are much newer rPi xenomai images available there
groups.google.com/forum/#!forum/machinekit

In this instance I can assist with the error, the cause of the error is in the log

/usr/libexec/linuxcnc/rtapi_app_xenomai: FATAL - will not run as root


Even if you build as root, it will not run with a root user.
(unless you modify the code, but I won't go into that)

regards

Please Log in or Create an account to join the conversation.

More
23 Feb 2015 22:22 #56238 by knorst
Hello

Thanks for the reply, actually the problem was much more "noob"... I was starting the startx with root permissions...

Sometimes a sudo it's hard to find hehehhe

It's working right now.

About the iso, I just pickup one to test the funcionality. Actually I have an UDOO quadcore that I want to use with the LinuxCNC.

Btw, I'll update this rasp image with a newer one.

Regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum