I followed this tutorial for installing arduino: http://www.pluggy.me.uk/arduino-ubuntu/
I installed Openjdk-6-jre, gcc-avr, avr-libc using synaptic package manager and allowed to install whatever extra it wanted to install.
Then now when i try to compile a code, i get this error: Cannot run program "/home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++": java.io.IOException: error=13, Permission denied
Then i enabled the "Allow executing file as program" in permissions tab for that avr-g++ file. But now i get an error like this:
/home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++: line 3: /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-g++: Permission denied
/home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++: line 3: exec: /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-g++: cannot execute: Permission denied
/home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++ returned 126
I don't know what to do now.. Can any linux expert help me in this issue