[kde-linux] K Menu->Log Out->Restart through command-line?

daniel åkerud daniel.akerud at gmail.com
Sun Dec 30 11:38:08 UTC 2007


On Dec 30, 2007 7:14 AM, Felix Miata <mrmazda at ij.net> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20071230/1be163f9/attachment.html>


More information about the kde-linux mailing list