rtapi -- uspace -- "Using POSIX non-realtime"

More
5 years 7 months ago #203843 by andypugh
You should not need to chmod anything.

"sudo make setuid" changes some permissions, but that is all that should be changed, and you should use the script, not do it by hand.

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

More
5 years 7 months ago #204376 by V-max
Hi andy

Thanks a lot for your help and sorry for the delay, I'm in a hurry lately.

I did CHMOD because I had permission problems:

avc@avc:~/LinuxCncRip/src$ sudo make setuid
chown root ../bin/rtapi_app
chmod 4750 ../bin/rtapi_app
chown root ../bin/linuxcnc_module_helper
chmod 4750 ../bin/linuxcnc_module_helper
avc@avc:~/LinuxCncRip/src$ cd ..
avc@avc:~/LinuxCncRip$ cd scripts/
avc@avc:~/LinuxCncRip/scripts$ . ./rip-environment

avc@avc:~/LinuxCncRip/scripts$ linuxcnc
LINUXCNC - 2.8.1
Machine configuration directory is '/home/avc/linuxcnc/configs/Maquina_ethercat'
Machine configuration file is 'maquinaEthercat.ini'
Starting LinuxCNC...
Found file(REL): ./maquinaEthercat.hal
./maquinaEthercat.hal:6: execv(/home/avc/LinuxCncRip/bin/rtapi_app): Permission denied
./maquinaEthercat.hal:6: waitpid failed /home/avc/LinuxCncRip/bin/rtapi_app trivkins
./maquinaEthercat.hal:6: /home/avc/LinuxCncRip/bin/rtapi_app exited without becoming ready
./maquinaEthercat.hal:6: insmod for trivkins failed, returned -1
Shutting down and cleaning up LinuxCNC...
/home/avc/LinuxCncRip/scripts/realtime: line 176: /home/avc/LinuxCncRip/bin/rtapi_app: Permission denied
LinuxCNC terminated with an error. You can find more information in the log:
/home/avc/linuxcnc_debug.txt
and
/home/avc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
avc@avc:~/LinuxCncRip/scripts$ cd ..
avc@avc:~/LinuxCncRip$ cd bin/
avc@avc:~/LinuxCncRip/bin$ sudo chmod 777 rtapi_app
avc@avc:~/LinuxCncRip/bin$ cd ..
avc@avc:~/LinuxCncRip$ cd scripts/
avc@avc:~/LinuxCncRip/scripts$ linuxcnc
LINUXCNC - 2.8.1
Machine configuration directory is '/home/avc/linuxcnc/configs/Maquina_ethercat'
Machine configuration file is 'maquinaEthercat.ini'
Starting LinuxCNC...
Found file(REL): ./maquinaEthercat.hal
Note: Using POSIX non-realtime
.
.
.
.

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

More
5 years 7 months ago #204380 by andypugh
There is something strange going on here, it seems.
Who owns linuxcnc-dev?
Try
Code:
make clean git clean
then check the permissions in linuxcnc-dev (should all belong to your user)
then the
Code:
./autogen.sh ./configure make sudo make setuid
sequence.

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

More
5 years 6 months ago #204940 by V-max
Hi Andy
if there are permissions problems this maybe help.
"
avc@avc:~$ ls -l
total 60
drwxr-xr-x 4 avc avc 4096 Mar 24 20:50 Desktop
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Documents
drwxr-xr-x 3 avc avc 4096 Apr 3 10:32 Downloads
drwxr-xr-x 4 root root 4096 Mar 21 10:19 ec-debianize
drwxr-xr-x 16 root root 4096 Mar 10 10:10 ethercat-hg
drwxr-xr-x 4 avc avc 4096 Mar 10 14:08 linuxcnc
-rw
1 avc avc 56 Mar 24 21:59 linuxcnc_debug.txt
drwxr-xr-x 7 avc avc 4096 Mar 24 21:06 linuxcnc-ethercat
-rw
1 avc avc 771 Mar 24 21:59 linuxcnc_print.txt
drwxr-xr-x 21 root root 4096 Mar 10 22:14 LinuxCncRip
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Music
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Pictures
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Public
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Templates
drwxr-xr-x 2 avc avc 4096 Mar 9 19:01 Videos
avc@avc:~$
"

Must I reinstall all root programs without use sudo commands?

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

More
5 years 6 months ago #204942 by andypugh
I don't know for sure, but my linuxcnc-dev directory is owned by my user.

I would be tempted to chmod that to yourself and see if it helps.

(Or just re-clone it without a sudo)

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

More
5 years 6 months ago #205128 by PCW

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

Time to create page: 0.152 seconds
Powered by Kunena Forum