default user pass: pi:raspberry

Change default password:

SSH to node

sudo passwd pi (or whatever user)

enter secure pass

confirm secure pass

First things first, UPDATE!!:

sudo apt-get update

Install FTP Server for easier file handling:

Sudo apt-get install vsftpd

sudo nano/etc/vsftpd.conf

change anonymous_enable=off to #anonymous_enable=off

change #local_enable=on to local_enable=on

change #write_enable=on to write_enable=on

 

Restart server:

sudo service vsftpd restart

 

Add Onewire to header in boot:

sudo nano /boot/config.txt

add following dtoverlay=w1-gpio

connect onewire: 

ds1820connect

Test Onewire:

sudo modprobe w1-gpio

sudo modprobe w1-therm

cd /sys/bus/w1/devices

ls cd 28-xxxx (change this to match what serial number pops up)

cat w1_slave

Add Mysql to python ... that is If you use python:

 sudo apt-ge install python-mysqldb

Add cron job to run every 5 mins:

crontab -e

add line as follow:

m h dom mon dow command

# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed

*/5 * * * * python /path to your script/ args

!!! DO remember to restart Cron service:

sudo service cron restart

 Set static IP address:

sudo nano /etc/network/interfaces

 change 

iface eth0 inet dhcp

to (or what ever IPv4 address and gateway you prefer)

auto eth0
iface eth0 inet static
address 192.0.2.7
netmask 255.255.255.0
gateway 192.0.2.254

jackpot city casino
Thursday the 22nd - Full Page copyright - Design by top10binaryoptions.net