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