Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: stop/start KDE from the command line (Terminal)

  1. #1

    Default stop/start KDE from the command line (Terminal)

    hi

    Howto stop/start KDE from the command line (Terminal) on opensuse 11.4?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: stop/start KDE from the command line (Terminal)

    I fail to understand your question. When one is in a GUI session that uses KDE as desktop environment, one stops using it by loging out. Is loging out not using the icons, but with a command from a started Konsole what you want?
    Henk van Velden

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: stop/start KDE from the command line (Terminal)

    Code:
    qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
    from a terminal like konsole or xterm will do it.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.5 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
    ION | 3GB Ram

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: stop/start KDE from the command line (Terminal)

    martin_helm wrote:

    >
    Code:
    > qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
    >
    > from a terminal like konsole or xterm will do it.
    >

    or if you speak about a tty doing "init 3" as root will terminate kde (but
    this is brute force it is not the same as a clean logout) and "init 5" as
    root will restart kdm.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.5 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
    ION | 3GB Ram

  5. #5

    Default Re: stop/start KDE from the command line (Terminal)

    No, I mean to stop/start KDE from the command line using CTRL-ALT-F1.

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: stop/start KDE from the command line (Terminal)

    Using Ctrl-Alt-F1 does not stop and certainly not start KDE. It is interpreted by the X server and changes your view to logical console #1. Nothing is done to your KDE session (when you have one running at logical screen #7). It is unharmed, you only can not see it (until you do Ctrl-Alt-F7).

    Your question does not seem to be in line with the facts. Maybe you can explain better what you want, or even why you want it. This will give us a change to think together with you about a solution (when one is available).
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: stop/start KDE from the command line (Terminal)

    On 07/10/2011 03:06 PM, upiter wrote:
    >
    > No, I mean to stop/start KDE from the command line using CTRL-ALT-F1.


    ok, i _think_ i might have guessed what you want..

    is this close to what you want to do: while logged into KDE as yourself,
    you want to log out of KDE and then back in either as yourself or as
    another user? and, you wish to do that without using the easy KDE menus
    to Leave > Logout (which is the very very easy way to stop/start KDE
    without going to the command line)..

    is that what you want to do?

    ok, try this:

    -use Ctrl+Alt+F1

    -in the resulting terminal log in as root

    -once logged in and before you do anything else use Ctrl+Alt+F7 to get
    back to KDE to prove to yourself that KDE is still running

    -then use Ctrl+Alt+F1 to get back to the terminal where you are still
    logged in as root, and

    -type in and enter this code to stop KDE

    Code:
    init 3
    NOTE: everything you had open in the KDE session has now been closed,
    and if you were in the midst of a download, or writing a letter to Aunt
    Tillie they have been interrupted and probably spoiled.

    -when everything has stopped moving you may have to press enter once to
    get back to roots command line...

    -then again use Ctrl+Alt+F7 and confirm that KDE is dead..

    -then, go back with Ctrl+Alt+F1 to root's command line and type in and
    enter this code to start KDE again

    Code:
    init 5
    KDE will open up in front of your eyes and you can then use Ctrl+Alt+F1
    to go back and see your root command line (and, if it were me i'd type
    "exit" and enter just to close it) and Ctrl+Alt+F7 to get back to KDE..

    remember the GUI's Leave > Logout is a lot easier!

    --
    DD
    -Caveat-Hardware-Software-

  8. #8

    Default Re: stop/start KDE from the command line (Terminal)

    Quote Originally Posted by DenverD View Post

    remember the GUI's Leave > Logout is a lot easier!

    Sorry my questions was not so clear, I'd like to kill KDE, for example on Ubuntu I can do it using this simple command to stop and start Gnome:
    Code:
    # /etc/init.d/gdm stop
    # /etc/init.d/gdm start

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: stop/start KDE from the command line (Terminal)

    upiter wrote:

    >
    > DenverD;2362952 Wrote:
    >>
    >>
    >> remember the GUI's Leave > Logout is a lot easier!
    >>
    >>

    >
    >
    > Sorry my questions was not so clear, I'd like to kill KDE, for example
    > on Ubuntu I can do it using this simple command to stop and start Gnome:
    > Code:
    > --------------------
    >
    > # /etc/init.d/gdm stop
    > # /etc/init.d/gdm start
    > --------------------
    >

    Code:
    sudo /usr/sbin/rckdm stop
    sudo /usr/sbin/rckdm start
    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.5 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
    ION | 3GB Ram

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: stop/start KDE from the command line (Terminal)

    May I take the freedom to addd something to tthis?

    Please next time when you want to ask something take the time to explain extensive what you want to do and why, what your situation is and what you tried and did not work. Illustrated with computer output like error messages, etc. Never assume that what you do is a logical thing to do that others do all the time and thus that those others will understand your problem with a scanty description.

    And a little warning. I do not know why you want to stop the Display Manager (and with it a posibly running X session) so abruptly, but most people here never ever got the idea to do this. It is something you do only in very exceptional circumstances. Thus it might be usefull for you to explain why you have the need to do this. It may leed to advising you a more normal solution for your real problem.
    Henk van Velden

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •