Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: qnx on June 09, 2010, 11:49:42 AM
-
Hi
I`m new on this forum :-)
I setup on my hard drive TinyCore v2 and everythings works good except autostartup application during boot TC :-(
How can I start Lighttpd during boot systems ?
How can i autostart some others shell scripts during the booting system ?
Where i should keep my directory for lighttpd ? because after reboot it`s disappear
thx for answers
-
How can I start Lighttpd during boot systems ?
How can i autostart some others shell scripts during the booting system ?
Add your custom startup scripts to /opt/bootlocal.sh, then consult the wiki (http://wiki.tinycorelinux.com/tiki-index.php) on how to back it up.
Where i should keep my directory for lighttpd ?
On some form of persistent storage. Are you running Tiny Core solely from CD?
-
I do it like you wrote
i add command to /opt/bootlocal.sh
lighttpd -f /home/tc/lighttpd
I installed tinycore on hardrive /dev/hda1
where i should put directory with index.html ?
-
the '-f'-flag tells lighttpd where your 'lighttpd.conf'-file is. In the lighttpd.conf you specify where your www-root should be.
I con show you mine, if You'd like.
\\Batnas
-
@batanas
I now that everythings ok lighttpd works but i dont know were put my www-root-directory ?? Now my www-root-directory are /home/www but when i reboot system /home/www disappears :-( Where i should put www-root-directory to avoid that ??
-
Your problem is, that /home/www is not persistent.
You can do 2 things:
- Add 'home/www' to '/opt/.filetool.lst' - makes TC do backup of the folder
- Move you www-folder to some persistent place e.g. harddisk (hda1) <- Probably the best solution as www-folders tend to grow ;)
\\Batnas
-
www-root needs to be on persistent storage, which in your case is /mnt/hda1, so /mnt/hda1/www should be sufficient so long as it is mounted during startup. Whether or not that occurs automatically depends on how you installed Tiny Core to /dev/hda1.