-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
33 lines (26 loc) · 968 Bytes
/
install.sh
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
#!/bin/bash
########################################################################
# rfid client for Raspberry Zero #
# 3/06/2019 #
########################################################################
if [ "$(whoami)" != "root" ]; then
echo "Run script as ROOT ! (sudo bash install.sh)"
exit
fi
echo "------------------------------------------------------------------"
echo " RFID CLIENT installation"
echo "------------------------------------------------------------------"
# Solve locales Perl language issue
export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8
locale-gen fr_FR.UTF-8
dpkg-reconfigure locales
# Update de Raspberry Pi
apt-get update -y && apt-get upgrade -y
apt-get install -y git vim python3-pip acl
pip3 install mysql.connector
apt-get autoremove -y
apt-get autoclean -y
#activate SPI and reboot
raspi-config