Skip to content

Instantly share code, notes, and snippets.

@kuleszaj
Created February 5, 2013 15:45
Show Gist options
  • Save kuleszaj/4715264 to your computer and use it in GitHub Desktop.
Save kuleszaj/4715264 to your computer and use it in GitHub Desktop.
Setup auto-login with desktop-sharing Ubuntu
# Your ubuntu user
TARGET_USER="me"
# Your X Display
export DISPLAY=:0.0
grep "autologin" /etc/lightdm/lightdm.conf || sudo /bin/bash -c 'echo -e "autologin-user=$TARGET_USER\nautologin-timeout=0" >> /etc/lightdm/lightdm.conf'
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment