0

Whenever I boot up Ubuntu, it shows the purple screen, then cuts to black. Before this happened, I was editing the Xsession file, by adding a few more lines that started up dwm and added something to it's taskbar. I also added a custom.desktop file in the xsessions folder, that launched the .xsession file.

Is there any way to fix what happened? Or at least a way I can edit the xsessions file?

1

Is there any way to fix what happened?

If you mean the black/purple screen, you should read this: My computer boots to a black screen, what options do I have to fix it?

Or at least a way I can edit the xsessions file?

When your system finished booting, you press Ctrl + Alt + F2. This will bring up the tty or console. Use your credentials to log in. Then edit your file using nano .xsession. To save the changes, hit Ctrl + O then close it with Ctrl + X.

If you want to remove/deactivate the scripts, you can also move them:

mv ~/.xsession ~/xsession.bk
| improve this answer | |
  • I tried editing it in recovery mode, undid changes. Still not working. – Mobo Aug 25 '13 at 4:38
  • Why not just move/delete it? It's highly probable that if it wasn't a upgrade, yourself messed up the xserver. – Braiam Aug 25 '13 at 4:44
  • Will the xsession file regenerate if I remove it? – Mobo Aug 25 '13 at 4:47
  • Of course. If some file is missing on your login is automagically copied from the system main scripts. – Braiam Aug 25 '13 at 4:51
  • Moboman the recovery mode is not the same as @Braiam told you. In recovery mode you should first re-mount the root and/or home partition(s) in read-write mode. Try the console way as Braiam told you. – NickTux Aug 25 '13 at 4:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.