personal start script

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
easy
White ninja
White ninja
Posts: 12
Joined: 14 Jul 2012, 20:45
Location: Europe

personal start script

Post#1 by easy » 17 Jul 2012, 09:01

Hi

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

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

User avatar
wread
Module Guard
Module Guard
Posts: 1094
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: personal start script

Post#2 by wread » 17 Jul 2012, 12:43

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!:
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: personal start script

Post#3 by Ahau » 17 Jul 2012, 12:54

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.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: personal start script

Post#4 by brokenman » 17 Jul 2012, 14:47

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply