Internet cafe application

View: New views
5 Messages — Rating Filter:   Alert me  

Internet cafe application

by Guillaume Viguier-Just-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm in the process of writing an Internet cafe application for Linux
and I'd like to, eventually, have on the GDM login screen 3 text
boxes:
 - one for a user login with a timecode (basically the idea would be
that the customer would purchase a timecode which would allow him to
login for a specific amount of time, and he would enter this timecode
in the GDM login screen, which would start a default session)
 - 2 other text boxes for the usual username/password combination,
which would allow members of the Internet cafe to login into a
"normal" unix account
(Note: another way to do this would be to have the timecode login
screen enabled by default and have a button "I'm a member" that would
redirect to another window which would show the usual
username/password combination)

As for the authentication and session opening, I'm pretty sure what I
need to do is to write PAM module(s) that will do the work needed.

As for the login screen modification, I've looked at the GDM and
simple-greeter code, including GDM login themes, and did not see any
fairly easy way to do this. So, how should I go about this ? Is there
a way to write some kind of plugin to GDM ? Do I need to get into the
code and recompile my own version of GDM ?

Any help on this would be greatly appreciated.

Thank you.

--
Guillaume Viguier-Just
_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list

Re: Internet cafe application

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


> I'm in the process of writing an Internet cafe application for Linux
> and I'd like to, eventually, have on the GDM login screen 3 text
> boxes:
>  - one for a user login with a timecode (basically the idea would be
> that the customer would purchase a timecode which would allow him to
> login for a specific amount of time, and he would enter this timecode
> in the GDM login screen, which would start a default session)
>  - 2 other text boxes for the usual username/password combination,
> which would allow members of the Internet cafe to login into a
> "normal" unix account
> (Note: another way to do this would be to have the timecode login
> screen enabled by default and have a button "I'm a member" that would
> redirect to another window which would show the usual
> username/password combination)
>
> As for the authentication and session opening, I'm pretty sure what I
> need to do is to write PAM module(s) that will do the work needed.
That's right.  PAM modules can be stacked, so the easiest way to
implement what you want is a PAM module that asks:

"Please enter your time code or member user name:"

And if what the user types starts with a number assume it's a timecode
and process it, otherwise set
the PAM_USER item and return early from your pam module so the next
module in the stack can use it (pam_unix).

> As for the login screen modification, I've looked at the GDM and
> simple-greeter code, including GDM login themes, and did not see any
> fairly easy way to do this. So, how should I go about this ? Is there
> a way to write some kind of plugin to GDM ? Do I need to get into the
> code and recompile my own version of GDM ?
I've started on a plugin system here:

http://git.gnome.org/cgit/gdm/log/?h=multi-stack

It's not finished yet, though, and it doesn't support out of tree
plugins, so either way you'd need to recompile your own version of
GDM.

--Ray
_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list

Re: Internet cafe application

by Guillaume Viguier-Just-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot for your answer, it helps me a lot !

Does anyone know at which piece of code I would need to look at to do
the modifications I want to do (in other words, which files control
the display of the greeter ?)

Guillaume.

2009/7/27 Ray Strode <halfline@...>:

> Hi,
>
>
>> I'm in the process of writing an Internet cafe application for Linux
>> and I'd like to, eventually, have on the GDM login screen 3 text
>> boxes:
>>  - one for a user login with a timecode (basically the idea would be
>> that the customer would purchase a timecode which would allow him to
>> login for a specific amount of time, and he would enter this timecode
>> in the GDM login screen, which would start a default session)
>>  - 2 other text boxes for the usual username/password combination,
>> which would allow members of the Internet cafe to login into a
>> "normal" unix account
>> (Note: another way to do this would be to have the timecode login
>> screen enabled by default and have a button "I'm a member" that would
>> redirect to another window which would show the usual
>> username/password combination)
>>
>> As for the authentication and session opening, I'm pretty sure what I
>> need to do is to write PAM module(s) that will do the work needed.
> That's right.  PAM modules can be stacked, so the easiest way to
> implement what you want is a PAM module that asks:
>
> "Please enter your time code or member user name:"
>
> And if what the user types starts with a number assume it's a timecode
> and process it, otherwise set
> the PAM_USER item and return early from your pam module so the next
> module in the stack can use it (pam_unix).
>
>> As for the login screen modification, I've looked at the GDM and
>> simple-greeter code, including GDM login themes, and did not see any
>> fairly easy way to do this. So, how should I go about this ? Is there
>> a way to write some kind of plugin to GDM ? Do I need to get into the
>> code and recompile my own version of GDM ?
> I've started on a plugin system here:
>
> http://git.gnome.org/cgit/gdm/log/?h=multi-stack
>
> It's not finished yet, though, and it doesn't support out of tree
> plugins, so either way you'd need to recompile your own version of
> GDM.
>
> --Ray
>



--
Guillaume Viguier-Just
_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list

Re: Internet cafe application

by Rohan Anil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

On Mon, Jul 27, 2009 at 3:48 PM, Ray Strode <halfline@...> wrote:
Hi,


> I'm in the process of writing an Internet cafe application for Linux
> and I'd like to, eventually, have on the GDM login screen 3 text
> boxes:
>  - one for a user login with a timecode (basically the idea would be
> that the customer would purchase a timecode which would allow him to
> login for a specific amount of time, and he would enter this timecode
> in the GDM login screen, which would start a default session)
>  - 2 other text boxes for the usual username/password combination,
> which would allow members of the Internet cafe to login into a
> "normal" unix account
> (Note: another way to do this would be to have the timecode login
> screen enabled by default and have a button "I'm a member" that would
> redirect to another window which would show the usual
> username/password combination)
>
> As for the authentication and session opening, I'm pretty sure what I
> need to do is to write PAM module(s) that will do the work needed.
That's right.  PAM modules can be stacked, so the easiest way to
implement what you want is a PAM module that asks:

"Please enter your time code or member user name:"

And if what the user types starts with a number assume it's a timecode
and process it, otherwise set
the PAM_USER item and return early from your pam module so the next
module in the stack can use it (pam_unix).

> As for the login screen modification, I've looked at the GDM and
> simple-greeter code, including GDM login themes, and did not see any
> fairly easy way to do this. So, how should I go about this ? Is there
> a way to write some kind of plugin to GDM ? Do I need to get into the
> code and recompile my own version of GDM ?
I've started on a plugin system here:

http://git.gnome.org/cgit/gdm/log/?h=multi-stack

It's not finished yet, though, and it doesn't support out of tree
plugins, so either way you'd need to recompile your own version of
GDM.

I was wondering if this plugin system would be able to embed custom widgets other than a text edit box , i am looking for a way to get a GtkImage widget  with the new gdm , for face authentication purposes. for KDM, there was "Greeter Plugin" through which i got the "Image" widget and instead of the password box and used a timer event to show image through an IPC with pam module. It would be great if GDM could do something similar.



--Ray
_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list



Thank You
--
Rohan Anil
IVth Year Information Systems
BITS Pilani Goa Campus


_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list

Re: Internet cafe application

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

>> http://git.gnome.org/cgit/gdm/log/?h=multi-stack
>>
>> It's not finished yet, though, and it doesn't support out of tree
>> plugins, so either way you'd need to recompile your own version of
>> GDM.
>
> I was wondering if this plugin system would be able to embed custom widgets
> other than a text edit box ,
Yes, you implement a vfunc called get_page () that returns a subtree
of widgets laid out however you want.

--Ray
_______________________________________________
gdm-list mailing list
gdm-list@...
http://mail.gnome.org/mailman/listinfo/gdm-list