Schnellzugriff » 
Home 
Archive for Juni, 2010

Java: Periodically check internet connection availability

Freitag, Juni 25th, 2010

A very simple example of how to periodically check the availability of an internet connection by using the observer design pattern.
InternetConnection.java
package net;

import java.net.*;
import java.io.*;

public class InternetConnection {
/* use at least one reliable host, in most cases you will want
to use the one you’re working with later */
private static final String CHECK_URL = “http://www.t-online.de/”;
public static InternetConnectionState isAvailable() [...]

Posted in Java, Programmierung | 1 Comment »>

How-to: Debian: Automatically mounted loopback images with dm-crypt, LUKS, pam_mount

Donnerstag, Juni 17th, 2010

How to create encrypted loopback images with dm-crypt and LUKS + automatically mounting them after login with pam_mount
I recommend using debian squeeze for this scenario as lenny includes a very old version of libpam-mount and I had lots of problems when I tried using it.
Using only the libpam-mount package and its dependencies from squeeze maybe [...]

Posted in Administration, Linux / Unix, Sicherheit | Kommentare deaktiviert>

Debian Lenny: pam_mount, files and loop devices

Donnerstag, Juni 17th, 2010

When I was trying to automatically mount an encrypted image at login using pam_mount, I encountered a strange problem:
I wasn’t able to find any errors in my configuration (at least none connected to this behaviour), but mount.crypt was unable to mount the image.
Enabling debugging in pam_mount.conf.xml (<debug enable="1" />) revealed the command used for mounting:
pam_mount(misc.c:272) [...]

Posted in Administration, Linux / Unix | Kommentare deaktiviert>

© 2007 - 2009 Thorsten Boock