Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- From: "daniel åkerud" <daniel.akerud@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 12:38:08 +0100
On Dec 30, 2007 7:14 AM, Felix Miata <mrmazda@xxxxxx> wrote:
On 2007/12/30 00:30 (GMT-0500) James Loughner apparently typed:
daniel åkerud wrote:
How can I do a KDE "restart" (Found through K Menu->Log Out->Restart)
from the command-line? I figured a regular "reboot" is bad, since
sessions et al is not saved, and programs are probably more abruptly
closed.
To stop or start a GUI session:
Go to a terminal normally ctrl-alt-F1 will do
log on as root
type init 3
this normally will shutdown the GUI
type init 5
this will restart the GUI
go back to the terminal ctrl-alt-F1
Log out as root
type exit
I said normally above since I don't know what distro and though most
will follow the init level rules there is no absolute....
Init 3/init 5 doesn't work on most Debians, which don't do anything
different
in runlevels 2-5. '/etc/rc.d/kdm restart' as root or with sudo should get
the
job done though on both Debians and non-Debians.
--
I actually want to reboot the computer, like "Restart" does in KDE, and the
suggestions above doesn't do that. In other words, I want to do the KDE
equivalent to /sbin/reboot (but still save session and whatever KDE
does).Btw, I'm using Kubuntu 7.10. Thanks,
/D
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
- Follow-Ups:
- Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- From: Felix Miata
- Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- From: Werner Joss
- Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- References:
- [kde-linux] K Menu->Log Out->Restart through command-line?
- From: daniel åkerud
- Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- From: James Loughner
- Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- From: Felix Miata
- [kde-linux] K Menu->Log Out->Restart through command-line?
- Prev by Date: [kde-linux] Konqueror IconSize
- Next by Date: Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- Previous by thread: Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- Next by thread: Re: [kde-linux] K Menu->Log Out->Restart through command-line?
- Index(es):
Relevant Pages
|