Tiny Core Linux

General TC => General TC Talk => Topic started by: infraRed on January 06, 2011, 05:28:03 PM

Title: Few newb questions
Post by: infraRed on January 06, 2011, 05:28:03 PM
Hey, just ran into TinyCore the other day, ran the LiveCD, read up on it. Some cool concepts. A few questions: Can/does anyone run a public web server/mail server on tinycore? Also, what does tinycore do with peristent, yet changing stuff, like log files, mail spools, and such like?

I come from a Gentoo background myself, if you're curious.
Title: Re: Few newb questions
Post by: curaga on January 07, 2011, 12:51:26 AM
Quote
Also, what does tinycore do with peristent, yet changing stuff, like log files, mail spools, and such like?

That's your decision ;)

By default they would be in ram and get wiped on a reboot. If you add them to your backup, they would be in ram during runtime, but saved on shutdown and restored on boot. You can also set up a partition there, so that they are persistent like in other distros. Or... many possibilities.
Title: Re: Few newb questions
Post by: beerstein on January 07, 2011, 02:44:46 AM
Hi:
I am working on TC3.41 to make it my "home sandbox to" test and "play" with my webpage offline on my computer at home.
So far I installed lighttpd (which automatically installs mysql with it) and PHP 5. Now I need this
beest to be loaded with my website. After that I would like to set up a dtaabase with my products and do
some form programming in PHP, CGI -Perl.
It is still a long way to go but I am interested to be in contact with some one who can and will help me.
Title: Re: Few newb questions
Post by: gerald_clark on January 07, 2011, 07:36:06 AM
Yikes!
mysql
openldap
perl

Not so 'light' is it?
Title: Re: Few newb questions
Post by: beerstein on January 08, 2011, 05:31:41 AM
Yikes!
mysql
openldap
perl

Not so 'light' is it?
Hi thank you for this response - but sorry I am too dumb to understand
Please explain - Thank you so much :)
Title: Re: Few newb questions
Post by: gerald_clark on January 08, 2011, 08:38:40 AM
lighttpd is supposed to be light http server.
When the deps pull in mysql, perl, and openldap, it isn't light anymore.

Title: Re: Few newb questions
Post by: beerstein on January 10, 2011, 02:32:08 AM
thank you for that - I appreachiate it - soorry I was confused - but now I know
==========================================================

I would like to have a offline enviroment to test my dynamic html /php pages at home
on a laptop with TC 3.41. After my forms and other stuff are working I will transfer to
my provider.

But lighttpd is not enogh to test my stuff, I need a database (same as my provider) and PHP.

Do you know a better solution?

BTW: I found out, when I install a huge amount of extensions, TC does not work properly any more.
May be because I have only 256 MB of RAM. Am I right that in this case the estensions are not fitting
in my RAM any more?

Thank you so much for your help

Title: Re: Few newb questions
Post by: tinypoodle on January 10, 2011, 04:04:20 AM
You can check with

Code: [Select]
df |grep tmpfs
Having some swap available might not be a bad idea.
Title: Re: Few newb questions
Post by: danielibarnes on January 10, 2011, 12:17:31 PM
lighttpd is supposed to be light http server.
When the deps pull in mysql, perl, and openldap, it isn't light anymore.

Which is why I didn't put them in the .dep file. They were added later. If you read lighttpd.info (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/lighttpd.tcz.info) you'll see what I mean. Leaving them out leads to confusion (http://forum.tinycorelinux.net/index.php?topic=6137.msg32843) when users try to use the mod_auth, mod_mysql_vhost, or mod_webdav plugins, and including them confuses users that just want the web server without the extra baggage.

Based on this and other discussions, I will create a new "lighttpd-full" meta-extension to address the issue, but for now you can simply remove mysql, libldap, libxml2, sqlite3, or any other extra dependencies from the .dep file on your system if you don't need them.
Title: Re: Few newb questions
Post by: danielibarnes on May 20, 2011, 07:44:22 AM
Which is why I didn't put them in the .dep file. They were added later. If you read lighttpd.info (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/lighttpd.tcz.info) you'll see what I mean. Leaving them out leads to confusion (http://forum.tinycorelinux.net/index.php?topic=6137.msg32843) when users try to use the mod_auth, mod_mysql_vhost, or mod_webdav plugins, and including them confuses users that just want the web server without the extra baggage.

Based on this and other discussions, I will create a new "lighttpd-full" meta-extension to address the issue, but for now you can simply remove mysql, libldap, libxml2, sqlite3, or any other extra dependencies from the .dep file on your system if you don't need them.

I finally determined the best solution was to split the "heavy" modules out as separate extensions: lighttpd-auth, lighttpd-mysql, and lighttpd-webdav. I also created a new extension, lighttpd-nodeps, with no dependencies for simple tasks.

Anyone who uses those functions and updates the lighttpd extension will find them missing. A quick look at the repository will indicate the change I made so the new extensions can be downloaded as needed.