# Raspberry (divers)

### Installer le correcteur orthographique français:

```bash
sudo apt-get install myspell-fr
```



### Installer LibreOffice français:

```bash
sudo apt-get install libreoffice-l10n-fr
sudo apt-get install myspell-fr
sudo apt-get install hyphen-fr
sudo apt-get install mythes-fr
sudo apt-get install libreoffice-help-fr
```



### Installer avec Git:

```bash
cd /SourceCache
git clone https://github.com/gerard/ext4fuse.git
cd ext4fuse
make
```



### Installer une appli depuis un .deb:

```bash
pi@framboise:~/Downloads $ wget http://www.bristolwatch.com/rpi/dl/beaver_0.4.1-1_armhf.deb

pi@framboise:~/Downloads $ sudo dpkg -i beaver_0.4.1-1_armhf.deb
```



### Editer un fichier de config:

```bash
sudo leafpad /etc/samba/smb.conf &
```



### Virer les fichiers .DS_Store:

```bash
find /my/data/to/move -name '*.DS_Store' -type f -delete
```



### Installer clé bluetooth (pas utile avec Raspian):

```bash
lsusb
update-rc.d -f dbus defaults
apt-get install bluetooth bluez-utils blueman
hcitool scan
```

[:fa-link: http://blog.petrilopia.net/linux/raspberry-pi-bluetooth-keyboard-work/](http://blog.petrilopia.net/linux/raspberry-pi-bluetooth-keyboard-work/)



### Installer clé wifi (pas utile avec Raspian):

```bash
sudo apt-get install wicd
```



### Permissions:

Donner les permissions exécutable

```bash
chmod +x ./subfolder/anexecutablefile.sh
```

Retirer er les permissions exécutable

```bash
chmod -x ./subfolder/anexecutablefile.sh
```

Donner les permissions lecture/écriture

```bash
chmod +rw .anexecutablefile.sh
```



### blkid

```bash title="locate/print block device attributes"
pi@framboise:/media/pi/boot $ blkid

/dev/mmcblk0p1: LABEL="boot" UUID="E5B7-FEA1" TYPE="vfat" PARTUUID="1b38a7cf-01"

/dev/mmcblk0p2: UUID="b4ea8e46-fe87-4ddd-9e94-506c37005ac5" TYPE="ext4" PARTUUID="1b38a7cf-02"
```



### lsblk

```bash title="list block devices"
pi@framboise:~/Downloads/Ted-2.23 $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    0 29,8G  0 disk
|-sda1        8:1    0 41,8M  0 part /boot
`-sda2        8:2    0 29,8G  0 part /
mmcblk0     179:0    0 29,7G  0 disk
|-mmcblk0p1 179:1    0 41,8M  0 part /media/pi/boot
`-mmcblk0p2 179:2    0 29,7G  0 part /media/pi/b4ea8e46-fe87-4ddd-9e94-506c37005ac5
```



### df -h

```bash
pi@framboise:~ $ df -h

Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root           30G    3,4G   25G  13% /
devtmpfs           460M       0  460M   0% /dev
tmpfs              464M     80M  385M  18% /dev/shm
tmpfs              464M     13M  452M   3% /run
tmpfs              5,0M    4,0K  5,0M   1% /run/lock
tmpfs              464M       0  464M   0% /sys/fs/cgroup
/dev/sda1           42M     21M   21M  51% /boot
tmpfs               93M    8,0K   93M   1% /run/user/1000
/dev/mmcblk0p2      30G    3,3G   25G  12% /media/pi/b4ea8e46-fe87-4ddd-9e94-506c37005ac5
/dev/mmcblk0p1      42M     21M   21M  51% /media/pi/boot
```

