I met a problem.My run env is C/S framework and server had been modified can support by pxe boot slax in client.Now my problem is while client login GUI,I have a command (the command be created myself.) cannot been autorun.but it can be run in "run command" or "shell konsole".I have setup by autoexec and rc.local,but all of invalid.who can help me,thank a lot.urgent!
thank you your reply,burninbush and agreimann.My problem had been solved by myself.Maybe I don't make myself clear,the command is need run when X have started.so I find need modify kde/.autorun,new create a directory,copy my command to the directory and renew package the lzm,that ok.
OK--from what I understand you would like your command to run when starting KDE? You can do this by using the Autorun folder--and you can change what folder you want in Control Center > System Administration > Paths if you wish. There's also the method mentioned earlier of automatically running a script at startup, without needing to modify a bunch of files. Now, if it requires X to start, and can't when the system is booting, there's different routes you could go. You could have the program or script sleep for 30 seconds before autologin takes place or detect if, for instance, X is running on screen 0. But, in this last case, we're not just talking about just something like autoexec=echo~Hello;reboot anymore--you will need to know bash or another language and write a script that fits your needs.
As a sidenote... if you are feeling courageous enough to modify files in your home folder like you said, (but I wouldn't recommend doing it), you can open Konsole or a new shell with Ctrl+Alt+F1 and go to your home directory with a plain cd command. From there, use cd .kde, for instance to switch to .kde. If you need to take a look around, use ls. To edit files, Slax comes with an excellent editor--vi. If you're not sure how to use it, see "man vi". If you'd rather do things the GUI way--which can be much easier for new users--use Konqueror with hidden files on, and open the file you want to edit with KWrite. If all that doesn't help, you could also take a look at your XSession file, and see if you can do something there.
I have this file in ~/.kde/Autostart/myprefs.sh
containing commands I want to run automatically everytime kde starts
[this works just like an autoexec.bat command collection would in DOS-based systems, it does not run at boot but only when kde-X-desktop starts]
I keep this file along with other personal settings in a module in my [usb]/slax/modules/myprefsDATE.lzm
so when I boot in X [or boot in text mode, then startx later],
I get my personalized desktop
If you use some other X/desktop (not kde), then you will need to move the file
~/.kde/Autostart/myprefs.sh .. accordingly
PHP is a web-based language--you might look into tying that into Firefox and your server/network? Not sure what you're trying to do here... As for your earlier question/post, see the earlier comments on how to autorun something in KDE. Hope this helps you; good luck...