sfatula
April 23rd, 2019, 08:18 AM
I have 2 seats working, and, I'd like to auto login a user on each of them. So, from reading the doc for gdm on the gnome site, it appears you can do this:
AutomaticLogin=/usr/local/bin/LoginChooser.sh|
In the /etc/gdm3/custom.conf file. SO, I Have said script, and it looks like this:
#!/bin/bash
if [ "$DISPLAY" == ":0" ]; then
echo "user1"
else
echo "user2"
fi
But it does not work. No one auto logs in (the names are not the actual user names I am using or in the script). Without a script, one of the seats screens will show auto login, but, the second will not since you can only seem to login once.
What am I doing wrong? Perhaps that feature is newer than the version in ubuntu 18.04? I added a line as well to log to a file when this is executed, and, nothing was logged, meaning it's not running. I found the documentation for this setting here:
https://help.gnome.org/admin/gdm/stable/configuration.html.en
AutomaticLogin=/usr/local/bin/LoginChooser.sh|
In the /etc/gdm3/custom.conf file. SO, I Have said script, and it looks like this:
#!/bin/bash
if [ "$DISPLAY" == ":0" ]; then
echo "user1"
else
echo "user2"
fi
But it does not work. No one auto logs in (the names are not the actual user names I am using or in the script). Without a script, one of the seats screens will show auto login, but, the second will not since you can only seem to login once.
What am I doing wrong? Perhaps that feature is newer than the version in ubuntu 18.04? I added a line as well to log to a file when this is executed, and, nothing was logged, meaning it's not running. I found the documentation for this setting here:
https://help.gnome.org/admin/gdm/stable/configuration.html.en