Re: [gdm-list] Autologin and multiseat



sorry typo:
add at the bottom of  /etc/gdm/Init/:1
before exit 0:
 sh /usr/local/sbin/display1.sh username password  $

add at the bottom of  /etc/gdm/Init/:2
before exit 0:
 sh /usr/local/sbin/display2.sh username password  $



guy
> If you want 1 session per video-output on one card, gdm  2.20 is your only
> option. I pray that the gdm people will add again multiseat support to
> their gdm(or some kind of wrapper). It was one of the best feature in gdm.
> Now autlogin all users with gdm:
> Install xdotool of course.
> Copy the file /etc/gdm/Init/Default to /etc/gdm/Init/:1
> and /etc/gdm/Init/:2 and so on,according the amount of displays.
> Ceate a script /usr/local/sbin/display1.sh
> add to that file:
> 
> #!/bin/sh
> sleep 3
> username=$1
> password=$2
> DISPLAY=:1
> export DISPLAY
> xhost +
> xdotool getactivewindow
> xdotool type "$username";
> sleep 1
> xdotool key KP_Enter
> sleep 1
> xdotool getactivewindow
> xdotool type "$password";
> sleep 1
> xdotool key KP_Enter
> xhost -
> 
> and the next file for display 2:
> /usr/local/sbin/display2.sh
> #!/bin/sh
> sleep 3
> username=$1
> password=$2
> DISPLAY=:2
> export DISPLAY
> xhost +
> xdotool getactivewindow
> xdotool type "$username";
> sleep 1
> xdotool key KP_Enter
> sleep 1
> xdotool getactivewindow
> xdotool type "$password";
> sleep 1
> xdotool key KP_Enter
> xhost -
> 
> add at the bootom of /etc/gdm/Init/Default to /etc/gdm/Init/:1
> before exit 0:
> sh /usr/local/sbin/display1.sh username password
> That is the user you want to login on the first screen
> 
> same for /etc/gdm/Init/Default to /etc/gdm/Init/:2
> on the bottom before exit 0
> sh /usr/local/sbin/display2.sh username password
> 
> If a user logs out, he will be logged in again.
> 
> chmod +x all the new files you made.
> 
> Reboot, enjoy.
> 
> Guy
> 
> > Guy,
> > Pity it is not supported anymore, but your suggestion for xdotool
> > certainly has merit. I have tried it for 2 minutes and confirmed that it
> > would do what I need.
> > I'd like to take you up on your offer for an example script?
> > 
> > Thanks
> > Darryl
> > 
> > 
> > On Thu, Nov 22, 2012 at 10:12 PM, linux-service.be bvba <
> > 
> > guy linux-service be> wrote:
> > > I don't think it's possible.
> > > There is a way with scripts and xdotool.
> > > Let me know if you want them.
> > > 
> > > Guy
> > > 
> > > > I want to set up a multiseat kiosk with autologin. I am using the new
> > > > systemd capabilities in Fedora 17 (gdm-3.4.1-3.fc17)
> > > > I cannot seem to get autologin or timed login to work on any display
> > > 
> > > other
> > > 
> > > > than the main console.
> > > > 
> > > > I have a script that returns the account based on the $DISPLAY
> > > > variable. When I turn on debugging I see that the primary display
> > > > shows that the script was called but the other seat does not call it.
> > > > 
> > > > The documentation indicates that I can use the $DISPLAY in my script
> > > > but how do I get the script to run for non-console displays?
> > > > 
> > > > Thanks in advance
> > > > Darryl
> > > 
> > > _______________________________________________
> > > gdm-list mailing list
> > > gdm-list gnome org
> > > https://mail.gnome.org/mailman/listinfo/gdm-list
> 
> _______________________________________________
> gdm-list mailing list
> gdm-list gnome org
> https://mail.gnome.org/mailman/listinfo/gdm-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]