LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2011, 03:33 AM   #1
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Rep: Reputation: 0
Building a server from Red Hat RPMs


Whilst not exactly software to be used by a server, I'm interested in building a leaner linux server from Red Hat/CentOS RPMs from scratch.

Obviously this is a daunting task, but I'd like to take it on for 3 reasons:
  1. I can
  2. Its a PoC for something I'm thinking of doing
  3. It will be open sourced

Try as I might, I couldn't find out what the process for building CentOS (being my preferred example) from RH's rpms.

Can anyone point me in the right direction?

Last edited by Mustafa Ismail Mustafa; 12-15-2011 at 01:58 AM. Reason: Obviously, I can't count or spell...
 
Old 12-13-2011, 07:29 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Why aren't you building it from CentOS rpms? .. the CentOS project rebuild all their rpm's from RH source - minus the RH proprietary parts
 
Old 12-14-2011, 12:07 AM   #3
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
I did mention CentOS RPMs

See?
Quote:
I'm interested in building a leaner linux server from Red Hat/CentOS RPMs from scratch.
(emphasis mine)

And you are 100% right, CentOS is the better way to go, none of the worries related to branding.

In either case, I'm looking for a tutorial or a how to so I can actually get started with that. I found nothing on the CentOS site.

Any ideas?

TIA
 
Old 12-14-2011, 03:47 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
If the result is a leaner CentOS, then you probably want to use a kickstart script. It depends on how different you want to make it.
 
Old 12-14-2011, 03:49 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you want a lean OS you might want to start with "Arch Linux "
that is VERY lean .
 
Old 12-15-2011, 12:18 AM   #6
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
Well here, let me describe what I'm looking for and we can take it from there.

I'm trying to build, as a proof of concept for now, a VERY lean linux server capable OS (a la CentOS/Debian) where the result would be used as the platform to build a storage solution, along the lines of NetApp.

I looked at OrangeJeos and that would have been an excellent starting point to then build that storage oriented OS I'm thinking of.

Please bear in mind that what I'm thinking of is not along the lines of OpenFiler or FreeNAS; its a headless server that could be used for enterprise scale storage solutions where HDDs plugged are automatically recognized and then RAID-ed accordingly (assuming some RAID schema is in place).

Actually, I'm basing it all on NetApp.

My two options are OpenBSD and CentOS, but somehow, and I have no concrete evidence of this, I feel that with the exception of ZFS, Linux generally has better handling of file systems. Again, I can easily be wrong in this regard.

If for nothing, I'd like to have a go at this and see if I can build this for my sake, for the sake of "I can". Call it a learning experience and if its stable and successful enough, it'll be open sourced.

Having said all that, what do you guys think my next step should be?

I was thinking of as follows:
  1. Create a very LEAN CentOS
  2. Work at the scripts that control the disks, including automatic "recognition" if a new one is plugged in
  3. work on the CLI, possibly customizing a shell
  4. release as alpha

Suggestions and constructive criticism are certainly welcome
 
Old 12-15-2011, 02:37 AM   #7
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
Well, I've found these as a starting point:

Now its a matter of spinning my own and experimenting I guess.
 
Old 12-15-2011, 06:18 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You may as well start with OrangeJeos as a base and customise it ... no point reinventing the wheel
 
Old 12-15-2011, 10:00 AM   #9
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by kbp View Post
no point reinventing the wheel
If everyone thought this way then there wouldn't be so many Linux distros!
 
Old 12-15-2011, 11:38 AM   #10
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
Well, I'm not after re-inventing the wheel.

In the end, Vanilla CentOS or OrangeJeos, it doesn't matter so long as the end result is achieved I suppose. But that still doesn't point me in the right direction. Are the links that I posted earlier appear to be a valid starting point?
 
Old 12-15-2011, 11:44 AM   #11
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
"How to install CentOS" is very well documented, I suggest you start here:

http://www.centos.org/docs/
http://wiki.centos.org/

Personally I would start with a network install or "netinstall" of the basic system, then build up from there.

Good luck!
 
1 members found this post helpful.
Old 12-15-2011, 11:48 AM   #12
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
Install?

I guess I'm not clear enough in describing what I'm looking for, my apologies.

I'm after re-spinning a new distro based on a seriously cut down version of CentOS.
 
Old 12-15-2011, 12:02 PM   #13
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
A netinstall will give you a "seriously cut down version of CentOS" in less than 15 minutes, and then you can get started on:

Quote:
2. Work at the scripts that control the disks, including automatic "recognition" if a new one is plugged in
because this step #2 seems to be the "heart" of your project. You will probably reach a wider audience by sharing your scripts with existing Red Hat/CentOS/Scientific admins, as the installed user base is well-entrenched.
 
1 members found this post helpful.
Old 12-15-2011, 12:06 PM   #14
Mustafa Ismail Mustafa
Member
 
Registered: Nov 2009
Location: Amman, Jordan
Distribution: Ubuntu 10.04, CentOS 5.5, FreeBSD 7.2, Debian Squeeze, PC-BSD 8
Posts: 44

Original Poster
Rep: Reputation: 0
Insightful.

Added to your reputation

I'll give that way a whirl. I assume that the netinstall is essentially the kernel, file system and networking modules?

I'll have to tackle the packaging of it later, but that's another adventure for another time.

Thanks, I'll give it a whirl right now.
 
Old 12-15-2011, 12:10 PM   #15
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
I think this is what you are looking for: http://www.linuxfromscratch.org/

Personally though, for your POC, I would start with a vanilla CentOS install (base install) and then specifically remove additional unneeded packages to make it even slimer. For example, I think even a base install has Bluetooth and cups which baffles me for a server - but i digress.

You could also recompile your own slim kernel, and then focus on building the scripts to utilize whatever you will be using for HDD management (mdraid???). i think that will be the meat-n-potatoes of your work. Once your POC is working, working towards sliming it down even further would be fairly easy to do.

(well snowpine said it before me .... so I agree :-) )

Last edited by zQUEz; 12-15-2011 at 12:11 PM.
 
1 members found this post helpful.
  


Reply

Tags
howto, rpms, serverdistro



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.0.52 RPMs for Red Hat 9 flipcode Linux - Newbie 4 01-10-2005 10:07 PM
about kde 3.2 rpms in red hat 9 (again) wicho_the_one Red Hat 1 03-09-2004 05:03 AM
installing rpms on red hat 7.3 juanb Linux - General 3 03-25-2003 03:53 PM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration