add dmps function for ubuntu