work for debian > 6 and ubuntu > 12