title: How to make Ubuntu Mate headless, and auto-login on a Raspberry Pi?
body: <ol>
  <li>I know how to <a href="https://ubuntu-mate.community/t/auto-login-to-the-desktop/60" rel="nofollow">auto login</a> to the Raspberry Pi on start up with the graphical interface using lightdbm.</li>
  <li>I know how to <a href="https://bitbucket.org/ubuntu-mate/ubuntu-mate-rpi2/issues/4/boot-to-shell-with-ubuntu-mate-1504-on" rel="nofollow">make</a> the Raspberry Pi "headless".</li>
  <li>I know how to run a script at start up. (~/.bashrc)</li>
  </ol>
  
  <p>My problem is: I don't know how to make a script that runs at start up that can  auto login to the Raspberry Pi while disabling the Graphical interface in order to make it run headless. </p>
  
  <p>I have found few articles, people use <code>/etc/inittab</code> but the file does not seem to be there on Ubuntu mate version. I have looked for a file in <code>/etc/init/tty1</code> but it's not there neither.</p>