This is not a complete guide, but rather a short note on how I did it.
1. Installing OpenKM
Step #1.1: Of course I did it in LXC container:
1
2
3
4
|
lxc–create –n openkm.example.net –t download — –d ubuntu –r trusty –a amd64
# configure container, uidmapshift, and configure network in container
lxc–start –n openkm.example.net
lxc–attach –n openkm.example.net
|
Step #1.2: Install Java first:
1
|
apt–get install openjdk–7–jdk openjdk–7–jre
|
Step #1.3: Install OpenKM second:
1
2
3
4
5
6
|
wget http://sourceforge.net/projects/openkm/files/6.3/openkm-6.3.0-community-linux-x64-installer.run
chmod 700 openkm–6.3.0–community–linux–x64–installer.run
./openkm–6.3.0–community–linux–x64–installer.run
# A few basic questions will follow (license, destdir), keep defaults.
# As we are installing without GUI, the error will appear about installer not being able to create menu shortcuts. Ignore.
|
Step #1.4: Start the daemon:
1
|
/opt/openkm–6.3.0–community/tomcat/bin/startup.sh
|
Start it at boot too:
1
2
|
echo “/opt/openkm-6.3.0-community/tomcat/bin/startup.sh” >> /etc/rc.local
# WARNING: Watch this step here, as by default this line is appender after “exit 0” command. You get the picture.
|
Step #1.5: Visit your fresh OpenKM installation at the following location:
http://YOUR.CONFIGURED.IP:8080/
Default username: okmAdmin
Defualt password: admin
And this is it!
2. Adding OCR support
Step #2.1: Install Tessaract software:
1
|
apt–get install tesseract–ocr tesseract–ocr–eng tesseract–ocr–slv
|
Step #2.2: Configure OpenKM to use Tessaract as ORC engine:
1
2
3
|
edit /opt/openkm–6.3.0–community/tomcat/OpenKM.cfg
# set “system.ocr=/usr/bin/tesseract”
# set “system.ocr.rotate=90;180;270;”
|
Step #2.3: Restart OpenKM:
1
2
|
kill –15 `pidof java`
/opt/openkm–6.3.0–community/tomcat/bin/startup.sh
|
Resources used: