Sunday 27 May 2012

fuseki

Installed Fuseki 0.2.2 snapshot from here onto velvet. (/c/home/jena/fuseki-0.2.2/fuseki-server)


mkdir dataDir
 ./fuseki-server --update --loc=dataDir /myDataset


11:10:37 INFO  Server :: TDB dataset: directory=dataDir
11:10:38 INFO  Server :: Dataset path = /myDataset
11:10:38 INFO  Server :: Fuseki 0.2.2-SNAPSHOT 20120526-0501
11:10:38 INFO  Server :: Jetty 7.x.y-SNAPSHOT
11:10:38 INFO  Server :: Started 2012/05/27 11:10:38 GMT on port 3030

One goal is  Jena SKOS inferencing

Sunday 13 May 2012

Virtualised Debian Squeeze on Readynas

 After burning my Readynas through reckless upgrades I noticed some comments referencing chroot. This promised a way to have an up to date system and protection from rogue packaging problems.

root@velvet:/# cat /etc/debian_version
4.0
 
apt-get install debootstrap 
cd /usr/share/debootstrap/scripts
ln -s lenny squeeze
debootstrap squeeze /c/home/squeeze

chroot /c/home/squeeze



root@velvet:/# cat /etc/debian_version
6.0.4

All very simple and very nice.

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

Saturday 5 May 2012

Upgrading basex on debian

velvet:/c/home/node# wget http://ftp.us.debian.org/debian/pool/main/b/basex/basex_7.2.1-1_all.deb
--2012-05-05 11:15:06--  http://ftp.us.debian.org/debian/pool/main/b/basex/basex_7.2.1-1_all.deb
Resolving ftp.us.debian.org... 35.9.37.225, 64.50.236.52, 128.30.2.36, ...
Connecting to ftp.us.debian.org|35.9.37.225|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2317708 (2.2M) [application/octet-stream]
Saving to: `basex_7.2.1-1_all.deb'

100%[======================================>] 2,317,708    635K/s   in 4.1s    

2012-05-05 11:15:11 (547 KB/s) - `basex_7.2.1-1_all.deb' saved [2317708/2317708]

velvet:/c/home/node# ls
bahblah-node_xslt-34c6509  BaseXRepo flight-stream  paste-bin
basex_7.2.1-1_all.deb    BXNfactbook local        retwis-js
BaseXData     faye  localbuild     soccore
basex-node     faye.old nohup.out      upload
velvet:/c/home/node# dpkg -i *.deb
(Reading database ... 28572 files and directories currently installed.)
Preparing to replace basex 7.1.1-1 (using basex_7.2.1-1_all.deb) ...
Unpacking replacement basex ...
Setting up basex (7.2.1-1) ...
velvet:/c/home/node# basex -v
[warning] /usr/bin/basex: Unable to locate /usr/share/java/tagsoup.jar in /usr/share/java
BaseX 7.2.1 [Standalone]
Try 'help' to get more information.

Currently the install does not provide httpserver support.