80 lines
1.6 KiB
Markdown
80 lines
1.6 KiB
Markdown
# Tools
|
|
|
|
|
|
|
|
### Prendre une copie d'écran
|
|
|
|
- Appuyer sur la touch ImprimEcran ouvre **Scrot**
|
|
|
|
- Installer GNOME Screenshot
|
|
|
|
```bash
|
|
sudo apt update && sudo apt upgrade
|
|
sudo apt install gnome-screenshot
|
|
```
|
|
|
|
- Depuis le terminal, taper la commande `scrot`
|
|
|
|
```bash
|
|
pi@framboise:~ $ scrot
|
|
pi@framboise:~ $ ls
|
|
2019-01-19-070157_656x416_scrot.png Git Public Videos
|
|
Desktop Music python_games
|
|
Documents oldconffiles share
|
|
Downloads 2019-01-19-070157_656x416_scrot.jpg
|
|
|
|
# avec un délai de 4s (le temps de masquer le terminal ou de dérouler un menu)
|
|
pi@framboise:~ $ scrot -d 4
|
|
```
|
|
|
|
|
|
|
|
|
|
### Connaitre le modèle de RPi
|
|
|
|
```bash
|
|
cat /proc/cpuinfo
|
|
|
|
Hardware : BCM2708
|
|
Revision : 0003
|
|
```
|
|
|
|
Voir le modèle correspondant à la révision [ici](https://elinux.org/RPi_HardwareHistory).
|
|
|
|
|
|
|
|
### Lancer un programme au démarrage:
|
|
|
|
Il faut éditer le fichier `/etc/rc.local`
|
|
|
|
```bash
|
|
sudo nano /etc/rc.local
|
|
|
|
#!/bin/sh -e
|
|
#
|
|
# rc.local
|
|
#
|
|
# This script is executed at the end of each multiuser runlevel.
|
|
# Make sure that the script will "exit 0" on success or any other
|
|
# value on error.
|
|
#
|
|
# In order to enable or disable this script just change the execution
|
|
# bits.
|
|
#
|
|
# By default this script does nothing.
|
|
|
|
# Print the IP address
|
|
_IP=$(hostname -I) || true
|
|
if [ "$_IP" ]; then
|
|
printf "My IP address is %s\n" "$_IP"
|
|
fi
|
|
|
|
'/home/pi/Documents/scripts/bashrc -> Nextcloud.sh &'
|
|
|
|
exit 0
|
|
|
|
```
|
|
|
|
Le programme doit être mis avant la ligne exit 0.
|
|
|
|
Le programme (sans GUI) sera exécuté par root avant que X démarre, les chemins doivent être absolus. |