I have freshly installed arch linux according to the steps listed in arch linux wiki page, installed xorg and gnome. In my ~/.xinitrc file I have added the line
Now, when I boot my system and login to tty1, as a normal user( not root) and type
startx at the prompt the gnome session doesn't start and instead complains that the connection to the xserver is lost.
But when I log in as root or use
su to issue command
startx it starts without a problem. Can anyody help me with removing this problem ?