2

I use vim to build an empty file ~/.xinitrc as a tutorial tells me. And then I change its content to exec wmii. wmii is the window manager I intended to use. I've already installed it on my Ubuntu.

After I reboot my computer, I can't log in with my account, flash up and back to the log in interface. But still I can log in with guest account.

Is there a way that I can fix this problem and log in with my account?

Zen
  • 683
  • 1
  • 7
  • 17

1 Answers1

2

Go to tty1 using Ctrl+Alt+F1 keyboard shortcut, login with your username and password and delete the file:

rm ~/.xinitrc

Finally, restart lightdm:

sudo service lightdm restart

or

sudo service lightdm force-reload
Radu Rădeanu
  • 169,590