-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
65 lines (51 loc) · 1.62 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
based on 2017-11-29-raspbian-stretch-lite.img
passwd pi
NEWUSER=acki
sudo bash -c "sed -i -e 's/^pi:/$NEWUSER:/' -e 's/\/pi/\/$NEWUSER/' /etc/passwd; \
sed -i -e 's/^pi:/$NEWUSER:/' /etc/shadow; \
sed -i -e 's/^pi:/$NEWUSER:/' /etc/group; \
sed -i -e 's/:pi/:$NEWUSER/' /etc/group; \
mv /home/pi /home/$NEWUSER"
sudo visudo
%sudo ALL=(ALL) NOPASSWD:ALL
sudo raspi-config
setup
locale
hostname
extendfs
sudo systemctl stop avahi-daemon.service
sudo systemctl disable avahi-daemon.service
sudo systemctl stop triggerhappy
sudo systemctl disable triggerhappy
- disable bt
config.txt += #dtparam=audio=on
dtoverlay=pi3-disable-bt
dtparam=act_led_trigger=heartbeat
#dtparam=act_led_activelow=on
- switch of tvservice
rc.local += /usr/bin/tvservice -o
sudo apt install screen
screen
sudo apt update
sudo apt upgrade
sudo apt install build-essential checkinstall git
sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
sudo tar xzf Python-3.7.2.tgz
cd Python-3.7.2
sudo ./configure --enable-optimizations
sudo make altinstall
sudo -i
cd /opt/
git clone [email protected]:manfred-ackermann/DoorPI3.git doorpi
cd /opt/doorpi
/usr/local/bin/python3.7 -m venv venv
source venv/bin/activate
#pip install RPi.GPIO
#pip install gpiozero
#pip install tornado
#pip install requests
#pip install validators
pip install -r requirements.txt