Ubuntu – How to restart Cinnamon from the tty

cinnamontty

I installed Cinnamon on my Ubuntu 12.04, and it works well, but sometimes it just freezes for no reason. I can move my mouse but can't click on anything.

So I want to restart Cinnamon from tty, like I used to do with gnome shell. How do I do that?

I tried killall cinnamon and nothing happened.

Then I tried export DISPLAY=:0.0 , cinnamon --replace and still nothing.

I guess the command cinnamon is not valid.
I don't want to restart the whole X server because then all of my windows will get closed. I just want to restart the window manager cause I believe it is causing the problem.

Best Answer

Hit Alt+F2, type r and hit enter.