I am new to xubuntu, somtimes my xfce desktop crashes, and I can only use tty1 from command line.
I want to know how can I restart my xfce in tty7 from tty1?
I've googled it, but didn't found the solution. Thanks.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Try killing user by
pkill -KILL -u yourusername
This will bring you back to login screen though.
startxfce4 didn't work, but
You could try the following command:
It restarts the windows manager.
You can try
As this site says:
Restart XFCE4 : from the command line, you would better use "startxfce4" to bypass stupid distribution X startup scripts that can drive you crazy, really.
pkill worked but seemed a little extreme to me. If I had other stuff going on in other tty sessions it would kill those too.
Another solution is:
sudo restart lightdm
A great strength of Linux is that there are always multiple ways to achieve the same task.