ubuntu rewrite