There should be a way to test libfreenect without an X session. freenect-camtest is a simple C example that does not require OpenGL or pthreads. It starts depth and video streams and prints a message for each frame received. Stop by pressing Ctrl+C or killing the process with SIGINT, SIGTERM, or SIGQUIT.