Me gustaría instalar sudo con ipkg. Primero es necesario instalar ipkg. Puede encontrar el tutorial de arranque de Synology.aquí.
El DS413j tiene un procesador ARM Marvel Kirkwood mv6282. Entonces usé este archivo syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
Luego sigo los pasos de descarga, instalación y eliminación del archivo. Después de la instalación exitosa, reinicio.
Intenté el comando 'ipkg update' con el error ipkg no encontrado.
La opción no se montó antes de la instalación, intenté la instalación nuevamente desmontándola y reinstalándola, el mismo error.
Desmontar comandos:
mount
umount /opt
rm -rf /volume1/@optware
rm -rf /usr/lib/ipkg
¿Qué estoy haciendo mal aquí?
Todo lo que hice:
login as: root
[email protected]'s password:
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> mount
/dev/root on / type ext4 (defaults)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/tmp on /tmp type tmpfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/vg1/volume_1 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
MyNas> umount /opt
umount: can't umount /opt: Invalid argument
MyNas> rm -rf /volume1/@optware
MyNas> rm -rf /usr/lib/ipkg
MyNas> cd /volume1/@tmp
MyNas> wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstabl
e/syno-mvkw-bootstrap_1.2-7_arm.xsh
--2014-10-23 17:05:41-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 252947 (247K) [text/plain]
Saving to: 'syno-mvkw-bootstrap_1.2-7_arm.xsh'
100%[======================================>] 252,947 218KB/s in 1.1s
2014-10-23 17:05:43 (218 KB/s) - 'syno-mvkw-bootstrap_1.2-7_arm.xsh' saved [252947/252947]
MyNas> sh syno-mvkw-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for syno-mvkw.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1232+1 records in
1232+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> wget http://web.archive.org/web/20121005035819/http://wizjos.endofintern
et.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
--2014-10-23 17:06:23-- http://web.archive.org/web/20121005035819/http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
Resolving web.archive.org... 207.241.226.190
Connecting to web.archive.org|207.241.226.190|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251866 (246K) [text/plain]
Saving to: 'syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh'
100%[======================================>] 251,866 239KB/s in 1.0s
2014-10-23 17:06:25 (239 KB/s) - 'syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh' saved [251866/251866]
MyNas> sh syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
Optware Bootstrap for syno-mvkw.
Extracting archive... please wait
bootstrap/
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
1227+1 records in
1227+1 records out
bootstrap/bootstrap.sh
bootstrap/ipkg.sh
bootstrap/ipkg-opt.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...WARNING: can't open config file: /usr/syno/ssl/openssl.cnf
Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> reboot
MyNas>
Broadcast message from root@MyNas
(/dev/pts/1) at 17:07 ...
The system is going down for reboot NOW!
login as: root
[email protected]'s password:
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> ipkg update
-ash: ipkg: not found
MyNas>
MyNas> mount
/dev/root on / type ext4 (defaults)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/tmp on /tmp type tmpfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/vg1/volume_1 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/volume1/@optware on /opt type bind (bind)
MyNas>
Respuesta1
Como puede ver en los registros anteriores, ipkg se instaló correctamente. puedes comprobar la versión así:
/opt/bin/ipkg -v
el comando ipkg update no funcionó debido a la ubicación incorrecta configurada en el .profile para el servicio ipkg.
Si voy a la ubicación correcta y luego intento ejecutar la actualización, funciona bien.
cd /opt/bin
./ipkg update
Puede encontrar más información en este tema si aún tiene algún problema. http://forum.synology.com/enu/viewtopic.php?f=40&t=91861&p=346607#p346607