# iPKG (DSM 5)

### Installer iPKG:

Se connecter sous root

```bash
ssh root@192.168.0.8
```

Télécharger et installer le bootstrap

```bash
DiskStation> wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
DiskStation> chmod 700 syno-mvkw-bootstrap_1.2-7_arm.xsh
DiskStation> sh syno-mvkw-bootstrap_1.2-7_arm.xsh
DiskStation> vi bootstrap.sh #https://github.com/basmussen/ds414-boostrap-dsm5
DiskStation> sh bootstrap.sh
DiskStation> reboot
DiskStation> /opt/bin/ipkg update
DiskStation> /opt/bin/ipkg list
DiskStation> /opt/bin/ipkg install pkg
```

Nettoyer le dossier /root/ ([:fa-link:http://objnux.1s.fr/index.php?post/2009/11/25/IPKG-sur-SYNOLOGY-ds107](http://objnux.1s.fr/index.php?post/2009/11/25/IPKG-sur-SYNOLOGY-ds107))

```bash
DiskStation> rm syno*.*
DiskStation> rm -Rf bootstrap
```



### Mettre à jour iPKG:

Se connecter sous root

```bash
ssh root@192.168.0.8
```

Mettre à jour les paquets installés

```bash
DiskStation> /opt/bin/ipkg update
DiskStation> /opt/bin/ipkg upgrade
```



### Désinstaller iPKG:

```bash
rm -rf /volume1/@optware
rm -rf /usr/lib/ipkg
```



### Rajouter /opt/bin dans le PATH

```bash
DiskStation> cd /root
DiskStation> /opt/bin/nano .profile

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/opt/bin
```



### Configuration de nail:

Editer le fichier /opt/etc/nail.rc:

```bash
set from="bruno@funnymac.com"
set smtp=smtp://smtp.funnymac.com
#set smtp-use-starttls
set smtp-auth=login
set smtp-auth-user=postmaster%funnymac.com
set smtp-auth-password=dt7ek7wA
set ssl-verify=ignore
```