nxcEditor and its step by step installation

Do you need to install nxcEditor, but you are new to Linux ? This tutorial shall guide you through the nxcEditor installation steps even if you have no experience with Linux.

First of all, let's make a brief introduction into this editor. The NxcEditor is used for programming a NXT robot with a Linux operating system. The program can optionally be run on the real robot or the nxcSimulator, which is integrated in the nxcEditor.

To write a program, Not eXactly C, or NXC , is used. NXC is a programming language for the Lego Mindstorms NXT with syntax like C. This programming language is really simple and suitable even for those, who have no experience with programming yet.

alt

Installation

Download the latest version of nxcEditor and nbc_ and_ nexttool zip file from this webpage: https://sourceforge.net/projects/nxceditor/files/nxcEditor/ , choosing the correct file for your system architecture : 32/64 bit machine.

Extract the nbc_ and_ nexttool zip file.

alt

After you’ve downloaded the files, open the terminal ( an interface in which you can type and execute text based commands) and type :

sudo add-apt-repository ppa:gambas-team/gambas3

press Enter to continue

alt

Next, type : sudo apt-get update
now, when the system had been updated, install Gambas (free development environment).

sudo apt-get install gambas3

After gambas3 has been installed, we need to copy previously downloaded nbc and nexttool files into the '/usr/local/bin' folder.
Navigate to the folder, where you have downloaded your nxc editor using cd commad and then type : sudo cp nbc nexttool /usr/local/bin ( to find out which directory you are currently located in, you can use ls –l command):

alt

Navigate to ‘/usr/local/bin’ folder: cd /usr/local/bin
And change the permissions of the files typing:sudo chmod +x nbc nexttool

alt

now, type: sudo visudo and scroll to the bottom of the page and add :
ALL ALL = NOPASSWD: /usr/local/bin/nbc ALL ALL = NOPASSWD: /usr/local/bin/nexttool

alt

press 'ctrl + x' to exit and 'y' to save.
Navigate to where the binary executable file is located and make it executable :
sudo chmod +x nxcEditor_v0.4.3_64.gambas (use the exact name of the nxcEditor you have downloaded ).
Now, the nxc editor has been installed.

If you do not use Ubuntu or Mint, you will have to copy “70-nxt.rules” in folder /etc/udev/rules.d : cp 70-nxt.rules /etc/udev/rules.d .

alt

List of commands used in order to install nxcEditor:

sudo add-apt-repository ppa:gambas-team/gambas3

sudo apt-get update

sudo apt-get install gambas3

after navigating to the folder, where your nbc and nexttool are located:
sudo cp nbc nexttool /usr/local/bin

cd /usr/local/bin

sudo chmod +x nbc nexttool

sudo visudo
and add to the bottom of the page:

ALL ALL = NOPASSWD: /usr/local/bin/nbc ALL ALL = NOPASSWD: /usr/local/bin/nexttool

'ctrl + x' to exit and 'y' to save.
after navigating to the folder, where your nxcEditor is located:

sudo chmod +x nxcEditor_v0.4.3_64.gambas

cp 70-nxt.rules /etc/udev/rules.d (not required for Ubuntu or Mint).