Skip to content

shenzt/automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Automation

The details of BBB board

http://elinux.org/Beagleboard:BeagleBoneBlack

Download the latest Ubuntu image from

http://elinux.org/BeagleBoardDebian#eMMC:_BeagleBone_Black

Holding down the boot button, apply power to the board. Continue to hold boot botton until USER LEDs begin to flash

Expanding the file system partition

http://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD

Setup WIFI Connection

Add the following settings to /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid "SSID"
    wpa-psk "password"

Change time zone

sudo mv /etc/localtime /etc/localtime-utc
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Change your hostname

sudo nano /etc/hostname

Change DNS server

sudo nano /etc/resolv.conf

Create a new user

sudo adduser shenzt
adduser shenzt sudo # Make it sudo user

Disable apache2

sudo update-rc.d apache2 disable 

Setup Python environment

sudo apt-get install python-pip
sudo pip install xively-python --pre
sudo pip install pyserial
sudo pip install socketIO_client

Setup PostgreSQL

sudo apt-get install postgresql postgresql-server-dev python-psycopg2 

edit /etc/postgresql/9.1/main/pg_hba.conf with the following lines.

local   all             postgres                                trust
local   all             automation                              trust

Misc

apt-get install curl 

Start the scripts from boot

 sudo nano /etc/rc.local

Add the following commands

/opt/automation/script/startup.sh

On Raspbian

sudo apt-get install python-pip
sudo pip install xively-python --pre
sudo pip install pyserial
sudo pip install socketIO_client pytz
sudo apt-get install postgresql python-psycopg2 nodejs npm

Install pyapwi

https://code.google.com/archive/p/python-weather-api/ sudo npm install forever -g

About

Automation Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published