On my Ubuntu 14.04 virtual machine compiz freezes often. I usually swtich to tty1 and kill the process, then switch back to tty7 and, if I can see a terminal window, I run
compiz --replace & in it.
But there are times when I don't see any terminal window, and right clicking on the desktop doesn't give any menu so I can open one and I have to restart lightdm service. This is work blocking.
My question is: how can I run
compiz --replace & or any other command from a different tty on tty7?
I read this thread, but I don't know how to make tmux connect to a different tty on my machine, and the second one involves using the homebrew program. I also read this, but it involves having a daemon run on tt7 expecting for my commands. Isn't there any easier way to do this?