I modified grub, so that whenever I boot, it starts in command line mode. However, when I type startx, it gives me a screen with the ubuntu background on it and my cursor is an x. I can open things with C-Alt-F2, but otherwise there's nothing else I can do, not even logout. I cant move the windows around either. I tried running lightdm, and that gave me the login screen, but when I logged in, I was greeted by an extremely glitchy and laggy desktop, of which the background was constantly flickering from black to normal. It heated up my computer so much that the fan was on full blast (which never happens normally).
If there isn't a solution for this, is there some os that has better integration between desktop environments and command lines (as in the one I boot up to, not just a terminal like xterm)? Or, am I just doing something wrong? My goal is to make it easy to switch from command line to desktop, and from desktop to command line.