debian [9] | disable/enable X

X OFF

systemctl set-default multi-user.target

X ON

systemctl set-default graphical.target