-
Notifications
You must be signed in to change notification settings - Fork 35
Installation
After installing ubuntu 12.04, first of all you should update your package definitions and upgrade your software.
sudo apt-get update
sudo apt-get upgrade
Download the debian package we have prepared for you
https://www.dropbox.com/s/iozqyk6w3net0ao/codebender-arduino-compiler_1.0_all.deb
Install the package:
sudo dpkg -i codebender-arduino-compiler_1.0_all.deb
The system will complain about missing dependencies. That is completely normal. To take care of dependencies, and start the installation procedure, execute:
sudo apt-get install -f
During the installation, you will be asked to edit some configs. The only ones that you should need to change are the arduino_core_dir and auth_key. In the first one, enter the folder where you will save your Arduino core files (see Downloading Arduino Cores). In the second one, write a unique string that you will use for authorization.
That's it! Try out the compiler. Go to
http://your_servers_ip_address/compiler/status
You should get the following:
{""success":true,status":"OK"}
If you want to be able to use the development mode and access debug info from Symfony, then open
/opt/codebender/codebender-arduino-compiler/Symfony/web/app_dev.php
and comment out these two lines at the beginning of the file
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(FILE).' for more information.');
Download the arduino-files sketch from GitHub and put them on the path you provided above (Guide on that coming soon™)