WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: General questions - Installing as server  (Read 7740 times)

Offline batnas

  • Full Member
  • ***
  • Posts: 122
General questions - Installing as server
« on: March 03, 2010, 07:05:34 AM »
Hi everyone

I'm planning on installing TCL on a small embedded machina and using it as a webserver(fun ;D), but i have some questions.

1) Is it possible to uninstall the X-server, as i don't need it?
2)I have read a little about webservers on TCL,but wich is best; Apache or lighttpd. I need to install PHP an Mysql. Preferrably a light one.
3) I will also need to run FTP and SSH.

I have general good linux skills, but with TCL and the packagemanager for TCL, I now nothing!

Any help appreciated

\\Batnas

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Re: General questions - Installing as server
« Reply #1 on: March 03, 2010, 08:09:33 AM »
1) You can use Microcore instead of Tinycore. This doens't include xorg (or whatever is used, i can't remember)

2)lighthttpd is probably the one you want to go for as it has a small memory footprint. It also has FastCGI which interfaces well with PHP

3) setting up FTP and SSH will be trivial once you've gone through doing a Webserver.

I'm not sure if all the packages you require are in the repository, so you may well have to start compiling!

good luck

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: General questions - Installing as server
« Reply #2 on: March 03, 2010, 10:28:49 AM »
We have two ssh servers available, dropbear and openssh. The FTP servers are bftpd, vsftpd, and the old BSD one in inetutils-servers. I recommend against using the last ftp server mentioned.
The only barriers that can stop you are the ones you create yourself.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: General questions - Installing as server
« Reply #3 on: March 03, 2010, 12:53:44 PM »
For light/embedded systems lighttpd is the way to go. I have posted an example config file for lighttpd with PHP here: http://forum.tinycorelinux.net/index.php?topic=4892.0.

For FTP I would suggest either of the bftpd or vsftpd which Curaga has stated above. One advantage of vsftpd over bftpd is there is an SSL version available which will give you a ftps server.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: General questions - Installing as server
« Reply #4 on: March 03, 2010, 02:18:39 PM »
Okay. Thanks for all the answers.
But i still have 3 more questions:

4) What is the difference between Dropbear and Openssh?? And wich one would best fit my system needs??

5)Microcore is exactly like tinycore -but without the X-server. Right??

6) Does MocroCore supprot full USB. Can easily mount an external USB-HDD??
-And is it like 'normal' linux-cores??


I think i'll try with lighttpd and the configuration 'robc' linked to, and run vsftpd for the sftp

Again thanks a lot everyone ;)

\\Batnas
« Last Edit: March 03, 2010, 02:36:04 PM by batnas »

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: General questions - Installing as server
« Reply #5 on: March 03, 2010, 02:56:52 PM »
6 months ago, I'd have said lighttpd too. Recently however I've been experimenting with Cherokee for hosting Django projects, and I'd have to say it's the easiest to configure web server I've ever seen (Assuming you use cherokee-admin - the config file is incomprehensible). I'm not sure if it's footprint i as small as lighttpd's, but it is a lot smaller than apache, and I find cherokee serves pages just as fast lighty, and causes me less headaches.

4) Someone else can explain the differences, but I would suggest openssh, just for compatibility reasons - particularly if you want to use SSH certificates for auth. OpenSSH also has a built in SFTP server. (Pretty sure Dropbear's footprint is smaller, but I don't think OpenSSH's footprint is really anything to worry about anyway)

I'll let others answer the rest of your questions.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: General questions - Installing as server
« Reply #6 on: March 03, 2010, 03:12:41 PM »
Yes, Microcore does not have X. Otherwise it's the same, including usb support.

Dropbear is smaller, but with less features. OpenSSH is the industry standard.

sftp and ftps are different things though, which do you mean?
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: General questions - Installing as server
« Reply #7 on: March 03, 2010, 04:09:21 PM »
I think i'll be running openssh(with sftp).
The webserver will be either lighttpd or Cherokee(Needs researching).

My last question:

7) How about Mysql? how to do with lighttpd og Cherokee?? i will be very happy with a link to a giude ;D

#curuga
I meant SFTP, and thats what i will get with openSSH according to althasus


Thanks a lot

\\Batnas

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: General questions - Installing as server
« Reply #8 on: March 03, 2010, 04:18:18 PM »

7) How about Mysql?


It is in the repo.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: General questions - Installing as server
« Reply #9 on: March 03, 2010, 04:26:45 PM »
me sounding very stupid:
How do i do that? I now how to di on eg. ubuntu, but with TCL im starting from scratch ???

-Oh, and how do i check how much space each package takes??

\\Batnas

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Re: General questions - Installing as server
« Reply #10 on: October 02, 2010, 10:44:29 AM »
To get MySQL at terminal just do:   tce-load -w -i mysql.tcz    it loads /starts automatically unlike for eg Apache which you start manually.

mysql -u root  at terminal gets you in as there is no root password set.

(in fact just mysql gets you in)
« Last Edit: October 03, 2010, 06:29:38 AM by Terminator3000 »

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Re: General questions - Installing as server
« Reply #11 on: October 03, 2010, 06:26:18 AM »
Theres a Microcore install thread here http://forum.tinycorelinux.net/index.php?topic=7352.0 with a few different install methods in it should help.

I've done quite a few servers and usually install in this order ,Server,MySQL,PHP in order to ensure MySQL/PHP properly work.

Ive just started a Busybox one which so far is straightforward using the tcz packages available.Ive got as far as Busybox and MySQL which work fine (Busybox using a little bash script to start it or just a line in terminal) I'm just trying to get info on linking up the php.tcz pack with it so posted a question here  http://forum.tinycorelinux.net/index.php?topic=7405.0 as I cant find a conf file !

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: General questions - Installing as server
« Reply #12 on: October 03, 2010, 06:50:41 AM »
Busybox using a little bash script to start it

What do you mean by that?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Michael Wells

  • Newbie
  • *
  • Posts: 17
Re: General questions - Installing as server
« Reply #13 on: February 14, 2011, 12:03:39 AM »
Busybox using a little bash script to start it

What do you mean by that?

I will guess that he might be referring to the busybox-httpd.tcz web server since the busybox ftpd server is not built into the tc version of busybox.  Just a guess, though, since busybox has modules for a number of other daemons as well.