Page 1 of 1

personal start script

Posted: 17 Jul 2012, 09:01
by easy
Hi

Is there possible to include a personal script to execute at starting time :good:

(for ex. «setxkbmap -layout us -variant intl & »)

Re: personal start script

Posted: 17 Jul 2012, 12:43
by wread
Hi easy, welcome an board!

If you are using "changes" you won't need any pesonal settings module, for the system takes care for it automatically.

If you are not using "changes" (=Always Fresh Mode), then you will have to care for your personal settings; there are two possibilities:
- you make your own "mySettings.xzm" module by copying the contents of /mnt/live/memory/changes to a folder made by you, say /root/mySettings, and after copying, you right click it, choose to make a Porteus module. Now you move your first own module to porteus/modules and you are done!

- or, you inspect above mentioned /mnt/live/memory/changes to find out where your settings are, and when you find them, copy the new file created by your setting to porteus/rootcopy, following the tree starting at "changes".

For a newbie, the first way is easier and works nicely. Advanced users often prefer the second way.

Try it! Good luck :Yahoo!:

Re: personal start script

Posted: 17 Jul 2012, 12:54
by Ahau
Also, to run a simple command like that at startup, you can use 'rc.local': http://porteus.org/info/docs/47-porteus ... local.html

you could also do this with the autoexec= cheatcode (e.g. 'autoexec=setxkbmap~-layout~us~-variant~intl'), but that's a lot of '~' to type in.

rc.local can be customized through porteus-settings-centre. Click on the 'boot' icon, then 'startup scripts'. You can also use language selection tool (also in porteus settings center) to set your xkb map as well as your system language.

EDIT: correction for posterity's sake: PSC does not edit rc.local when you use it to edit 'startup scripts'. It adds sysvinit scripts instead.

Re: personal start script

Posted: 17 Jul 2012, 14:47
by brokenman
Cough cough !!

This function was added to the 'Porteus settings centre' so people wouldn't have to bother with config files and all that complicated stuff.

Just open 'Porteus settings centre' from the menu and click on the 'boot' icon and you will see you can choose your own script to run at startup ... or enter a bunch of commands you want to run at startup.

Having said that ... i would always use config files (the hard way) to become/stay familiar with the slackware system. :D