LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-01-2004, 06:09 AM   #1
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Login and Shutdown question (kdm vs gdm)


I've tried out both gdm and kdm as login managers, and I've decided I like gdm better. For one thing, it gives you more options for logging in, especially the language settings, which will be useful once I can get this system working with Japanese.

But there's one thing kdm has that gdm doesn't seem to have. When I log out of KDE, under kdm I get a nice selection dialog with choices for logout/shutdown/reboot. Under gdm I get nothing but a confirmation prompt. I have to go back to the login display and then manually shutdown or reboot, which can be a bit of a pain.

So what I want to know is, how can I have gdm and still get a shutdown prompt when I log out? Perhaps there's some other program I can use specifically for logging out? Or maybe someone can recommend a completely different login manager that provides all the features I like. What do you recommend I do?
 
Old 08-01-2004, 06:36 AM   #2
mosca
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Debian
Posts: 41

Rep: Reputation: 15
Hi,
I am running gdm and have a reboot/shutdown option from the actions menu. Try running gdmconfig as root and you will find out!

Good luck.
 
Old 08-01-2004, 06:59 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I know it has the options in the actions menu, but I don't want that. Kdm pops up a selection menu the second you select logout, you can just select shutdown+ok and the system powers down from there. With gdm you have to wait for it to finish logging out, then wait for it to restart x and bring up the login screen again, THEN select shutdown from the action menu before you can actually shut down your system. What a pain. I just want some way to quickly select logout, reboot, or shutdown from within my X session, while retaining gdm as my login manager.

Unless there's some other login manager out there that would give me the same flexibility both at login and logout.
 
Old 08-01-2004, 07:13 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Uhm, gdm isn't running when you are logged in. gdm and kdm (both) just authenticate you, log you in, and pass control over to the window manager you want. You must want to know how to get a shutdown/restart/logout prompt IN Gnome.
 
Old 08-01-2004, 07:35 AM   #5
mosca
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Debian
Posts: 41

Rep: Reputation: 15
David the H.>
I'm sorry for misunderstanding your question. I think what you could do is to find a way of running shutdown/reboot as a regular user (many solutions to this problem, my immediate idea would be to change permissions, which is probably not a good one) and create a gnome menu calling these modified shutdown/reboot commands.

Hope this helps.
 
Old 08-01-2004, 07:37 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Well, however it works. All I know is that when I use gdm to login, the kdm shutdown screen disappears. Logging out seems to hand you back over to whichever display manager daemon is running. I'd be happy to be given the correct info so I can configure things myself.

Actually, right now I can't log out of Gnome at all. It just brings up a warning saying gdm isn't running and hangs everything. I have to crtl+alt+backspace to actually get out of it. It didn't do that before. Must be a bug in the latest version of something.

I mostly use KDE now, but I occasionally log into Gnome to try out new things, and I also occasionally experiment with other WM's.
 
Old 08-01-2004, 07:42 AM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Mosca, that might do it. I didn't realize that they were standalone programs. How do you suggest I go about it? Is it as simple as changing permissions and setting up the menu items?

How about setting them up with a dedicated group and allowing execute permissions for that group instead of just letting up on overall permissions?

Edit: I see that shutdown and halt (reboot is just a symlink to it) already have execute permissions set for all users, but they still only work for root of course.

david:~$ ls /sbin/halt /sbin/shutdown
-rwxr-xr-x 1 root root 9268 Jun 19 19:40 /sbin/halt
-rwxr-xr-x 1 root root 18476 Jun 19 19:40 /sbin/shutdown

What do I need to do to get them working? Should I try to get them configured for use under sudo instead?

Last edited by David the H.; 08-01-2004 at 07:49 AM.
 
Old 08-01-2004, 08:43 AM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Well, I found through another thread that you can 'chmod +s' the halt, reboot, and shutdown programs so that anyone can run them. I set up KDE menu entries to run them and they work well enough. But to be honest, I feel that it's a sub-optimal solution. For one thing there's no confirmation screen. If I accidentally hit the commands there'd be nothing to stop them. Also, the KDE menu seems to alphabetically order it's entries, so they aren't at the bottom where they should be. I wish I could put them next to the logout entry at the very bottom, but there isn't any way to configure those entries at all.

What I really want is a shutdown dialog like kdm offers. Has nobody yet devised a simple graphical shutdown program that anyone can use?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Randomizing GDM,KDM login screens meetashwin_16 Linux - Software 1 10-21-2005 06:49 AM
Cant login via gui kdm nor gdm pkto Suse/Novell 1 01-17-2005 10:23 PM
KDM, GDM, XDM login problems TomJ Linux - Software 2 10-04-2004 11:14 AM
X login screen XDM/KDM/GDM jesselong Linux - Software 4 06-12-2004 10:02 PM
Graphical Auto-Login without using KDM or GDM soda Linux - General 7 12-01-2002 12:57 PM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration