Wednesday, 9 May 2012

Readynas recovery

Trying to install Alien on my Readynas Pro 2, which runs the ancient Debian etch release, corrupted the os and needed a rebuild of my environment. This entry documents the recovery steps.

restoring ssh access

Java 

 Java install seems to have got a lot more complicated since the initial install a year or so back.  I could not find an apt package. So manual download from:

http://www.java.com/en/download/linux_manual.jsp?locale=en
Linux (self-extracting file) filesize: 32.8 MB

to  /opt/java/jre1.7.0_04, then  try to  patch up a bit...

update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.7.0_04/bin/java" 1 
update-alternatives --set java /opt/java/jre1.7.0_04/bin/java


(Some related stuff, did not use options  or more)

 BaseX


The BaseX package  required a forced install, due to the broken java..

velvet:/tmp# dpkg --force-depends -i bas*.deb
(Reading database ... 21903 files and directories currently installed.)
Preparing to replace basex 7.2.1-1 (using basex_7.2.1-1_all.deb) ...
Unpacking replacement basex ...
dpkg: basex: dependency problems, but configuring anyway as you request:
 basex depends on default-jre | java6-runtime; however:
  Package default-jre is not installed.
  Package java6-runtime is not installed.
Setting up basex (7.2.1-1) ...
velvet:/tmp# basex
[warning] /usr/bin/basex: No java runtime was found
[warning] /usr/bin/basex: Unable to locate /usr/share/java/tagsoup.jar in /usr/share/java
[warning] /usr/bin/basex: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
Saving properties in "/root/.basex"...

Installed tagsoup from the deb file
Updated my init.d script (based on the Redis one). And invoke at boot, see

Node.js

https://github.com/joyent/node/wiki/Installation easy :-)

npm install -g express
npm install -g ejs
npm install -g forever

Redis

No comments:

Post a Comment