gui () {
sudo systemctl isolate graphical.target
sudo systemctl start lightdm
sudo systemctl start nxserver
}
tui () {
sudo systemctl stop lightdm
sudo systemctl stop nxserver
sudo systemctl isolate multi-user.target
sleep 3
sudo chvt 2