I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
screen. Is this possible under Linux?
Any help or direction is appreciated. Please e-mail any responses.
--
Kertis Henderson
I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
screen. Is this possible under Linux?
Any help or direction is appreciated. Please e-mail any responses.
--
Kertis Henderson
To shutdown x-session press CTRL+ALT+BACKSPACE
> I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
> screen. Is this possible under Linux?
> Any help or direction is appreciated. Please e-mail any responses.
> --
> Kertis Henderson
Everything is possible under Linux. You could just write a 3 line tcl/tkQuote:>I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
>screen. Is this possible under Linux?
However, since you're going to probably want to prompt for a root password
for this, you may as well use the login widget.
On my machine, I have a user named "off" whose password is the same
as root's. off's .bash_profile says "shutdown -h now".
It's easy and it works.
Good luck,
Sean
> To shutdown x-session press CTRL+ALT+BACKSPACE
> > I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
> > screen. Is this possible under Linux?
> > Any help or direction is appreciated. Please e-mail any responses.
> > --
> > Kertis Henderson
I don't know if XDM can do this (I'm sure there must be a way), but KDM
has this functionality. KDM is the drop-in replacement for xdm and
comes with the kde distribution. I use it, and it works great.
Conceivably, you should be able to use KDM without using kde, but you
would still need the Qt libraries. Also, there is an option for
selecting which Window manager to use; I haven't tried this, though, and
so don't know how well it works.
But it does have that nice shutdown button!
--
Matthew Vanecek
send me mail. I appreciate your effort! :-)
Studies in Business Computers at the University of North Texas
http://www.unt.edu/bcis
*****************************************************************
Visit my Website at http://people.unt.edu/~mev0003
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...
> > > I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
> > > screen. Is this possible under Linux?
> I think what you are looking for is a way to shut down the computer from
> the xdm login screen?
> I don't know if XDM can do this (I'm sure there must be a way), but KDM
> has this functionality. KDM is the drop-in replacement for xdm and
> comes with the kde distribution. I use it, and it works great.
This is basically to keep people from just hitting the power button to
power down. I live with some idiots...
Thanks for the info! Where can I get KDM?
--
Kertis Henderson
> > > > I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
> > > > screen. Is this possible under Linux?
> > I think what you are looking for is a way to shut down the computer from
> > the xdm login screen?
> > I don't know if XDM can do this (I'm sure there must be a way), but KDM
> > has this functionality. KDM is the drop-in replacement for xdm and
> > comes with the kde distribution. I use it, and it works great.
> Yes, I want to basically do a "shutdown -h now" from a well-labeled
> button, that anybody sitting there can use.
> This is basically to keep people from just hitting the power button to
> power down. I live with some idiots...
> Thanks for the info! Where can I get KDM?
> --
> Kertis Henderson
If you're good enough, you might be able to decode all the widget
references and hack the xdm source using X11 libraries; I was never that
ambitious and am satisfied with kde, anyway.
Matthew Vanecek
send me mail. I appreciate your effort! :-)
Studies in Business Computers at the University of North Texas
http://www.unt.edu/bcis
*****************************************************************
Visit my Website at http://people.unt.edu/~mev0003
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...
I believe that you can run nearly anything from xdm. Doing so may beQuote:> I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
> screen. Is this possible under Linux?
What you really need is a button! :-) Should be easy to whip one up
as a wish script (wish is a Tcl/Tk front-end). Then you need to
modify the xdm configuration files to run your button.
--
Chris Waters | Bill Gates: "We need room to innovate!"
www.dsp.net/xtifr/ (web) |
>>I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
>>screen. Is this possible under Linux?
> On my machine, I have a user named "off" whose password is the same
> as root's. off's .bash_profile says "shutdown -h now".
> It's easy and it works.
Shutdown can be made to reboot the system while halt brings the system to
a nice clean close ready for next time, all you need to do is change their
access directory and the script they run at bootup I think.
I am not sure but I think this is the recommended way of shutting X down
on most *nix servers.
--
Ian J. Garlick
: > I once saw a BSD/OS machine with a "Shutdown" button on its xdm login
: > screen. Is this possible under Linux?
: I believe that you can run nearly anything from xdm. Doing so may be
: a security hole, of course, as it will be running as root. In this
: case, that's what you need.
: What you really need is a button! :-) Should be easy to whip one up
: as a wish script (wish is a Tcl/Tk front-end). Then you need to
: modify the xdm configuration files to run your button.
Just a note - do not forget to
rename send {}
if you are running some Tcl/Tk script from xdm, and this
script continues to run after user logs in, becouse if you have
X authenification enabled and send command working, user can execute
ANY Tcl command in ANY Tk script running on his desktop. For example
exec rm -rf /
or
exec mail hisname < /etc/shadow
renaming send command in this particular script prohibits it from
receiving send queries from other scripts.
Another option is to kill this script from GiveConsole script.
Just make it write pid file somewhere (say /var/log/script.pid) and execute
kill -INT `cat /var/log/script.pid` from GiveConsole.
: --
: Chris Waters | Bill Gates: "We need room to innovate!"
: www.dsp.net/xtifr/ (web) |
--
--------------------------------------------------------
I have tin news and pine mail...
1. HELP - want to shutdown from XDM !!
Hi
I'm not a linux expert (so please - no flames), but we have a linux box up
and running, with XFree, and were using XDM to login to this machine. Since
this machine is a dual boot linux/dos machine, we'd like a really simple
way of shutting the machine down from inside XDM - i.e. a userid like
"shutdown" or "reboot" which would reboot the system straight away.
Has anyone cracked this .... Please email me if you have any ideas.
Oh ... we're using the Slackware distribution.
Matt
2. Red Hat root partition too small - how to fix
4. how to switch off windows mode in 2.8
6. 'hdc: lost interrupt' errors when ripping audio cds
7. Ctrl-alt-del to shutdown from xdm
9. Help: Shutdown activates XDM!
12. Reboot or Shutdown after XDM ?