This trick lets you run X-Windows within an X-Windows session.

This is kinda like running VNC. It is useful for testing scenarios.

#!/bin/sh
Xnest :1 -name "Bla" -ac -geometry 800x600 &
sleep 1
export DISPLAY=:1
exec xterm