Created
February 5, 2013 15:45
-
-
Save kuleszaj/4715264 to your computer and use it in GitHub Desktop.
Setup auto-login with desktop-sharing Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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