I keep finding similar posts online but I can't really use the solutions in my case.in my /etc/bash.bashrc file, I have the following code placed at the very bottom:if [ -e /tmp/.X0-lock ]; then    rm /tmp/.X0-lockfistartxcd /home/user1/Documents/ProgramFile./ myProgram.shThis is to run my program automatically upon startup.I'm running Debian 6.0.7 squeeze. I want to run my program as root on startup. I executed the following command to disable the GUI: update-rc.d -f gdm3 removeI modified /etc/inittab to allow the root user to automatically login:1:2345:respawn:/bin/login -f root tty1 </dev/tty1 > /dev/tty1 2>&1when I boot up my box, I get the following error:_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn't already runningPlease consult the The X.Org Foundation support at http://wiki.x.orgfor help. Please also check the log file at /var/log/Xorg.0.log for additional information.(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor   (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptorWeird thing is this appears in a white box at the top left corner of my screen, it stays there fore a little while (~15 secs) and then I see my code execute and the screen changes to my application. Q: Can anyone explain to me what is going on here and what I can do to not get the error messages.
Debian: How to resolve Xserver failure
debian;x11;startup;bashrc;gdm3