LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2020, 01:44 PM   #1
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
How do login managers work?


Hi all,
The title basically says it all.
I'd like to delve into ncurses using C as an effort to further my programming skills.
I do have a Bachelor degree, but I have nog been given any C...strange. I feel like a car mechanic that has no clue how to change tires...
So. Just to set a goal...
Thanks a bunch
Lov ya
Melissa
 
Old 12-20-2020, 02:40 PM   #2
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 399

Rep: Reputation: Disabled
init manages logins. It calls getty (or I guess agetty) and then invokes login to check credentials.

ncurses is independent of the terminal so writing ncurses programs don't require you manage the terminal.
 
Old 12-20-2020, 09:46 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
agetty is the program that manages login to the console or virtual terminal. Graphical display managers i.e. xdm, ldm, gdm etc display the login prompt from the desktop.

xdm was the original display manager and might provide a starting point.

https://en.wikipedia.org/wiki/X_display_manager
https://www.linuxjournal.com/article/4720

ncurses is a library that provides an API to create text based visual i.e GUI like interface for the console. Midnight commander which is a file manager is an example of an ncurses application.

While the tldp is dated it does provide somewhat of a beginning guide.
https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

Last edited by michaelk; 12-20-2020 at 10:01 PM.
 
  


Reply

Tags
login, programming



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'login' doesn't work, 'su' doesn't work, can't login as root antiqui.populi Linux - Security 3 10-20-2006 04:32 PM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 11:31 AM
Accessing window managers from Mandrake 9.1 login screen pioniere Linux - Software 1 06-18-2003 10:36 PM
How to add window managers in login screen menu uttamsaxena Linux - General 1 07-04-2002 12:11 PM
Changing RedHat 7.1 graphical login managers midnightcommander Linux - General 5 07-11-2001 10:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration