Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Mr Green on July 19, 2011, 06:37:06 AM

Title: Tiny core server
Post by: Mr Green on July 19, 2011, 06:37:06 AM
Are there any guides on making a tiny core server? want to set up a basic file server at the moment

MrG
Title: Re: Tiny core server
Post by: curaga on July 19, 2011, 06:51:46 AM
1. Install MC
2. Install a server
3. Configure the server, have it start on boot

;)

If you need specific advice, you'll need more specific questions.
Title: Re: Tiny core server
Post by: Mr Green on July 19, 2011, 07:01:47 AM
Thinking along the lines of openssh to start, I can figure out how to get it running ....

How do I go about installing mc? can do tci install no problem

Thanks

MrG
Title: Re: Tiny core server
Post by: Juanito on July 19, 2011, 07:12:35 AM
You can obviously run your server from either microcore or tinycore. If you used the gui installer, just choose microcore.gz instead of tinycore.gz
Title: Re: Tiny core server
Post by: Mr Green on July 19, 2011, 07:20:38 AM
Have installed tiny core without too many problems but wanted just a basic server [no gui] I will run tci and look for mc

Thanks

Title: Re: Tiny core server
Post by: Mr Green on July 19, 2011, 07:52:09 AM
Found an old 256mb usb stick in the bottom of a box of spare parts, ran tiny core (tci)  [under Virtualbox] installed MicroCore good to go.

It is about time I learnt how to run Linux from command line  ;)

MrG
Title: Re: Tiny core server
Post by: curaga on July 19, 2011, 08:12:12 AM
Starting a server is usually mentioned in the info file, you'd add it to bootlocal.sh. For openssh:

/usr/local/etc/init.d/openssh start
Title: Re: Tiny core server
Post by: Mr Green on July 19, 2011, 09:45:31 AM
Managed to get openssh running [well localhost anyway!] put config files in .filelist in /opt but they are not kept over reboot. Is there a way to backup settings keys etc ?
Title: Re: Tiny core server
Post by: Rich on July 19, 2011, 09:55:29 AM
Hi Mr Green
If you are looking for something that Windows based machines can easily access then Samba is a
good choice. Using the forum's search function enter  samba  for the subject and  Rich  for user.
Included in the posts returned you will find my  config  file with a brief explanation of what each line
does and how to mount a Samba share on a client. You will also find information about backing up
your settings.
Among the other possibilities there is NFS which is primarily used for sharing between Linux machines
and FTP.
Title: Re: Tiny core server
Post by: Mr Green on July 19, 2011, 10:00:02 AM
No windows machines here I am afraid, would like to keep system small and light eventually hook it up to a hard drive for more storage.

Thanks for the heads up, enjoying messing around in a terminal at last

MrG
Title: Re: Tiny core server
Post by: beerstein on July 20, 2011, 09:33:39 AM
HI:
Does somebody know how to configure cups as a server for
linux machines? I have cups running and printing via lpt0
but I can not see the printer from another linux machine.

I assume that, if I want to see the printer from a windows machine,
cups server is not enough - I think I need samba in this case.

Thank you for helping out here
Title: Re: Tiny core server
Post by: Juanito on July 20, 2011, 09:45:00 AM
Does somebody know how to configure cups as a server for
linux machines? I have cups running and printing via lpt0
but I can not see the printer from another linux machine.
It's a question of setting up cups to share printers and making them browseable - in this case when you start cups on the remote linux machine, it will display the shared printer automatically - I'm not at a linux machine at the moment, but google should turn up something on this.

Quote
I assume that, if I want to see the printer from a windows machine,
cups server is not enough - I think I need samba in this case.
I believe this is correct - I recently posted a method to be allow windows machines to use a local printer driver rather than the cups one here:

http://forum.tinycorelinux.net/index.php?topic=9633.0

Edit: see also:

http://forum.tinycorelinux.net/index.php?topic=818.0
Title: Re: Tiny core server
Post by: SamK on July 20, 2011, 12:26:29 PM
I assume that, if I want to see the printer from a windows machine,
cups server is not enough - I think I need samba in this case.

In a multi-user LAN consisting of Linux and Windows workstations, Samba is the usual means of providing shared directories.  It controls who has access to the shared resource.  In such circumstances, Samba is also often used to provide controlled access to printing resources.  If uncontrolled access is acceptable, Samba is not required to share printing resources.  This can be achieved for both Linux and Windows workstations via CUPS alone.

A summary of the what is required to set up uncontrolled access might look like:
At this point, providing each LAN workstation is set-up appropriately, both Linux and Windows have uncontrolled access to the printer.
   
Title: Re: Tiny core server
Post by: ldak on July 29, 2011, 05:30:55 PM
Hello

Just did this  for a friend using a thin client with external usb drive.  Used Putty in Windows for ssh access using public/private keys (couldn't get acpid to work at first) and share level samba.  Managed to get the power button to shutdown also.  All using info mostly available here in the forums.  Will write a guide if time available soon as a give back.  How far have you got so far?
Title: Re: Tiny core server
Post by: ldak on July 30, 2011, 07:35:17 PM
In the meantime, here is a nice guide...

http://www.parkytowers.me.uk/thin/Igel2110/IgelLinux.shtml
Title: Re: Tiny core server
Post by: Rich on July 30, 2011, 09:04:02 PM
Hi ldak
Very nice indeed. One minor comment. The EXT3 file system is a journaling file system. Journaling
file systems are not recommended for use on flash devices since they will wear those devices out
faster. I believe you can disable the journaling if you want, though I don't recall how off the top of
my head.
Title: Re: Tiny core server
Post by: curaga on July 31, 2011, 03:46:43 AM
Only on ext4, ext3 doesn't support a non-journaling mode.
Title: Re: Tiny core server
Post by: Rich on July 31, 2011, 02:57:19 PM
Hi curaga
You are correct. Had I taken a few minutes to research this I could have given a better answer, so
here it is:

The EXT3 file system is basically an EXT2 file system with journaling added. While you can not
disable the journaling, you can convert it to an EXT2 file system by booting using the boot codes
base norestore  so that the drive is not mounted. Then execute the following commands:

e2fsck -fp /dev/sda1                          Make sure the file system is clean before doing anything else.
tune2fs -O ^has_journal /dev/sda1     Convert the partition to EXT2.
e2fsck -fp /dev/sda1

This assumes that   sda1   is the partition you wish to convert. Let me know if I've missed anything.

[EDIT]: While this is off topic, I felt it might be pertinent for anyone reading ldak's website.
Title: Re: Tiny core server
Post by: ldak on August 03, 2011, 07:34:17 PM
Hello Rich

I am a somewhat jaded linux newbie, only seeming knowledgeable to my fellow Windows admins...8)

Was aware of the flash / journalling issue, so used ext2 on the flash and ext4 on the external usb drive used for file store.

Disabled backup on shutdown to stop fiddling.

Thanks for taking the time to advise.
Title: Re: Tiny core server
Post by: Rich on August 04, 2011, 12:04:22 AM
Hi ldak
I only made that comment to make others aware because the of following from your website
Quote
Using cfdisk create hda1 - a 200Mb bootable partition and hda2 - the rest (844Mb with my 1GB card).

Next format the two partitions.
  mkfs.ext3 /dev/hda1
  mkfs.ext3 /dev/hda2
 
which shows an EXT3 file system being put onto a flashcard. As I said, a nice website, and well written.

Title: Re: Tiny core server
Post by: ldak on August 04, 2011, 04:54:44 PM
Hello Rich

Right to point it out.

Can't take the credit for the link though....it's not mine, just a guide to be dipped into as found useful.  Credit goes to thin@parkytowers.me.uk
Title: Re: Tiny core server
Post by: Rich on August 04, 2011, 05:01:33 PM
Hi ldak
My mistake, I thought it was your site.