Category Archives: Tech

Interesting posts on technology - essentially Linux, Windows and corresponding hardware

Configure https for JIRA

2015-07-14 10_45_10-System Dashboard - Machine JIRA

I installed JIRA on my Ubuntu 14.04 machine according to
http://engineerbabu.com/2014/10/14/install-jira-ubuntu-14-04-lts/

What was missing was the https support, i.e. the support for secure data transfers.
Here, I followed
https://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS
and
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

Install https support as follows on the command line:

JAVA_HOME=/opt/atlassian/jira/jre
JIRA_HOME=/opt/atlassian/jira/atlassian-jira
sudo $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore $JIRA_HOME/jira.jks
Enter keystore password: *****
What is your first and last name? : machine return a few times ... yes ... return
$JAVA_HOME/bin/keytool -certreq -keyalg RSA -alias tomcat -keystore $JIRA_HOME/jira.jks -file $HOME/jira.csr
$JAVA_HOME/bin/keytool -list -alias tomcat -keystore $JIRA_HOME/jira.jks
sudo cp /opt/atlassian/jira/conf/server.xml /opt/atlassian/jira/conf/server.xml.bak
sudo vi /opt/atlassian/jira/conf/server.xml

Contrary to Atlassian's documentation, you have to specify attributes keystoreFile and keystorePass in the Connector element in the server.xml file, e.g.:

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" maxHttpHeaderSize="8192" SSLEnabled="true" maxThreads="150" minSpareThreads="25" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" useBodyEncodingForURI="true" keystoreFile="/opt/atlassian/jira/jira.jks" keystorePass="******"/>

Then stop'n'start JIRA:

sudo service jira stop
sudo service jira start

Now try to open following URL in your browser (replace 'machine' by your host name):
https://machine:8443/

31C3

Mit dem ICE nach Hamburg. Dafür gibt es das Spezial-CCC-Ticket der Bahn für 99 EUR (zuggebunden, 2.Klasse,Hin und Zurück). Während des Kongresses war es kalt und es gab sogar ein wenig Schnee.

image

Im Kongresszentrum selber war die Atmosphäre sehr gut. Wie immer und wie erwartet war die Organisation ein klein wenig chaotisch. Z.B. wollte die Food Hacking Base erst einmal gefunden werden oder man musste hellseherische Fähigkeiten entwickeln um zu wissen wann welcher Workshop ist nachdem der Zugang zum Wiki am 3. Tag gehackt wurde.

Die drei Tage, die ich auf dem Kongress bleiben konnte, haben sehr viel Spaß gemacht. Hier ein paar meiner persönlichen Highlights:

Vorträge:

Daneben gab es noch:

Diese Vorträge habe ich selber nicht gehört, es scheint sich aber zu lohnen den Stream dazu anzuschauen:

So, und für nächstes Jahr merk' ich mir:

  • Software daheim updaten
  • Genügend Speicherplatz mitnehmen
  • Frühzeitig (am 1. Tag?) interessante Projekte finden und darauf rumhacken. Dann kann man am 2./3. Tag jemandem Fragen dazu stellen.
  • Fahrplan / Lightning Talks / Workshops -> (mehrmals) mirroren, falls Server ausfällt bzw. gehackt wird.
  • Kopfhörer mitnehmen

Kinect on Ubuntu 10.10 Maverick (CPU supporting SSE3 or better)

...and here's in short how the Kinect should be working on Ubuntu 10.10 with an SSE3 enabled CPU (compare with previous post):

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core build-essential libusb-1.0.0-dev libglut3-dev doxygen graphviz

cd ~/kinect
git clone https://github.com/OpenNI/OpenNI.git
cd OpenNI/Platform/Linux-x86/Build
make
sudo make install

cd ~/kinect
git clone https://github.com/boilerbots/Sensor.git
cd Sensor
git checkout kinect
cd Platform/Linux-x86/Build
make
sudo make install

cd ~/kinect
wget http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/stable/54-primesense-nite-beta-build-for-for-ubuntu-10-10-x86-32-bit-v1-3-0/download -O nite_ubuntu_x86.tar.bz2
tar xvjf nite_ubuntu_x86.tar.bz2

cd ~/kinect/Nite-1.3.0.17/Data

cp Sample-User.xml Sample-User.xml.BAK && chmod u+w Sample-User.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-User.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-User.xml
cp Sample-Scene.xml Sample-Scene.xml.BAK && chmod u+w Sample-Scene.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-Scene.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-Scene.xml
cp Sample-Tracking.xml Sample-Tracking.xml.BAK && chmod u+w Sample-Tracking.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-Tracking.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-Tracking.xml

sudo niLicense PrimeSense 0KOIk2JeIBYClPWVnMoRKn5cdY4=
cd ~/kinect/Nite-1.3.0.17
sudo ./install.bash

You have to enter the key
0KOIk2JeIBYClPWVnMoRKn5cdY4=
again.

Now checkout the examples in the directory

cd /home/ubuntu/kinect/Nite-1.3.0.17/Samples/Bin/

Kinect on Ubuntu 10.10 Maverick (for SSE2 CPU)

That's how I got the Kinect working on my Ubuntu 10.10 (tested again with a fresh installation of Ubuntu). This is based on an article by trtg at keyboardmods.com. I had to supply SSE_GENERATION=2 flags multiple times because my CPU does not support the SSE3 extension but only SSE2 used by default. If your CPU is newer than mine, then see the next post.

First install the necessary packages:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core build-essential libusb-1.0.0-dev libglut3-dev doxygen graphviz

Download and install the OpenNI drivers:

cd ~/kinect
git clone https://github.com/OpenNI/OpenNI.git
cd OpenNI/Platform/Linux-x86/Build
make SSE_GENERATION=2
sudo make install

Download and install the Kinect specific part of the OpenNI driver:

cd ~/kinect
git clone https://github.com/boilerbots/Sensor.git
cd Sensor
git checkout kinect
cd Platform/Linux-x86/Build
make SSE_GENERATION=2
sudo make install

Download and untar the NITE framework:

cd ~/kinect
wget http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/stable/54-primesense-nite-beta-build-for-for-ubuntu-10-10-x86-32-bit-v1-3-0/download -O nite_ubuntu_x86.tar.bz2
tar xvjf nite_ubuntu_x86.tar.bz2

You have to modify a few files and add the Primesense key (which is free to use)

cd ~/kinect/Nite-1.3.0.17/Data

cp Sample-User.xml Sample-User.xml.BAK && chmod u+w Sample-User.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-User.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-User.xml
cp Sample-Scene.xml Sample-Scene.xml.BAK && chmod u+w Sample-Scene.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-Scene.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-Scene.xml
cp Sample-Tracking.xml Sample-Tracking.xml.BAK && chmod u+w Sample-Tracking.xml && sed "s/insert key here/0KOIk2JeIBYClPWVnMoRKn5cdY4=/" Sample-Tracking.xml.BAK | sed "s%xRes="[0-9]*" yRes="[0-9]*"%xRes="640" yRes="480"%" >Sample-Tracking.xml

sudo niLicense PrimeSense 0KOIk2JeIBYClPWVnMoRKn5cdY4=

We make a modified copy of the install script that compiles NITE for older CPUs supporting only SSE2 (default would be SSE3) and compile and install:

cd ~/kinect/Nite-1.3.0.17
sed "s/^make$/make SSE_GENERATION=2/" install.bash >install_sse2.bash
chmod 555 install_sse2.bash
sudo ./install_sse2.bash

You have to enter the key
0KOIk2JeIBYClPWVnMoRKn5cdY4=
again.

Now checkout the examples in the directory

cd /home/ubuntu/kinect/Nite-1.3.0.17/Samples/Bin/