run hook and deb procedure in terminal from GUI