#!/bin/bash dn=$( echo $UID | sed 's/.*\(....\)$/\1/' ) vncserver -kill :$dn rm -f /tmp/.X${dn}-lock rm -f /tmp/.X11-unix/X${dn}