Installing leJOS NXJ for Lego Mindstorm

I was trying to install leJOS to my Lego minstorm brick. I used ubuntu and got into trouble when I tried to flash the lego brick. I realized that the problem is that I didn’t have write permission to usb device. If I used sudo, I didn’t know how to export the environment variable NXJ_HOME.

I tried sudo export NXJ_HOME=~/lejos_nxj but it didn’t work. It turns out the solution is easy. What I need is simply

sudo -s

Leave a Reply

Your email address will not be published. Required fields are marked *