|
@@ -2,7 +2,7 @@ |
|
|
# Allo-GG |
|
|
# Allo-GG |
|
|
# Installation de Allo-GG sur un Pi Zero avec Rasbian. |
|
|
# Installation de Allo-GG sur un Pi Zero avec Rasbian. |
|
|
|
|
|
|
|
|
# Configuration du nom réseau du module |
|
|
|
|
|
|
|
|
# Configuration du nom réseau du module |
|
|
echo "allo-gg" > /etc/hostname |
|
|
echo "allo-gg" > /etc/hostname |
|
|
|
|
|
|
|
|
# Installation des dependances |
|
|
# Installation des dependances |
|
@@ -24,10 +24,11 @@ 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 |
|
|
|
|
|
|
|
|
# Autoriser l'utilisateur allo-gg a controler le 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 |
|
|
echo "allo-gg ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" >> /etc/sudoers |
|
|
echo "allo-gg ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" >> /etc/sudoers |
|
|
|
|
|
echo "www-data ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" >> /etc/sudoers |
|
|
|
|
|
|
|
|
# Autorisation de clefs SSH publiques |
|
|
# Autorisation de clefs SSH publiques |
|
|
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbvr8J95SXj0byVhBSOt/iShxzf0TVGKaxvo4d+pdrEaiDFxQEn/Iim9qEH9FXV9kQ8frUuYmVbh7Rqvh8QpTQM77eLHeZgXejw7St0OMmZSGpUsomIANZQNspDQ/qQbXFXmKnGJiC7TCEqaNoDTmHrdZ4Hvei4ly16e8Zic5pjcMruNeixcVkZOLJZWViGgbMlZN8jSll9pFfNRYKhIp6boalK5DexzgUZkUCk4HkPHo0I70LyElINmt9PkpHwzAFbsTRmI27Z9C5xI5OZ86aL+Kq4lm+MoD+f3hDiOdAByNqIEU1LU7tnMpQHbKSYSoVHlySF1+tuw3O1E4HQO45 heuzef@x240" >> /home/allo-gg/.ssh/authorized_keys |
|
|
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbvr8J95SXj0byVhBSOt/iShxzf0TVGKaxvo4d+pdrEaiDFxQEn/Iim9qEH9FXV9kQ8frUuYmVbh7Rqvh8QpTQM77eLHeZgXejw7St0OMmZSGpUsomIANZQNspDQ/qQbXFXmKnGJiC7TCEqaNoDTmHrdZ4Hvei4ly16e8Zic5pjcMruNeixcVkZOLJZWViGgbMlZN8jSll9pFfNRYKhIp6boalK5DexzgUZkUCk4HkPHo0I70LyElINmt9PkpHwzAFbsTRmI27Z9C5xI5OZ86aL+Kq4lm+MoD+f3hDiOdAByNqIEU1LU7tnMpQHbKSYSoVHlySF1+tuw3O1E4HQO45 heuzef@x240" >> /home/allo-gg/.ssh/authorized_keys |
|
|