execute scripts at startup

Hi,

Do you know how to execute my simple scripts to run at startup?
I also looked at /etc/init.d/…, but they look very complicated. Do we have another simpler way?

Thanks!

tisungho wrote:
> Hi,
>
> Do you know how to execute my simple scripts to run at startup?
> I also looked at /etc/init.d/…, but they look very complicated. Do we
> have another simpler way?

You can call them from /etc/init.d/boot.local.

I’d consider using your gui autostart facility, i.e in .kde/autostart most DE’s have some kind of autostart.

I’d use boot.local if you have something specifically you want to run as root, even then I would still consider using the DE with sudo if needed/depending on usage.

Thanks!

I’ll try this!
And also, can I set some aliases and environment variables from here too?

You can put aliases,etc… in .bashrc which is in your $HOME directory. If .bashrc is not present, you can create it. It is when your sell is “bash” i.e. when you do a “echo $SHELL” you will get “/bin/bash” as output. for “/bin/sh” use “.shrc”. Also, you can create a script in which you can set aliases, etc… and add that in Autostart.

It works like a charm! rotfl!
Thanks for this and bashrc tip!