The Nvidia Jetson device can not be remotely connected with my laptop computer

I tried to connect nvidia device (sitting in one of plants far away from my laptop) with my laptop with our company network. it shows the error below. Do you know how to fix this issue?
*************************************
Error using nvidiaio.internal.launchServer
Specified user name must belong to the sudoer group.
Error in nvidiaboard/connectToServer
Error in nvidiaboard/initiatePeripheralAccess
Error in nvidiaboard/checkAndGetHardwareConfig
Error in jetson
***********************************
I then went to the file LauchServer.m (under MATLAB\SupportPackages\R2022b\toolbox\target\Supportpackages\nivida\+nvidiaio\+internal\launchServer.m to make the file change below. it worked. Do u see any side effect by making the change?
from
*******************************
userIsSudoer = true; %#ok<NASGU>
userIsSudoer = nvidiacoder.internal.isUserSudoer(obj);
if ~userIsSudoer
error(message('nvidia:utils:UserNotSudoer'));
end
***********
to
*************
userIsSudoer = true; %#ok<NASGU>
userIsSudoer = nvidiacoder.internal.isUserSudoer(obj);
if ~userIsSudoer
userIsSudoer = true; %#ok<NASGU>
userIsSudoer = nvidiacoder.internal.isUserSudoer(obj);
% error(message('nvidia:utils:UserNotSudoer'));
end
*******************

 Réponse acceptée

Hi @Liwei,
While you were able to workaround the error temporarily by commenting out the code, MATLAB still needs sudo permissions in order to perform tasks such as code execution remotely on the NVIDIA device.
I would recommend adding your username to the sudoers list in the NVIDIA device you are trying to deploy to. Here is an example I found on the web:
You can then revert the change you made to launchServer.m.
Hari

5 commentaires

Thanks for the useful response. Will try tomorrow
Hello,
In my case, although the user 'anoop' is in sudo list, (as seen in the terminal on left), MATLAB is unable to access it. How can we solve this issue?
Hi Anoop,
Are you using RDP client for accessing to Jetson?
1. If so, please confirm that the user is having the sudo permission in the RDP session by following command. On a successful verification you will the below output.
>> sudo -l
User <username> may run the following commands on gpucoder-hyd-xaviernx-1:
(ALL : ALL) ALL
If the user can not run the sudo commands then add the user to the sudo group
>> usermod -aG sudo <username>
2. Check if the uncomplicated firewall (ufw) is blocking the sudo commands on the RDP client
>> sudo ufw status
If it is blocking the RDP port then allow it by using the following command
>> sudo ufw allow <port>
In some cases we experienced issued running sudo commands remotely on the RDP clients. Hence, we suggest using the direct display instead of the remote sessions on Jetson.
Thanks a lot! Directly using the direct display, as suggested by you solved the issue.
Earlier I was using RDP Client (Remote Desktop Connection App).
Best regards
Anoop
Hi Anoop,
Glad to know that it resolved the issue. Happy coding!
Thanks,
Ramakrishna

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by