I keep finding similar posts online but I can't really use the solutions in my case.
/etc/bash.bashrc file, I have the following code placed at the very bottom:
if [ -e /tmp/.X0-lock ]; then rm /tmp/.X0-lock fi startx cd /home/user1/Documents/ProgramFile ./ myProgram.sh
This 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 remove
/etc/inittab to allow the root user to automatically login:
1:2345:respawn:/bin/login -f root tty1 </dev/tty1 > /dev/tty1 2>&1
when I boot up my box, I get the following error:
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running Please consult the The X.Org Foundation support at http://wiki.x.org for 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 descriptor
Weird 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.