Hi to all,
I installed Raspbian using NOOBS as told at the raspberry pi web site, after installing i logged in and typed the command " startx " but nothing happened, i waited for about 5 minutes, I also tried pressing the "1, 2, 3, 4" buttons on the keyboard but still nothing happened, i was connected to my LCD TV via HDMI cable, I had a 4GB card and i did formatted it correctly, i did the formatting and reinstalling 2 times but still nothing..
then i tried the "sudo startx" command and it just worked fine, i rebooted it and again gave the command " startx " and the black screen came back.. What should i do now ?? Suggest me something Its just frustrating i wasted 4 hours trying to fix that, i am a beginner i don't know much please help....
I think you will find that you have some xconfiguration files in the pi home directory that are owned by root.
This means that startx can not access these files as pi user.
Ls -la you will see files like xauthority owned by root.
Use sudo rm to remove the offending files.