-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
71 lines (49 loc) · 1.79 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
GNU nano 2.2.6 File: install notes.txt
raspberry instalation
1 at instalation
overclock
change amount of mem used for the gpu
setup one wire
to load at boot at these lines to to /etc/modules else just run when they have to be used
if it is ds18b20par (parasite power) this works and no external pullup is nedded
w1-gpio pullup=1
w1-therm strong_pullup=2
for normal ds18b20 use
w1-gpio
w1-therm
Connection
ds18b20 raspberry
gnd gnd
qn gpio4 (leg 7)
vcc 3,3v (not needed for parasite power)
instal wireringpi and lamp and java
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openjdk......
sudo apt-get install apache2 php5 mysql-client mysql-server tomcat6 vsftpd
sudo apt-get install git-core
git clone git://git.drogon.net/wiringPi
To build/install there is a new simplified script:
cd wiringPi
./build
The new build script will compile and install it all for you – it does use the sudo command at one point,$
If you have already used the clone operation for the first time, then
cd wiringPi
git pull origin
Will fetch an updated version then you can re-run the build script below.
when compiling use -lwiringPi
*****************
to make wifi reconnect, run this with cron
#!/bin/bash
if ifconfig wlan0 | grep -q "inet addr:" ; then
sleep 60
else
echo "Network connection down! Attempting reconnection."
ifup --force wlan0
sleep 10
fi
*************
1. sudo crontab -e
2. At the bottom of the file, enter a line that looks like this (this presumes your script is named "network-monitor.sh"
# m h dom mon dow command
*/5 * * * * /home/pi/network-monitor.sh