Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am following the guide to install TinyOS on Ubuntu 12.04

I have done up to step 3, But I am not sure if I have done the step 3 correctly. Because by doing the step 4 I get the permission error :

saeid@saeid-Satellite-C660:~$ tos-install-jni
/usr/bin/tos-install-jni: 13: [: =: unexpected operator
Installing 32-bit Java JNI code in /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386 ... 
install: cannot create regular file `/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/': Permission denied

Can you please tell me what would be the actual commands for step 3? What I have to replace with following lines?:

  • /opt/tinyos-2.x files: chown -R /opt/tinyos-2.x
  • Change the permissions on any serial (/dev/ttyS), usb (/dev/tts/usb, /dev/ttyUSB), or parallel (/dev/parport) devices you are going to use: chmod 666 /dev/

I mean how would you do those steps in your ubuntu?

share|improve this question
How did you run the 3rd step please post. In fourth step use sudo tos-install-jni – Manula Waidyanatha Sep 7 '12 at 9:42
aaaah it worked with ` sudo` thanksss – Saeid87 Sep 7 '12 at 9:45
@ManulaWaidyanatha please post your comment as answer so that he can accept it and the question can be resolved. – Anwar Shah Sep 7 '12 at 11:01
up vote 2 down vote accepted

Use command sudo tos-install-jni to avoid permission denied error.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.