I wrote up a method in which to install make-snake onto a debian install and allow it to run and be recompiled. I was wondering if it was reasonable to add it to the Development Wiki page?
Guide:
How to setup the make-snake dev enviroment on a Debian Based system.
To start make sure that you have pip and python installed.
python --version
pip --version
If you do not have pip installed you can install it via
sudo apt-get install python-pip
or By following the instructions here:
http://pip.readthedocs.org/en/latest/installing.html
Once you have those installed you then will need to install kano-debber. Found here: https://github.com/KanoComputing/kano-debber
You can follow the instructions there to download or you can run:
git clone https://github.com/KanoComputing/kano-debber.git
Next cd into kano-debber:
cd kano-debber
Then you will need to run the two scripts to prepare your system.
First:
sudo ./prepare-system.sh
(This will setup the dependancies and needed programs)
sudo ./prepare-deb.py
(This will setup the nessisary deb packages that you will need to run make-snake, as well as pull down the repos)
Once those have been run it is time to get the repos that are available:
sudo ./kano-debber.py -g all -dbi (this command will pull down all the repos available at the moment.)
Now you have all of the code you need to run make-snake, however we have to setup the enviroment for your user in order for it to run at all.
First create a kanousers group:
sudo groupadd kanousers
Add your user to that group:
sudo usermod -a -G kanousers [USERNAME]
The Final step is to create a profile.json for kano apps to look for.
Create a .kanoprofile directory in your home directory
cd ~/
mkdir .kanoprofile
cd .kanoprofile
Make a proile directory
mkdir profile; cd profile;
Now create a profile.json
vim profile.json or nano profile.json
Now in your profile.json you will need the following (Most of this comes from KanoDevBox profile):
{
"last_save_date": "2014-04-08T03:59:43.002988",
"mac_addr": "[MAC ADDRESS]",
"username_linux": "[USERNAME]",
"device_id":"1234"
}
In the [MAC ADDRESS] put your computers mac address, which if you need to fine it just run:
ifconfig |grep HWaddr
In [USERNAME] put your username.
device_id was added into the profile as a way to override the issues with some of kano's python not being able to find a serial number or a device id.
Once this is saved you should be good to run make-snake.
If you decided to play with the make-snake code to recomile and install just run:
sudo ./kano-debber.py -n snake -bi -v