RTAPI: ERROR: failed to map shmem RTAPI: Locked memory limit is 32KiB, recommended at least 20480KiB. This can cause the error 'failed to map shmem'.then the problem is the your system's configured limit of locked memory.
Edit /etc/security/limits.conf with your favorite text editor (e.g., sudo gedit /etc/security/limits.conf). Add the following line
* - memlock 20480Log out and log back in, or restart the system.