Skip to content

Instantly share code, notes, and snippets.

@baudneo
Last active October 6, 2021 22:33
Show Gist options
  • Save baudneo/5cacf5e5d128b2d5f4ce255590e84bf8 to your computer and use it in GitHub Desktop.
Save baudneo/5cacf5e5d128b2d5f4ce255590e84bf8 to your computer and use it in GitHub Desktop.
proxmox add DE to allow autologin and an X server
# install lightdm
apt install lightdm
# Config Auto Login for "Root" (Definitely it is not a good practice, but do what you want if you dont have a seperate user setup)
# Could also install a lightdm greeter and have a regular graphical login screen that transitions to terminal.
nano /etc/pam.d/lightdm-autologin
# Find #auth and comment out this line --->
# required pam_succeed_if.so user != root quiet_success
nano /etc/lightdm/lightdm.conf
# add these 3 lines to the [Seat:*] section (or do a seat-deaults file or whatever)
autologin-user=root
autologin-user-timeout=0
autologin-session=lightdm-xsession
# Add New Group for autologin and add root (or other properly set up proxmox+PAM user) to that group
groupadd -r autologin
usermod -aG autologin root
@baudneo
Copy link
Author

baudneo commented Oct 6, 2021

This is useful if you have some GPU's and you need to have an X server running so that you can overclock the cards in your proxmox host. You could also install a lightdm greeter and let someone login like normal, but this is an example for autologin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment