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?

Mobo
  • 296
  • 1
  • 5
  • 14

1 Answers1

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
Braiam
  • 67,791
  • 32
  • 179
  • 269
  • I tried editing it in recovery mode, undid changes. Still not working. – Mobo Aug 25 '13 at 04: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 04:44
  • Will the xsession file regenerate if I remove it? – Mobo Aug 25 '13 at 04:47
  • Of course. If some file is missing on your login is automagically copied from the system main scripts. – Braiam Aug 25 '13 at 04: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 04:52
  • @Moboman use the "Try Ubuntu" option. The recovery mode could not offer the capabilities to do what I asked you to do. – Braiam Aug 25 '13 at 04:56
  • I don't have a bootable disk in, and it doesn't boot far enough to pull up the terminal with control + alt + F2. I'm also using WUBI, if it makes a difference. – Mobo Aug 25 '13 at 05:06
  • ARG! Don't use Wubi, whatever the reason, don't use it. It's extremally buggy, and we will waste several hours figuring out what went wrong of all the things went wrong. Next time, include how you boot up in your question so everyone knows what they are dealing with. In any case, read this answer if you want to keep using Wubi, or just uninstall Wubi and install Ubuntu in its own partition. There's another question about how to migrate your Wubi installation, but it already have problems, so I recommend against it. – Braiam Aug 25 '13 at 05:11