4

Yesterday I have installed Debian on a virtual machine.

I have SSH configured and everything set up.

I don't like developing inside a VM.
It doesn't help to resize the browser and test everything the way I want.

So, I decided to connect using Xming and PuTTY, which works flawlessly.

The boring stuff is that I have to always choose a username and password to be able to use the machine.

How can I set it to automatically login into the desktop without asking username or password?

EDIT
Author says re ssh keys "It's not that. I just want that when I boot the VM, it goes straight to the desktop instead of the LXDE login screen. Everything else is working perfectly. "

barlop
  • 25,198

1 Answers1

7

This is really easy to do.

Open the file /etc/lightdm/lightdm.conf and navigate to line 78 (you can enable line numbers on Leafpad).

It should be saying #autologin-user=.

Remove the # and change it to have your username after (for example: autologin-user=test).

Reboot your machine and wait a little.


For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login


If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)