PC Pals Forum

Technical Help & Discussion => Apple, Linux & Open Source Software: Help, News & Discussion => Topic started by: D-Dan on November 02, 2011, 13:50

Title: Even better "Built my own"
Post by: D-Dan on November 02, 2011, 13:50
I'm taking some time off trying to solve the problems with quantum physics, and decided to try something even more difficult, sooo...

Yesterday, after 3 days of typing and work, at 20:32, I booted for the first time my very own Linux OS built entirely from sources.

Now, granted, it didn't do much at that point. Just bash functions and, more importantly, a fully functioning development system to enable building the rest of the system.

This morning, I wiped it and I'm going to see if I can get the total time down to half a day. BUT, I'm feeling pretty damn pleased with myself :)
Title: Re: Even better "Built my own"
Post by: GillE on November 02, 2011, 14:09
Well done!  I wouldn't know where to start.
Title: Re: Even better "Built my own"
Post by: Simon on November 02, 2011, 14:10
Well done Steve!  :thumb:   
Title: Re: Even better "Built my own"
Post by: Rik on November 02, 2011, 16:42
Now if you could just pop round, Steve... ;)
Title: Re: Even better "Built my own"
Post by: daveeb on November 02, 2011, 18:51
I don't understand what you did but it's very impressive  :blush:
Title: Re: Even better "Built my own"
Post by: sam on November 02, 2011, 21:50
Good man! I've been having "fun" with shared libraries all day and some code that just doesn't want to compile..

I've only managed to build a linux system by hand once, gentoo, and I ain't going through that again!
Title: Re: Even better "Built my own"
Post by: D-Dan on November 03, 2011, 12:58
Well, I did something wrong on the repeat exercise, and whilst I have a basic tools system and file structure ready, I can't chroot into it, so I cocked up permissions somewhere and I have no idea where. Not to worry, I'll try again. Desperately want to succsessfully repeat this so that I can move to a Real system build rather than a VM.

Just have to decide which drive I'm going to mangle to make room for a development system and the new system. I'm eyeing my Windows 7 partition with a gleam in my eye - 160Gb of useless crap that I could reclaim :)

--

For those unsure what the big deal is, first acknowledge that your operating system (Windows, MacOS, Linux etc) doesn't just magically appear, but has to be built from source code packages, patched and tweaked, compiled, and configured, then imagine that your operating system consists of hundreds, or even thousands of programs, libraries etc. which all have to be prepared in this way, and then image that they all have to be put together to actually work. That's what I've done :)
Title: Re: Even better "Built my own"
Post by: Simon on November 03, 2011, 13:22
It's a very worthy achievement, Steve.  Maybe we could try it one day, if you can make a 'live' version?
Title: Re: Even better "Built my own"
Post by: D-Dan on November 03, 2011, 15:00
There's already one - http://www.linuxfromscratch.org/livecd/ - but don't expect a nice, shiny GUI with all the utilities etc. that you want in an OS. As I understand it (I haven't tried it), this will simply boot the developer system that you need in order to actually build the OS. In fact, maybe I'll test it - it will save me an extra partition on my HD building a development environment in order to build the system, though I imagine that you would have to complete the build process at least as far as chrooting to the new system in a single sitting, or be prepared to recreate necessary softlinks and, possibly, users for development each time you return. Of course, once you have your base system built (not the live one) then you can do remaining building directly in your new OS.

I'll report back after a test and let you know :)
Title: Re: Even better "Built my own"
Post by: Simon on November 03, 2011, 16:08
What have I said!  :horror:  ;D
Title: Re: Even better "Built my own"
Post by: sam on November 05, 2011, 08:12
just get a ubuntu disc Simon! :-)

I spent yesterday compiling some radio astronomy software - it reminded me of building Gentoo from source in that it took 10x longer than installing Ubuntu to compile, blooming code! I blame the person who was adding code to it.. oh wait that was me!
Title: Re: Even better "Built my own"
Post by: Simon on November 05, 2011, 09:56
;D
Title: Re: Even better "Built my own"
Post by: D-Dan on November 06, 2011, 13:57
Well,

I've started the "real" install now, got the base system and kernal built and booting, sorted out my wireless and wpa (which caused no end of problems, but working now) and a couple of basic utilities. Need to get lynx (text based web browser) sorted out, though this is causing me some problems since one of the pre-requisites refuses to build (4 separate choices for this, and none of them will build). I'll probably get back to it later. Once I get that done, I'll build python (which in tests built very easily, so not expecting problems there) and then I'll make a start on a desktop. When I have that working, I'll take a screen grab (or possibly, at that stage, a photo) and post :)
Title: Re: Even better "Built my own"
Post by: Simon on November 06, 2011, 15:03
Good luck!
Title: Re: Even better "Built my own"
Post by: sam on November 06, 2011, 20:04
Well,

I've started the "real" install now, got the base system and kernal built and booting, sorted out my wireless and wpa (which caused no end of problems, but working now) and a couple of basic utilities. Need to get lynx (text based web browser) sorted out, though this is causing me some problems since one of the pre-requisites refuses to build (4 separate choices for this, and none of them will build). I'll probably get back to it later. Once I get that done, I'll build python (which in tests built very easily, so not expecting problems there) and then I'll make a start on a desktop. When I have that working, I'll take a screen grab (or possibly, at that stage, a photo) and post :)

build scipy :-)
Title: Re: Even better "Built my own"
Post by: D-Dan on November 18, 2011, 01:22
I know it's been a few days. but I'm posting this from firefox running on xfce sitting on top of LFS :)

I'm rather pleased with myself  :thumb:
Title: Re: Even better "Built my own"
Post by: Simon on November 18, 2011, 11:12
Excellent!  :welldone:
Title: Re: Even better "Built my own"
Post by: Simon on December 02, 2011, 11:46
Happy Birthday, Steve!  Have a great day!   :rockban: :evilban: :banana:
Title: Re: Even better "Built my own"
Post by: Rik on December 02, 2011, 11:51
Double celebrations, you might say. ;D
Title: Re: Even better "Built my own"
Post by: Simon on December 02, 2011, 11:58
;D
Title: Re: Even better "Built my own"
Post by: D-Dan on December 02, 2011, 17:16
:) Thank you very much. Gonna have a beer or two later. Not looking forward to my head tomorrow  :crazy:
Title: Re: Even better "Built my own"
Post by: Rik on December 02, 2011, 17:35
Take preventative action, drink a pint or so of orange juice before going to bed, Steve. :)
Title: Re: Even better "Built my own"
Post by: D-Dan on December 02, 2011, 19:34
May not be possible. Depends on whose bed I go to ;)
Title: Re: Even better "Built my own"
Post by: Simon on December 02, 2011, 19:39
Now you've created the 'before', we will want the 'after' in the morning!  :leer:
Title: Re: Even better "Built my own"
Post by: D-Dan on December 03, 2011, 14:06
As it happens, for reasons I won't go into I can home earlier than planned. However, it did get me thinking, I don't think I've even woken up with the same one I went to bed with after a heavy night out. Seems I always manage to start the night with Cinderella and wake up with her ugly sister.  :dunno:
Title: Re: Even better "Built my own"
Post by: Simon on December 03, 2011, 14:30
Beer glasses!  :laugh: