Executing a command at boot time
From MEPIS Documentation Wiki
kdesu kwrite /etc/rc.local
If you just need to run the command as regular user when KDE starts, add the command in ~/.kde/Autostart/ directory. You can either copy the program or symlink to it or add a script that runs multiple commands.
- Create a script in /etc/init.d directory (you have to be root)
- Make the script executable: "chmod +x scriptname"
- Set it to load automatically with update-rc.d
update-rc.d scriptname defaults 80
For more info, type: man update-rc.d
You can also use KSysV if you prefer a GUI instead of update-rc.d (install it with apt-get install ksysv). KsysV makes it easier to choose the execution order of different scripts.