Search This Blog

2017-07-31

turning off the desktop manager

# In order to make text boot the default under systemd

# as root...

systemctl set-default multi-user.target

# add file ::: /etc/systemd/system/getty@tty1.service.d/autologin.conf

  [Service]
  ExecStart=
  ExecStart=/sbin/agetty -a r --noclear %I $TERM
  Type=idle

# To change back to booting to the GUI, use...

# systemctl set-default graphical.target

# ----------------------------
# to start X automatically after login at the first console

# as your user...
# add a line to ~/.bashrc or ~/.bash_aliases

echo '[[ `tty` == "/dev/tty1" ]] && startx' >> ~/.bash_aliases

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.