Set up the ubuntu and debian template support