## LAMP

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5
sudo apt-get install php5-mysql

## lighttpd

sudo apt-get install lighttpd
sudo apt-get install mysql-server
sudo apt-get install php5-common php5-cgi php5
sudo apt-get install php5-mysql


############################################################3

To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command
>> sudo lighty-enable-mod fastcgi-php


Then reload the server using
>> sudo service lighttpd force-reload

Set permissions on the web directory /var/www/

It is useful to change the permissions on the www directory to allow your user to update the webpages without needing to be root.

Change the directory owner and group
>> sudo chown www-data:www-data /var/www


allow the group to write to the directory
>> sudo chmod 775 /var/www


Add the pi user to the www-data group
>> sudo usermod -a -G www-data pi

 

## Motion

sudo apt-get install motion

http://pingbin.com/2012/12/raspberry-pi-web-cam-server-motion/
http://gsyan888.blogspot.tw/2013/04/raspberry-pi-webcam-mjpg-streamer.html

 

## openjdk7

sudo apt-get install openjdk-7-jdk

 

## scratch and gpio

#http://cymplecy.wordpress.com/2013/04/22/scratch-gpio-version-2-introduction-for-beginners/
sudo wget https://dl.dropbox.com/s/oql4qzm8jlnsbeb/install_scratch_gpio2.sh -O /boot/install_scratch_gpio2.sh
sudo /boot/install_scratch_gpio2.sh

 

## WebOPi

$ wget http://webiopi.googlecode.com/files/WebIOPi-0.6.0.tar.gz
$ tar xvzf WebIOPi-0.6.0.tar.gz
$ cd WebIOPi-0.6.0
$ sudo ./setup.sh

################################################
$ sudo webiopi [-h] [-c config] [-l log] [-s script] [-d] [port]

Options:
-h, --help Display this help
-c, --config file Load config from file
-l, --log file Log to file
-s, --script file Load script from file
-d, --debug Enable DEBUG

Arguments:
port Port to bind the HTTP Server

$ sudo /etc/init.d/webiopi start
$ sudo /etc/init.d/webiopi stop
$ sudo update-rc.d webiopi defaults

 

## BerryIO

https://github.com/NeonHorizon/berryio

wget -N https://raw.github.com/NeonHorizon/berryio/master/scripts/berryio_install.sh
chmod +x berryio_install.sh
sudo ./berryio_install.sh

// Test BerryIO is working
berryio help

 

文章標籤
全站熱搜
創作者介紹
創作者 Mr.Y 的頭像
Mr.Y

航向新世界

Mr.Y 發表在 痞客邦 留言(0) 人氣(79)