Accidentally xkilled desktop and taskbar on linux

-1

I was on CentOS with KDE, and I accidentally pressed Ctrl+Alt+Esc, and then clicked the desktop, and the taskbar. Only the mouse pointer worked now. My short research showed that this is xkill, and it kills the process I've clicked on. There are some instructions on the internet, which would help me when either the taskbar, or the desktop is killed, but never both.

What makes everything even more difficult, is that it was at the student's computer centre of my university. I tried to power-off the machine, and turning it on again, but it just connects to the central server, sees that my old session hasn't been terminated, and asks me for the password. There were literally no other options availabe. When I enter it, there's again the black screen, with only the mouse cursor. Logging in from another machine, everything worked fine. The computer is reset tonight, and everything should work fine tomorrow.

Still, I really want to know how you would escape from such a situation. Desktop and taskbar are gone, Ctrl+Alt+F* doesn't work, and hard restarting only asks for your account password again, leaving you the session with the black screen.

user2009388

Posted 2014-02-11T02:23:41.943

Reputation: 9

on Linux Mint, Ctrl+Alt+Del instantly exits your user session and starts it again, as if you logged out and back in. I don't know if that works with other distributions too. – Xerus – 2018-03-03T01:43:08.460

You could try Ctrl+Alt+T and see if that opens a terminal prompt. – Michael Frank – 2014-02-11T03:37:28.423

Or Windows(Super)+T if that shortcut is setup. – Lawrence – 2014-02-11T04:28:26.953

sorry, but they both don't work – user2009388 – 2014-02-21T12:40:39.237

Answers

0

If it's just a black screen, you make have only killed the KDE Plasma interface, leaving X still running. You can try to get to a virtual terminal with Ctrl+Alt+F1. Once there, you can use any manner of commands to get X restarted. One option is to go with:

restart X

Since you are running KDE 5, you might consider the following:

killall plasmashell
kstart plasmashell

To ensure the KDE plasma interface is dead before attempting to restart it. Once that is done, simply hit Ctrl+Alt+F7 or Ctrl+Alt+F8 to get back over to the terminal that X should be running on.

A more nuclear option would be to press Ctrl+Alt+F1 to get to a virtual terminal and then enter:

init 3

Wait a few seconds (maybe press Enter a few times) and then enter:

init 5

This should drop everything down to runlevel 3 (pre GUI) and then kick off all the processes for runlevel 5 (GUI / display manager running).

Hope this helps.

Justin Pearce

Posted 2014-02-11T02:23:41.943

Reputation: 2 712

This might come in handy sometime, but for this problem, as already written, Ctrl+Alt+F* (* stands for any number here) did not work. (Disclaimer: I'm not any longer enrolled in that university for quite some time now, so I can't check anything I haven't tried yet.) - EDIT: I've just seen that KDE Plasma was introduced in July 2014, but this question is from February 2014. – user2009388 – 2018-06-06T08:27:38.203

@user2009388 I missed that part of the question, sorry. I tried to at least cover all the eventualities with the service restart and runlevel restarting, at least. shrug – Justin Pearce – 2018-06-06T13:51:21.190