Compatibility of Debian and Matlab

48 views
Skip to first unread message

Cheng Chen

unread,
Feb 26, 2021, 3:27:41 PM2/26/21
to BeagleBoard
Hi, 

I have a question about connection between Beaglebone Black and Matlab. 
I was trying to control BBB with Matlab. But when I ran the command on Matlab, there is always some errors suggested access denied. Then I found that is because I do not have access to superuser. While I checked Debian I installed on Beaglebone (it is the recommended image on Beaglebone website), I cannot use the root user to log in. However I am able to use sudo command  to add privilege to the debian account. The problem is that I am not able to add privilege in Matlab this way, therefore I cannot successfully run the Matlab code. 
I wonder if anyone have encountered the same problem? 
Thanks in advance. 

Regards,
Cheng

Dennis Lee Bieber

unread,
Feb 27, 2021, 8:39:43 AM2/27/21
to Beagleboard
On Fri, 26 Feb 2021 11:51:39 -0800 (PST), in
gmane.comp.hardware.beagleboard.user Cheng Chen
<chenc2442-Re5JQE...@public.gmane.org> wrote:

>Hi,
>
>I have a question about connection between Beaglebone Black and Matlab.
>I was trying to control BBB with Matlab. But when I ran the command on
>Matlab, there is always some errors suggested access denied. Then I found
>that is because I do not have access to superuser. While I checked Debian I

For quite some years now login as root has been disabled in many Linux
distributions; logging as a regular user configured for sudoer privilege
has been standard.

What "command"? How does Matlab make its connection -- using SSH? You
may have to see how to configure Matlab to use a different account for
logging into the BBB, and then modify these commands to use "sudo" (though
you still have the problem then of how do you respond to the prompt for
user password -- you might be able to configure the sudoers file to not
require a user password for sudo; Raspberry-Pi is configured that way for
the standard account).



--
Dennis L Bieber

Cheng Chen

unread,
Mar 1, 2021, 11:02:20 AM3/1/21
to BeagleBoard

Hi Dennis, 

Thanks for the reply. 
Yes. Matlab is using SSH for connection. I think the problem I met is exactly what you described: unable to respond to the prompt for root user password. Could you elaborate on "configure the sudoers file to not require a user password for sudo" a little more please? Thanks. 

Regards,
Cheng

Dennis Lee Bieber

unread,
Mar 1, 2021, 1:40:08 PM3/1/21
to Beagleboard
On Sun, 28 Feb 2021 22:01:53 -0800 (PST), in
gmane.comp.hardware.beagleboard.user Cheng Chen
<chenc2442-Re5JQE...@public.gmane.org> wrote:

>Yes. Matlab is using SSH for connection. I think the problem I met is
>exactly what you described: unable to respond to the prompt for root user
>password. Could you elaborate on "configure the sudoers file to not require
>a user password for sudo" a little more please? Thanks.
>

Middle section on adding user to sudoers file -- has an example for a
use with a NOPASSWD option
https://devconnected.com/how-to-add-a-user-to-sudoers-on-debian-10-buster/

If you can configure Matlab as to the user account to use in SSH, you
may be able to create an account specific for it on the Beagle.


--
Dennis L Bieber

Cheng Chen

unread,
Mar 2, 2021, 1:54:34 PM3/2/21
to BeagleBoard
Sounds good. I will try it out. Thanks for the help! Really appreciate it!

Regards,
Cheng

Reply all
Reply to author
Forward
0 new messages