How to start plasma-desktop from SSH-console on desktop session?

36,265

Solution 1

If you see a blinking cursor that means you're on the wrong vty or the X server isn't running at all. Killing plasma-desktop probably took it down with it. plasma-desktop obviously needs an X server to connect to, so try restarting your X server. One of these should work:

  • /etc/init.d/kdm restart
  • /etc/init.d/xdm restart
  • /etc/init.d/?dm restart
  • startkde (If you're not using a login manager)

Solution 2

Also you can do it without restarting whole X. Just export DISPLAY variable before your command to tell where is your X server and display:

export DISPLAY=:0

or what is your DISPLAY and then run your command. Or even just put variable before command:

DISPLAY=:0 kstart plasma-desktop

should work.

Share:
36,265

Related videos on Youtube

K B
Author by

K B

Updated on September 18, 2022

Comments

  • K B
    K B over 1 year

    I killed KDE's plasma-desktop on a openSUSE 11.2 machine, because it was eating too much CPU. How can I restart it via SSH or another tty session? On the affected computer there is only shown a blinking cursor on the screen, but I cannot type anything.

    If I try "kstart plasma-desktop" over SSH the error message of course is "kstart: cannot connect to X server", because I haven't enabled X11-forwarding. But nevertheless "kstart plasma-desktop" is not the completely correct, because I want to start plasma-desktop on a desktop session and not over SSH on my computer.

    • Ali
      Ali over 12 years
      On the machine (not ssh) do alt-F2 then kstart plasma-desktop
  • XZS
    XZS over 12 years
    "/etc/init.d/xdm restart" worked, but "startkde" gave an error message.