Uncategorized

PCDUINO Internet-of-Things

#install nodejs
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs

#install lamp server
sudo apt-get install tasksel
sudo tasksel install lamp-server
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
sudo apt-get install libssh2-php
apt-get install phpmyadmin

#install xively
sudo apt-get install git
sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install virtualenv
mkdir xively_tutorial
cd xively_tutorial
virtualenv .envs/venv
source .envs/venv/bin/activate
pip install xively-python
pip install –pre xively-python
FEED_ID=255535458 API_KEY=o2PVRDA59vB8V6zTE34Ii3Q0IHI6es7GD0UX6tL4ZHUpACkb DEBUG=true python xively_tutorial.py

Advertisements