Right now in sid, live-* seems to not be handling autologin. I tried a bunch of combinations of "components=" and "nocomponents=" on the command line (booting a snapshot iso in vbox that was created August 31), and nothing seemed to work. I tried with lightdm, login, openssh-server, sudo, user-setup and I think a couple of other configs, in various combinations, with no effect whatsoever. No sudo with "components=sudo", no ssh host keys with "components=openssh-server", and no autologin with any of it.
To get autologin to the desktop, edit etc/lightdm/lightdm.conf -
- Uncomment the second instance of "#autologin-user=" and add the user name. (It's the one in the section labeled [SeatDefaults], not the one in "# Seat Defaults")
- Restart lightdm. (systemctl stop|start|restart lightdm)
To get autologin on the console, here are the directions copied from the archwiki page linked above.
NOTE: Replace "(*slash*)" with "/" wherever it appears below. And replace "username" with your user's login name.
Create the following file (and leading directories):
(*slash*)
[email protected]/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
To get more than one virtual console with autologin, here are instructions modified from the archwiki's systemd FAQ. (changed /usr/lib/systemd/system to /lib/systemd/system)
https://wiki.archlinux.org/index.php/Sy ... _gettys.3FHow do I change the default number of gettys?
Currently, only one getty is launched by default. If you switch to another tty, a getty will be launched there (socket-activation style). In other words, [Ctl] [Alt] [F2] will launch a new getty on tty2.
By default, the number of auto-activated gettys is capped at six. Thus [F7] through [F12] won't launch a getty.
If you want to change this behavior, then edit (*slash*)etc/systemd/logind.conf and change the value of NAutoVTs. If you want all [Fx] keys to start a getty, increase the value of NAutoVTs to 12. If you are forwarding journald to tty12, increase the value of NAutoVTs to 11 (thus leaving tty12 free).
You can also pre-activate gettys which will be running from boot.
To add another pre-activated getty, simply place another symlink for instantiating another getty in the (*slash*)etc/systemd/system/getty.target.wants/ directory:
- Code: Select all
# ln -sf /lib/systemd/system/getty@.service (*slash*)[email protected]
# systemctl start [email protected]
To remove a getty, simply remove the getty symlinks you want to get rid of in the etc/systemd/system/getty.target.wants/ directory:
- Code: Select all
# rm (*slash*)etc/systemd/system/getty.target.wants/getty@{tty5,tty6}.service
# systemctl stop [email protected] [email protected]
Edit: changed path to agetty (/sbin/agetty)