rc.local and scipts - command not found
Hi,
I'm trying to create a custom slackware livecd for a project and am almost there however, I'm having problems with rc.local and a script I want to run.
The script is as follows:
while true ; do
su - kiosk -c 'xinit'
done
If I run xinit from kiosk user, my firefox kiosk appears every time perfectly. If I however run rc.local as above, I get:
/bin/bash: xinit: command not found over and over.
If I try
while true ; do
su - kiosk -c '/usr/X11R6/bin/xinit'
done
I get the following error:
/usr/X11R6/bin/xinit: No such file or directory (errno 2): no server "X" in PATH
Use the -- option or make sure that /usr/X11R6/bin is in your path and the "X" is a program or a link to the right type of server for your display. Possible server names include:
Xorg X.Org displays
Giving up...
Having tested this on a debian machine it works fine. I feel like giving up too!
Can someone please help on the final part of the livecd project.
Thanks,
Simon
Last edited by simonmorley; 07-03-2007 at 01:21 PM.
|