Until the RFP (Request For Packaging) bug for karaf in the debian bug tracker is resolved, here is an APT archive with a karaf package for debian (architecture “all”). The package is created using native debian packaging tools, and built from a source tarball and the APT archive itself is created, using aptly.
Continue reading Installing apache karaf on debian
All posts by steinarbang
Packaging karaf with native debian packaging tools
Note! This is an improvement over the packaging in Installing apache karaf on debian stretch, this package is packaged using native debian packaging tools instead of fpm, and is built from the karaf source tarball instead of the karaf binary tarball.
Apache karaf is an OSGi container and application server that is provisioned from maven, and has an ssh server. Basically it is possible to start an empty karaf, ssh in and give some commands to install an application using maven.
There still isn’t a native .deb package on maven (see the RFP (Request For Packaging) bug for karaf in the debian bug tracker), but this package can be installed from my own maven repository.
The packacing projecct can be found on github: https://github.com/steinarb/karaf-debian
Continue reading Packaging karaf with native debian packaging tools
Setting up a debian package archive with aptly
This article describes how to set up a debian archive with aptly on a debian 9 “stretch” computer, served by an nginx web server.
Continue reading Setting up a debian package archive with aptly
Installing apache karaf on debian stretch
Edit: It is now possible to install karaf on debian without building it yourself, the package installed is not the one described here, but the new and improved package built from source with native debian packaging tools, that can be found here https://github.com/steinarb/karaf-debian
Continue reading Installing apache karaf on debian stretch
Til minne om kaninen Daisy
Jeg tar et avbrekk fra postinger om datateknikk til å minnes kaninen Daisy.

En liten svart og hvit løvehodekanin.
Hun ble født i november 2009 og døde 29. august 2017, litt over 7,5 år gammel. Ungene fikk først hilse på henne den 22. desember 2009. Fra rett over nyttår 2010 og fram til hun døde bodde hun hos oss.
Continue reading Til minne om kaninen Daisy
Sign nginx website and dovecot imap server on debian with let’s encrypt
If you have a setup with a single server with multiple services (web, IMAP etc.), and one CNAME per service (www.somedomain.com, imap.somedomain.com), and you would like to get the services signed in a manner that doesn’t give warnings or errors in browsers (especially browsers in phones and tablets with iOS and Android), then this article may be of interest.
Self-signed certificates is a nuisance and the cacert.org initiative has been losing support. Let’s encrypt offers the possibility of having free (as in both cost and feedom) SSL certificates that don’t give warnings in web browsers. The only problem the threshold of taking the time to figure out how to use it.
Continue reading Sign nginx website and dovecot imap server on debian with let’s encrypt
Making a Java windows service in 10 minutes
This blog post describes how to create a windows service from a Java application, it is a slightly more fleshed out version of the JavaZone 2016 lightning talk “A Java windows service in 10 minutes”.
A problem sometimes encountered by a Java programmer, is to make your Java program into a Windows Service. This is may be a bump in your project, particularly if you don’t know anything about windows services, or much about windows for that matter.
The demo created a running, working, Windows service server using 14 lines of Java code, and some maven configuration.
Continue reading Making a Java windows service in 10 minutes
Get update notifications in the MATE desktop on debian jessie
One thing I have been missing since Gnome 2 was suceeded by the (IMO) horrible Gnome 3, is a tool tray notification icon for pending debian updates.
When someone continued Gnome 2 as MATE and MATE became available on debian, there was no notification tooltray icon to be found.
But now there is such a tooltray icon: pk-update-icon and since debian with MATE again is my primary desktop this I was something I was happy to discover.
Continue reading Get update notifications in the MATE desktop on debian jessie
Logging to persistent tmpfs on Raspbian “jessie”
At the end of Using a Raspberry Pi 2 Model B as a router/firewall for the home LAN I wrote that I decided not to put /var/log into tmpfs, because:
- I wanted the logs to be persistent
- I thought that the wear would result in less and less of the sd card to become available (and 16GB for logs should last a loong time)
As it turned out the sd card died after one month.
I don’t know if the cause was excessive logging, the use of ntopng (which did write quite a lot, both in the number of files, the number of files, and in the total storage used, which was approximately 0,5GB after 30 days of uptime) or simply a bad sd card.
However, going forward with a new sd card, I’ve done the following:
- Removed ntopng
- Put /var/log on tmpfs (limited to 100MB in size), synced to a backing store on the sd card using rsync
Continue reading Logging to persistent tmpfs on Raspbian “jessie”
Using a Raspberry Pi 2 Model B as a router/firewall for the home LAN
Since 1999 I have been using a 1996 vintage DEC PII desktop as the router/firewall between the internet and my home network. The DEC computer came to me with Win95 (or possibly Win98) in 1998, got SuSE linux and started its mission as router and firewall (and CUPS server, and IMAP server, and various other server stuff). When upgrading the SuSE installation to a newer version went south, it spent a while running ThomasEz’s floppyfw, until I used a floppy net install to install debian potato, immediately switched it to debian testing, until debian woody arrived, when it was moved to debian stable, and then I just kept running “apt-get dist-upgrade” until I finally had it running debian 8 “jessie” on june 6 in 2015.
The old DEC desktop has survived its maker company, survived lightning strikes that have sent the power supplies and/or main boards of other computers on the same LAN into continously beeping mode (i.e. broken). However, in December 2015 it started acting up, and crashing with irregular intervals (sometimes two weeks, sometimes one day).
So… the time for a replacement would have to be not too far ahead. The question was what to replace it with?
Continue reading Using a Raspberry Pi 2 Model B as a router/firewall for the home LAN