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
*******************

 採用された回答

Hariprasad Ravishankar
Hariprasad Ravishankar 2022 年 12 月 20 日

0 投票

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 件のコメント

Liwei
Liwei 2022 年 12 月 20 日
Thanks for the useful response. Will try tomorrow
Anoop George
Anoop George 2023 年 5 月 24 日
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?
Ramakrishna Mandalapu
Ramakrishna Mandalapu 2023 年 5 月 24 日
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.
Anoop George
Anoop George 2023 年 5 月 24 日
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
Ramakrishna Mandalapu
Ramakrishna Mandalapu 2023 年 5 月 25 日
Hi Anoop,
Glad to know that it resolved the issue. Happy coding!
Thanks,
Ramakrishna

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by