Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NXT support for Linux #1

Open
wants to merge 1 commit into
base: main-ru
Choose a base branch
from
Open

Add NXT support for Linux #1

wants to merge 1 commit into from

Conversation

zhitm
Copy link

@zhitm zhitm commented Dec 10, 2023

What?

I've added NXT support for GNU/Linux so this PR allows to compile and load programs via USB connection on Lego NXT.
I suggest the user to follow the link https://help.trikset.com/nxt/run-upload-programs to get help.

How?

I have updated run-upload-programs.md

@zhitm zhitm changed the title NXT support for Linux Add NXT support for Linux Dec 21, 2023

Чтобы его запустить, достаточно написать в консоль из папки со скриптом
```chmod +x download-arm-eabi.sh
./download-arm-eabi.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Скрипт должен быть исполняемым сразу после извлечения/установки. И тогда тут не будет этого шага.

@@ -42,6 +42,43 @@

![](../.gitbook/assets/nxt-usb-2.png)

Если вы хотите использовать режим «Генерация» на Linux, то:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не получится инструкция, которая ко всем Линуксам применима. Надо сразу указать, на чём тестировалось (для чего применимо), а остальные пусть пользуются аналогичными шагами.


1. Откройте терминал (его можно открыть комбинацией Ctrl+Alt+T) и напишите:
```
sudo addgroup legonxt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Наверное, более правильно использовать groupadd и useradd для добавления из консоли. Ну и не везде присутствует sudo.

1. Откройте терминал (его можно открыть комбинацией Ctrl+Alt+T) и напишите:
```
sudo addgroup legonxt
sudo adduser $USER legonxt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для привилегированной сессии не всегда используется sudo. Надо посмотреть, как обычно пишут в инструкциях, ну или спасёт упоминание в начале страницы, что это для конкретного линукса всё сделано (Ubuntu с bash)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants