Ok I've been able to make it executable (just typed chmod 755) and I made it run in the background so now the line in the script is this: /usr/bin/X11R6/clock &
But I still dont know how to make it run when xserver starts up. I thought putting it in the xinitrc.d directory automatically did that, but apparently not...any help?
Here are the steps for this simple lab (supposedly should take less than 10min):
Quote:
Create a short shell script which starts the xclock X client, but leave the command in the foreground. Store the script as the file /etc/X11/xinit/xinitrc.d/xclock.sh, remembering to make it executable.
Log out and back in again. Note that your startup process will be interrupted when xclock starts in the foreground. Because the window manager has not yet started, there is no convenient way to get rid of it. Kill your X server with a CTRL-ALT-BACKSPACE key sequence.
Fix your script by starting xclock in the background. When you restart your X server, the xclock X client should start automatically, with your X startup sequence continuing otherwise normally.
|