- https://en.wikipedia.org/wiki/ipkg
- https://en.wikipedia.org/wiki/opkg
- http://www.b.shuttle.de/hayek/hayek/jochen/wp/blog-en/2017/11/15/synology-optware/
- https://github.com/Entware-ng/Entware-ng/wiki/Install-on-Synology-NAS
- https://github.com/Entware-ng/Entware-ng
- https://github.com/Optware/Optware-ng
ssh username@ipforsynologyboxsudo su -enter the following commands:
mkdir /volume1/@optware
mkdir /opt
mount -o bind /volume1/@optware /optRun the following commands
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.confvi /etc/profilePATH=/opt/bin:/opt/sbin:$PATH
export PATHvi /root/.profilePATH=/opt/bin:/opt/sbin:$PATH
export PATH###Reboot Reboot your DiskStation. Do NOT use the "reboot" command, use "reboot -f" or reboot with the DSM GUI.
reboot -f###Create some local optware stuff Create the /etc/rc.local file and insert:
vi /etc/rc.local#!/bin/sh
# Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start
exit 0Make it executable
chmod 755 /etc/rc.localCreate the /etc/rc.optware
vi /etc/rc.optwareInsert
#! /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 0Make it executable
chmod 755 /etc/rc.optwareUpdate and upgrade ipkg
ipkg update
ipkg ugrade###Install Git and Node
ipkg install git
cd /root
git clone https://github.com/joyent/node.git
cd node
./configure --prefix=/opt/node
make
make installIf you get a C compiler issue when trying to ./configure fix the c compiler symlink
ln -s /opt/bin/gcc /opt/bin/ccTry ./configure again
If you get an error talking about GYP
gyp:name 'arm_version' is not defined while evaluating condition 'arm_version==7' in /home/ubuntu/node/deps/v8/tools/gyp/v8.gyp while loading dependencies of /home/ubuntu/node/node.gyp while trying to load /home/ubuntu/node/node.gyp
Error running GYPAdd the following to 'variables' in common.gypi:
'arm_version%' : '1', so it looks like this:
{
'variables': {
'werror': '', # Turn off -Werror in V8 build.
'visibility%': 'hidden', # V8's visibility setting
'target_arch%': 'ia32', # set v8's target architecture
'host_arch%': 'ia32', # set v8's host architecture
'want_separate_host_toolset': 0, # V8 should not build target and host
'library%': 'static_library', # allow override to 'shared_library' for D$
'component%': 'static_library', # NB. these names match with what V8 expec$
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not$
'gcc_version%': 'unknown',
'clang%': 0,
'python%': 'python',
'arm_version%' : '1',
# Enable V8's post-mortem debugging only on unix flavors../configure should work now
make
make install###All Done
Greetings,
I appreciate this guide but there is an issue with the Synology Diskstation D210+, described in this post:
https://community.synology.com/enu/forum/17/post/50346
Whenever I run ipkg, I get this error:
/opt/bin/ipkg: line1: syntax error: unexpected word (expecting ")")
Supposedly the solution was to use binaries location in /usr/syno/bin/ instead of /opt/bin/
This is far beyond my skill level. I would appreciate it if you could help with alternate instructions using this fix for the DS210+.