Tiny Core Extensions > TCE Talk

How to start program automatically after system started

(1/2) > >>

wwwronin:
How to start program automatically after system started .
And how to load drivers(like video card) automatically.

bmarkus:

--- Quote from: wwwronin on December 09, 2015, 01:07:50 AM ---How to start program automatically after system started .

--- End quote ---

Start in /opt/bootlocal.sh

nitram:
Hi wwwronin.

bmarkus beat me but this may provide additional information. If i'm wrong, someone will correct and i'll learn too.

Drivers should be listed in onboot.lst, example xf86-video-intel.tcz.

/opt/bootlocal.sh for programs and commands at boot, especially requiring root, example:

--- Code: ---#!/bin/sh
# put other system startup commands here

sudo /usr/local/sbin/basic-firewall noprompt
mkdir /mnt/nfs_test
/usr/local/etc/init.d/nfs-server start
/usr/local/etc/init.d/nfs-client start

--- End code ---

Plain text document in ~/X.d./ for user/non-root items, example non-executable plain text document named startups containing:

--- Code: ---amixer set Master 80% &
amixer set PCM 100% &
amixer set Master unmute &
amixer set PCM unmute &
conky &
xset s 300 &

--- End code ---

wwwronin:
That means I should rewrite /opt/bootlocal.sh in tinycore.gz?

Misalf:
/opt/bootlocal.sh  already runs as root. No  sudo  required.

/opt/bootlocal.sh  is by default added to the backup on system shutdown / reboot.

http://tinycorelinux.net/corebook.pdf

Navigation

[0] Message Index

[#] Next page

Go to full version