Pour installer Installer ipkg NAS synology DS214, commencez par vous connecter en SSH sur votre Synology, (si vous n’avez pas autoriser les connexions SSH faites le en vous rendant dans Panneau de configuration > Sécurité > Terminal & SNMP > Activer le service SSH)
Une fois que vous êtes connectés créez les répertoires nécessaires
mkdir /volume1/@optware mkdir /opt mount -o bind /volume1/@optware /opt
Maintenant vous pouvez commencer le processus d’installation d’ipkg
feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
wget $feed/$ipk_name
tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
mkdir -p /opt/etc/ipkg
echo "src cross $feed" > /opt/etc/ipkg/feeds.conf
Configurez les variables, en commençant par modifier /etc/profile
vi /etc/profile
Copiez la ligne suivante avant export PATH
PATH=/opt/bin:/opt/sbin:$PATH
Rechargez les reglages du shell en lancant la commande suivante
source /root/.profile
Il reste a créer les scripts de démarrage
touch /etc/rc.local chmod 755 /etc/rc.local vi /etc/rc.local
Copiez et collez dans ce fichier le code suivant
#! /bin/sh
if test -z "${REAL_OPT_DIR}"; then
# next line to be replaced according to OPTWARE_TARGET
REAL_OPT_DIR=/volume1/@optware
fi
case "$1" in
start)
echo "Starting Optware."
if test -n "${REAL_OPT_DIR}"; then
if ! grep ' /opt ' /proc/mounts >/dev/null 2>&1 ; then
mkdir -p /opt
mount -o bind ${REAL_OPT_DIR} /opt
fi
fi
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
;;
reconfig)
true
;;
stop)
echo "Shutting down Optware."
true
;;
*)
echo "Usage: $0 {start|stop|reconfig}"
exit 1
esac
exit 0
Vous pouvez maintenant redemarrer votre NAS
Une fois cela terminé, vous pouvez installer ipkg sur votre NAS
