Error on boot 12.04

When I boot my Toshiba Tecra(nvidia) say no protocol specified (2x and ..) a lot of. Then appears the next message:

xinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable

wainting for X server to shutdown ddxSigGiveUp: Closing log
Server terminated successfully(0). Closing log file.

xinit: server error
xauth: error in locking authority file /home/toshiba/.Xauthority

I think I resolved my problem. I used this forum post. The commands were:

cd /home/machine
mv .Xauthority .Xauthority.old
touch .Xauthority
chown machine:machine .Xauthority

In addition to the answer suggested by Ricardo, I also want you to do the following:

cd /home/machine
mv .Xauthority .Xauthority.old
touch .Xauthority
chown machine:machine .Xauthority 

In cases where chown produces an error, just provide execute and read write permissions, which should solve the problem.

chmod +x .Xauthority

Fixing Error in locking authority file .Xauthority

# cd /home/user
# ls -a -lh
# chown user:user .Xau*

cd /home/machine

mv .Xauthority .Xauthority.old

touch .Xauthority

chown machine:machine .Xauthority

Only works if you do it as root user