« Raspbian Commandes » : différence entre les versions
Aucun résumé des modifications |
|||
| Ligne 1 : | Ligne 1 : | ||
=== Redémarrer === | === Redémarrer === | ||
< | <syntaxhighlight lang="bash" line copy> | ||
sudo reboot | sudo reboot | ||
</ | </syntaxhighlight> | ||
=== Arrêt === | === Arrêt === | ||
< | <syntaxhighlight lang="bash" line copy> | ||
sudo shutdown -h now | sudo shutdown -h now | ||
</ | </syntaxhighlight> | ||
=== Firewall === | === Firewall === | ||
< | <syntaxhighlight lang="bash" line copy> | ||
# Créer /etc/init.d/firewall | |||
Afin de l'ajouter aux scripts appelés au démarrage : | # Afin de l'ajouter aux scripts appelés au démarrage : | ||
# Ajouter une entête dans le fichier | |||
#!/bin/sh | #!/bin/sh | ||
| Ligne 26 : | Ligne 26 : | ||
### END INIT INFO | ### END INIT INFO | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="bash" line copy> | ||
Sauvegarde | # Sauvegarde | ||
sudo systemctl enable firewall | sudo systemctl enable firewall | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="bash" line copy> | ||
Relance | "Relance | ||
sudo update-rc.d firewall defaults | sudo update-rc.d firewall defaults | ||
</ | </syntaxhighlight> | ||
démarrer un deamon -> http://manpages.ubuntu.com/manpages/trusty/fr/man8/update-rc.d.8.html | démarrer un deamon -> http://manpages.ubuntu.com/manpages/trusty/fr/man8/update-rc.d.8.html | ||
< | <syntaxhighlight lang="bash" line copy> | ||
sudo /etc/init.d/firewall status | |||
</syntaxhighlight> | |||
=== cron === | === cron === | ||
< | <syntaxhighlight lang="bash" line copy> | ||
#relancer service cron | #relancer service cron | ||
sudo /etc/init.d/cron restart | sudo /etc/init.d/cron restart | ||
| Ligne 52 : | Ligne 54 : | ||
journalctl | grep -Ei 'dhcp6' | journalctl | grep -Ei 'dhcp6' | ||
ip -6 route | ip -6 route | ||
</ | </syntaxhighlight> | ||
=== Désactivation === | === Désactivation === | ||
==== Bluetooth & Wifi ==== | ==== Bluetooth & Wifi ==== | ||
< | <syntaxhighlight lang="bash" line copy> | ||
dans /boot/config.txt | dans /boot/config.txt | ||
dtoverlay=pi3-disable-wifi | dtoverlay=pi3-disable-wifi | ||
dtoverlay=pi3-disable-bt | dtoverlay=pi3-disable-bt | ||
puis sudo reboot | puis sudo reboot | ||
</ | </syntaxhighlight> | ||
==== ipv6 ==== | ==== ipv6 ==== | ||
< | <syntaxhighlight lang="bash" line copy> | ||
* au démarage | # * au démarage | ||
dans /etc/sysctl.d/ | # dans /etc/sysctl.d/ | ||
créer /etc/sysctl.d/disableipv6.conf | #créer /etc/sysctl.d/disableipv6.conf | ||
avec : | #avec : | ||
# désactivation de ipv6 pour toutes les interfaces | # désactivation de ipv6 pour toutes les interfaces | ||
| Ligne 81 : | Ligne 83 : | ||
# désactivation de l’auto configuration pour les nouvelles interfaces | # désactivation de l’auto configuration pour les nouvelles interfaces | ||
net.ipv6.conf.default.autoconf=0 | net.ipv6.conf.default.autoconf=0 | ||
</ | </syntaxhighlight> | ||
=== version matériel === | === version matériel === | ||