|
@@ -5,28 +5,25 @@ |
|
|
# Configuration du nom reseau du module |
|
|
# Configuration du nom reseau du module |
|
|
echo "allo-gg" > /etc/hostname |
|
|
echo "allo-gg" > /etc/hostname |
|
|
|
|
|
|
|
|
# Execution automatique de bash a la connexion |
|
|
|
|
|
echo "bash" >> /home/allo-gg/.profile |
|
|
|
|
|
|
|
|
|
|
|
# MAJ et installation des utilitaires |
|
|
# MAJ et installation des utilitaires |
|
|
cd |
|
|
|
|
|
|
|
|
cd || exit |
|
|
apt-get -y update |
|
|
apt-get -y update |
|
|
apt-get -y upgrade |
|
|
apt-get -y upgrade |
|
|
apt-get -y install apache2 php7.0 git-core vim tree rsync lsof curl screen |
|
|
apt-get -y install apache2 php7.0 git-core vim tree rsync lsof curl screen |
|
|
|
|
|
|
|
|
# Installation de log2ram |
|
|
# Installation de log2ram |
|
|
git clone https://github.com/azlux/log2ram.git |
|
|
git clone https://github.com/azlux/log2ram.git |
|
|
cd log2ram |
|
|
|
|
|
|
|
|
cd log2ram || exit |
|
|
chmod +x install.sh |
|
|
chmod +x install.sh |
|
|
./install.sh |
|
|
./install.sh |
|
|
cd |
|
|
|
|
|
|
|
|
cd || exit |
|
|
|
|
|
|
|
|
# Installation de wiringPi |
|
|
# Installation de wiringPi |
|
|
git clone git://git.drogon.net/wiringPi |
|
|
git clone git://git.drogon.net/wiringPi |
|
|
cd wiringPi |
|
|
|
|
|
|
|
|
cd wiringPi || exit |
|
|
chmod +x build |
|
|
chmod +x build |
|
|
./build |
|
|
./build |
|
|
cd |
|
|
|
|
|
|
|
|
cd || exit |
|
|
|
|
|
|
|
|
# Creation de l'utilisateur |
|
|
# Creation de l'utilisateur |
|
|
useradd --create-home allo-gg |
|
|
useradd --create-home allo-gg |
|
@@ -34,6 +31,9 @@ adduser allo-gg sudo |
|
|
echo allo-gg:allo-gg | chpasswd |
|
|
echo allo-gg:allo-gg | chpasswd |
|
|
echo root:allo-gg | chpasswd |
|
|
echo root:allo-gg | chpasswd |
|
|
|
|
|
|
|
|
|
|
|
# Execution automatique de bash a la connexion |
|
|
|
|
|
echo "bash" >> /home/allo-gg/.profile |
|
|
|
|
|
|
|
|
# Autoriser le reboot du module |
|
|
# Autoriser le reboot du module |
|
|
echo >> /etc/sudoers |
|
|
echo >> /etc/sudoers |
|
|
echo "## user is allowed to execute halt and reboot" >> /etc/sudoers |
|
|
echo "## user is allowed to execute halt and reboot" >> /etc/sudoers |
|
|