« Raspbian Commandes » : différence entre les versions

Aucun résumé des modifications
Ligne 1 : Ligne 1 :
=== Redémarrer ===
=== Redémarrer ===
<pre>
<syntaxhighlight lang="bash" line copy>
sudo reboot
sudo reboot
</pre>
</syntaxhighlight>


=== Arrêt ===
=== Arrêt ===
<pre>
<syntaxhighlight lang="bash" line copy>
sudo shutdown -h now
sudo shutdown -h now
</pre>
</syntaxhighlight>


=== Firewall ===
=== Firewall ===
<pre>
<syntaxhighlight lang="bash" line copy>
créer /etc/init.d/firewall
# 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
# Ajouter une entête dans le fichier


  #!/bin/sh
  #!/bin/sh
Ligne 26 : Ligne 26 :
### END INIT INFO
### END INIT INFO


</pre>
</syntaxhighlight>


<pre>
<syntaxhighlight lang="bash" line copy>
Sauvegarde
# Sauvegarde
sudo systemctl enable firewall
sudo systemctl enable firewall
</pre>
</syntaxhighlight>


<pre>
<syntaxhighlight lang="bash" line copy>
Relance
"Relance
sudo update-rc.d firewall defaults
sudo update-rc.d firewall defaults
</pre>
</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


<code>sudo /etc/init.d/firewall status</code>
<syntaxhighlight lang="bash" line copy>
sudo /etc/init.d/firewall status
</syntaxhighlight>


=== cron ===
=== cron ===
<pre>
<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
</pre>
</syntaxhighlight>


=== Désactivation ===
=== Désactivation ===
==== Bluetooth & Wifi ====
==== Bluetooth & Wifi ====
<pre>
<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
</pre>
</syntaxhighlight>


==== ipv6 ====
==== ipv6 ====
<pre>
<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
</pre>
</syntaxhighlight>


=== version matériel ===
=== version matériel ===