by mdsmitty » Mon Dec 31, 2007 3:34 pm
Add all the export stuff to your .profile file its a hidden file in the root of your home folder. if you don't have one make one. logout and log back in. here is a copy of the lejos stuff in mine its for both the rcx and nxt
export JAVA_HOME=/home/mike/bin/java
export NXJ_HOME=/home/mike/lejos_nxj
export LEJOS_HOME=/home/mike/lejos_rcx
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LEJOS_HOME/bin
export RCXTTY=/dev/usb/legousbtower0
export CLASSPATH=$CLASSPATH:.:$LEJOS_HOME/lib/classes.jar:$LEJOS_HOME/lib/pcrcxcomm.jar
PATH=/home/mike/bin/java/bin:/home/mike/lejos_rcx/bin:/home/mike/lejos_nxj/bin:$PATH
The following is from the readme.html file
To use udev rules, set up a file such as /etc/udev/rules.d/70-lego.rules and populate it with the following lines:
# Lego NXT
BUS=="usb", SYSFS{idVendor}=="03eb", GROUP="lego", MODE="0660"
BUS=="usb", SYSFS{idVendor}=="0694", GROUP="lego", MODE="0660"
You have to also create a group called lego and add your self to it.
This should take care of your problems
For bluetooth you can upload your programs by typing the following "nxj -b -d 00:16:53:03:7B:CF filename". If you don't put -d and your nxt address it will take a lot longer since lejos will have to find it. to get your address type "hcitool scan" and you'll see your nxt. I have tried uploading with the name for the nxt and this does not seam to work. You could set a variable for your address so you don't have to type it.