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



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.

Relevant Pages

  • Re: [SLE] After Sax, kde dissappear and minimalistis gui appear
    ... > delete second monitor) on my Matrox G400, and rebooting linux, Kde had ... > appear, not kde. ... Then to return to the normal GUI, just type init 5. ... Here is where you select your Window Manager. ...
    (SuSE)
  • Re: How to boot without X Windows?
    ... And *you* probably didn't know that you don't need to reboot to have it ... Type init 5, and it will go back to X. ... Once you are in init level 3, you can either type startx to test your X ... Once you have your X configuration working the way you want it, ...
    (Fedora)
  • Re: New video card config
    ... > Go to nvidia web site, get the single file that is for all drivers. ... download, there is no need to reboot, simply log in on a console, su ... Simply type init 5 ... Remember to log out of the console after you have logged in to the X ...
    (alt.os.linux.suse)