Linux from Scratch
HTML-код
- Опубликовано: 25 июн 2024
- I hate chat and it finally happened... we do LFS.
I combined multiple streams to try to isolate most of this LFS content.
00:00:00 - LFS
00:12:56 - Setting up Build Environment
00:22:07 - Making a GUI for Build Machine
00:28:19 - LFS Chapter 2
00:47:31 - Chapter 4 Prepare
01:15:30 - Chapter 5 The Compile Begins
01:34:06 - 2nd Day - LFS .
►► Digital Downloads ➜ christitus.com/downloads
►► Reddit ➜ / christitustech
►► Chris Titus Tech ➜ / @christitustech
►► Twitch ➜ / christitustech
►► RUclips Early Access ➜ / @titustechtalk - Кино
The final evolution of a linux user.
nah, my final evolution would be gentoo, lfs is good for killing times during situations like during covid, or if you take a loooong vacation from work.
@arnorobinwerkman I apparently have a very unpopular opinion, but you can customize most distros to an insane degree, or just use Arch & pick the components you want.
Gentoo neede compiled from source, but WHY? Why do we wish to sit down for hours compiling code that is already compiled in other distros?
Linux from Scratch Im not very familiar with how it works myself, but I know gentoo is just too much for anyone who works a lot or needs time for other tasks, or simply just values their time.
Its not a hate thing, its just a confusion. I understand doing these things for a learning experience, but beyond that I really don't see why anyone with a life would want to mess with all this, yet all the time I see people saying they daily gentoo or linux from scratch(usually gentoo)
The only actual reason I've ever seen, and been able to agree with, is "to flex on arch users", which, okay, fine, flex on arch users, thats great, it just means you have even less of a life than us 🤣🤣🤣 but then beyond that... lol why?
I just don't get it.
I work a lot. Id rather just use the already compiled arch distro & decide which components i want, and set it up quick, and move on.
@@SamuTheFrog i want to try gentoo just for fun, gentoo is a step up from arch, but i wil not use gentoo on production system
@@arnorobinwerkman Honestly, you could daily drive gentoo if you can leave your computer on to compile stuff when you're not using it. That's what I do.
@@arnorobinwerkman But then again, I have 6 cores and 12 threads at 4.2 GHZ. I would say that this is the bare minimum if you wanna comfortably daily drive gentoo.
LFS needs to be a speedrun category.
Needs to be normalized for the version of software, and compile time. Variables improving times that are out of the users' control but improve with better machines (i.e. you can buy your way to the top) are usually frowned upon and new rules are drafted in the wake of such a discovery to keep things fair. Games that have their physics tied to the FPS have caps to keep things a level playing field.
I'd watch those speedruns.
Compile times vary too much between machines, it wouldnt be fair.
I was an LFS contributor and maintainer many years ago. I love LFS, however I just don’t have time to build and maintain my own system anymore.
thanks senpai 😘
Glorious beard guy being glorious
and thats why I stoped useing gentoo just dont have the time to compile every single application every update for minimal preformance increases still happy to compile certain ones but the bulk of things the default binarays are fine
@@aquaphobicFish look at CachyOS, they have optimized binaries for your specific version of x86-64. Pretty damn cool.
"I should just write a script for this" is essentially how Gentoo started :P
Also, Gentoo seamlessly switches from binaries to compilation when you start tweaking the settings - other distros have a whole separate process if you want to change something and recompile a package
I did LFS/BLFS half dozen of times ten years ago - great experience, no VMs involved just my physical computer, I did it on a partition I dedicated for this in my then current Linux system and I then booted from there when ready - then build the BLFS part, it was very fun but It took a long time (I remember building QT for example took many hours) - most of this knowledge took me to the next level
I'm at 2 hours 17 minutes of the video, and I've been thinking: This is what Linux is like for regular people. (At least ones that don't use Linux/CLI in their job)
no the is what normal people think linux is like
@@matthewpepperl no that's what you think people just think it's like
@@Aeroxima No it's just what I think what you think what they think it's like
no, its not lol. linux wasn't this annoying to use. just install popos and be done. that said i just reinstalled windows cuz still most things dont work in wine. f
@@BrentMalice It's like you looked in the window of an ice cream shop and left, and tell people what the ice cream there tastes like
unwatchable without subway surfers gameplay
Lmao, good one 😂
Yeah you gotta make your eyes focus on subway surfers gameplay shoved in the corner
Link the song please ill try to watch it with the music
SKIBIDI BRO
Wow didn't expect anyone to do it. I've done this about 12 years ago, It took about 4 weeks to get a stable KDE Desktop
Almost there, 2 more weeks and you can get a browser working, I believe in you!
@@MayumiTheKimura no to get it working completely as I wanted it to work took me 4 weeks.
Nowadays I choose Debian distros, because the ease of use and stability. And run Asahi Linux(Fedora) on my M2 Max
@@ernestoditerribile I use Ubuntu with i3 wm and it works just fine! And i also run Arch Linux on my desktop machine. Go with what works for you.
KDE...
Interesting choice..
@@Just-Another_Channelxfce or dwm only
GOOD BYE ARCH
Thanks for posting, while you was rambling one began work on a popup card for a friend. Listening to people ramble about things is a great way to pick up the right kind of thinking. Cheers.
This was proobably the best Linux learning thing ive seen in my life, luckly watched live and it was very enjoyable to watch the process, keepup the good job
The perfect video for me to fall asleep to tonight!
So much work has gone into making Linux more approachable and easier to use pretty much across the board. Arch is no longer a pain to install, gentoo no longer takes 3 weeks to install Chrome, and even Debian occasionally gets updates mid-cycle. This is all good. But its also good that LFS exists if just so that the people making the tools that make our favorite distros fully understand how those tools do what they do.
You’re crazy! That has entertainment value.
When I was doing LFS, I remember regretting that there is no true community, like a forum, or a wiki with tips and solutions. If it existed, I think LFS could have been a viable OS for everyday use.But the way how it is now, you do it, and then you see there is nothing more to do with it... But if there were a community, some interesting things could have been done, like tricks to get the mouse work in the terminal, also mouse copy between terminals, use X only to launch one single app and then exit right afterwards... Anyways, there is so much experimentation possible with LFS, and yet people don't do it.
I think we should learn how to build drivers well before taking on a task this complicated. Once you become a good kernel developer then this becomes worth it.
This the perfect lullaby 😁
I considered trying this many times over the years, but in the end never felt up to putting in the time and effort. Glad you posted a video documenting the process and enjoyed watching you torture yourself. 🙂
i did that when i was a teenager... a friend introduced me to ubuntu... and i delve in...Linux From scratch really shows you about how linux builds linux... it takes a while of watching compiles and picking pieces out to learn about... love LFS... i use debian sid now... because i have gotten old and lazy... but i still play videos from command line in frame buffer terminal, because of what learned from LFS...
i was looking for serial to watch before going to sleep and i found this gem, i know only java but daym
Please, for God's sake, I want to see all the effort and creativity you're going to put into this upcoming LFS and BLFS. Just do it, and good luck!
now blfs we are waiting buddy
at some point I really need to revisit LFS. I never finished the first attempt. ran out of drive space in my VM and I was just not paying attention. I remember thinking: "it's just compiling from source, and the guide says i'll be fine with 50 gigs, so surely I won't fill 90!". and then at some point, I did. I don't remember how far I was, I only remember I had started BLFS, and had a bootable system. I vaguely recall getting hung up for quite a while in the harfbuzz section, and getting all my hard work tossed because I was building from the unstable guide and it had updated part way through resizing my VMs drive. meaning I had to start over.
It's not hard, it's just a lot of tedious copy, paste, and waiting. again... my fault, I should have given the VM more to work with. It did nothing for my hatred of circular dependencies though. Probably made it slightly worse. 🤣
Me like. Thanks for the awesome vids Chris!
Went down a similar rabbit hole around 20 years ago, DSL, Tiny and Micro Core Linux, LFS, Sorcerer, Source Mage, Lunar Linux and LFS. Would install one Distro and rebuild them it into a different one, install NDISWrapper and completely fail to get Wifi working. Spend hundreds on used networking equipment because $5 ethernet cards that works are better than $20-$50 Wifi cards that don't. Could build Linux up or install and rebuild it how ever I wanted too but back then I could never reach that level where I could get the Wifi working reliably or in most cases at all.
I just love his thumbnails lol
LFS is pretty useful for embedded systems
0:55 Um, no? Emerge just handles the compilation for you. Kind of like Paru for the AUR, but configurable with USE flags.
Gentoo always had a package manager. And (almost) everything is compiled. It is just the pm is doing the fetching, configuring, make-ing and installing.
This is the peak of Chris Titus Tech.
Sees linux from scratch 🎉🎉🎉🎉
Sees time length of video 💀💀💀💀
Yeah, not today.
No, no, a couple of hours is genuinely a short time for LFS.
I have used LFS for years with a little distcc compiler farm and really loved it. When AMD introduced the Athlon 64, I wanted to switch to 64 Bit, but there were too many problems. So I tried Gentoo and stuck with it ever since.
1:03 Im glad to see that I’m not the only one to have found themselves driven to drown my sorrows *hiccup* •hiccup* in liquor because of Linux
Now do the real Linux from scratch and write your own kernel, that's the true Linux nerd /s
just for fun
well i thought you were gonna create a new distro from scratch but this was fun too
I would really like to see your results. I have tried 2-3 times and have a problem with booting.
Excuse me, but I want to see you boot into it and everything (maybe install a package manager from scratch if you feel so inclined, but if not, even better).
I mean at a certain point it just becomes like any other linux distro right? Not using a package manager is really the only thing holding you back I think.
Dang, I said you might like gentoo and you one upped me.
Linux From Scratch is the friendliest Linux distro to get started with Linux 😅😅😂😂😂🤣🤣🤣
I'd rather wait until the Winter ❄️
I used to make LFS for my laptop in like 2020 if you have powerful enough system you can complete it as quick as 4 hours.
I already have the power to call myself an advanced Linux user, I use Arch, with a tilling window manager.
But I want MORE!
With this I will have the power to call myself a programmer.
I would have the power to say, "I use lfs btw"
I thought it was gonna be harder but its like gentoo with extra steps
You don't have to use the binary packages with Gentoo, they are available in a separate repo that needs to be enabled to be used. I for one, do not use the binary repo, so all of my systems are still built largely from source with a few binary package sprinkled in here and there. So just still has that "flair" as far as I am concerned.
Why? Isn't it just using more power and taking longer for the same thing? If the point is to know what you're building, are you actually checking there's nothing fishy in the source code every time? Building blinding seems no better than just running the binary given? If you just like doing it, ok sure, I just don't get it.
Remember doing this back in a 2007 on a old P3 machine laying around. Was fun and I learned a lot, but OMG it took ages compile everything.
@Titus Tech Talk can you do one with void linux?
woah, never expected this video would come out
My personal best of installing Arch is ca 9 minutes,
though that includes setting up the VM, fixing archinstall (since there was a bug at the time), and a slow internet connection.
(It took me ca 6 minutes ignoring the VM setup and fixing archinstall)
using arch install does not count
At this point, I would of went to FreeBSD like I did for a short time or I would attempt to make a toy OS based on Linux or better yet based off BSD.
I did lfs 6.0. Then I did a full blfs. There wasn't a 64 bit version then, and the build wasn't as pure as the current one. I used knoppix that I had installed instead of using the live CD. The box was Celeron based and some of the compiles took forever. Really a bummer when it kicked out after 30 min and had to go digging thru docs and forms to fix and continue.
I was into audio apps and with lfs I was able to get most any software to run on that system. I eventually gave up on it because I didn't have a package manager and it was too much to keep up with. Oh, and I built X11 from scratch too. Wasn't too bad. The worst iirc was the xml stuff. I didn't know much about xml and it seems a lot of devs were using it to manage the resources in their apps. Gonna watch this.
Oof, I've done this, as well as installing Gentoo back in the day, I'd say around 20 years ago or so. It took a damn near forever, just installing X11 was happy to cruch the source code for a long, long time. Didn't even try KDE, would have died of old age before that would have been done, assuming my hardware wouldn't have failed first.
YEAAH. Letz Compile EVERY Library as back in the old days! :D I lovin it :D Back to kernel 0.99 :D
RIP Titus's sanity
Am I missing something? Why build a linux install right after you literally just installed linux?
He's ascended
When Did He Install Gentoo???
I install Gnome and LFS.... Actually
What is crazy is that LFS is just the essential basic build. There's bound to be a thousand things a distro does to mitigate problems, optimize for performance, etc. Talk about 'Scratching The Surface'...
LFS is a wonderful learning tool as it gets you into the nitty gritty of low-level system setup. But there's so much more to the engineering work of a distribution. Just keeping up with upstream patches is a full time job. You've got to monitor CVE's and test every single package, etc. Including patching upstream packages whose dev's haven't patched yet. i.e. a zero-day and a patch was submitted but hasn't been committed yet. You still need to apply those patches yourself then remove them with upstream has them applied. You should avoid tarball releases and grab the source code. All those distro's impacted by the xz supply chain attack were infected because they trusted the xz tarball release (which is the only place the malware existed, not in the repo source). Then you need to fix all the little things that upstream refuses to do. For example, kmscon was forked and the fork is somewhat active while the original release is dead. Then if you want mouse support, screen rotation, etc. Then you need to patch the kmscon fork with additional patches that are still pending upstream merge. Rinse and repeat 1,000 times for all the crazy things that don't go smoothly in FOSS.
LFS is basically what every distros are based on, and the differences is the package manager primarily, and the support
Do they actually optimize anything at all...?
@@alexanded2383 that's actually up to you, and why people would consider building an LFS system. Or for extreme embedded applications.
I'd only take this seriously if you have to write the compiler and development tools from scratch before starting.
Also known as MEGO Linux... My Eyes Glaze Over Linux. I'm doing good not to to bork the Linux Mint install I use for specific stuff on a couple of older computers.
When I remember I ran an LFS system for a while as a teenager I'm bewildered.
I did research and wrote homework on one in college.
the closest thing I have done is Arch Linux and for me it was a miracle I loved Arch linux whne I pulled it off which was able to 8-9yrs ago , I have did my best to do it again but I failed every time so as for LFS, Doubt I would make it t all , mind you back then I was doing my best and only had a single PC now I have a few PC s and also a couple laptop I may be able to pull off Arch Linux but I doubt I would be able to do LFS because I spent almost the same amount of time fixing and possibly still missing a few typos and grammar issues replying here lol
libxinerama libxft fontconfig ttf-liberation xorg-xinit base-devel. These are dependencies for dwm on arch
I heckled someone into trying this recently and the algorithm rewards me with this video.
Everyone should do it...once. So they *know* lol
TLDR - it took over two days to finally compile glibs on a Pentium Pro 350, and that's after two restarts where "mystery death" occurred (come into work and after a while you realize that it's not accessing disk or just repeating the same odd lazy disk noise pattern which means it went brain dead instead of full dead, either of which is plenty dead).
Thanks for posting it up, I am sure I will enjoy the parts I don't skip over - it's not ego, some things are just too traumatizing to revisit lol but it did teach me appreciation for compiler theory classes...magical stuff that's still magical even after you get it. Like *schedulers* :-)
And we thought the manual arch install was hard😂
Arch Linux wasn't made to be difficult...not even to install. Arch's motto is "Keep it Simple Stupid".
@@simplemachine256you're being obtuse
@@KoopstaKlicca Arch Linux is simple, it's not Gentoo or Linux from Scratch. It is easy to install and easy to maintain, what's the problem? I have already installed it manually so many times that I do it without reading online guides for a while and I had much less problems with it than I had with Ubuntu which crashed for no reason in the past. It simply works. You don't need to brag that it took you hours to do something to make yourself feel special on the internet.
Hahaha the facial expression in the thumbnail... Yes LFS creates that rage... I've been there, many many moons ago I successfully did it. Never again. haha.
Lfs wooo
LFS, for people who want to test how much of a masochist they are...
I keep yelling at the screen … make && make DESTDIR=$LFS install … but even that’s redundant as any good Makefile would have install dependent on all (or the targets).
As a dumby dumb dumb I like to watch when people experience difficulty, because it makes me feel less alone in this cruel, cruel, world.
This is weird... a TTT video where the title of the video matches the video content?
"I refuse to do legacy, its 2024". Exactly. It's 2024 and UEFI is such a PITA to work with that I'd rather go back to normal BIOS and have stuff working reliably.
next do windows from unstaged
check Windows Editions Reconstruction Project topic in mdl :D
as it wasn't commented yet: the reason for the multiple passes of the base tools is to de-couple the toolchain from the host and enable it to compile itself independently
first pass: build the toolchain from source but it still depends on the host environment
second pass: rebuild the toolchain with itself to de-couple it from the host but to make it depend on itself so it works stand-alone
third pass: use the self-depending toolchain to build the final system
also: funny to see how the flow breaks because Chris thought "na, do it right in /mnt instead of /mnt/lsf" - classic fail of "do as I say - not as I do"
also also: "interesting" how Chris fails on so many basics while he also did his own archinstall
ITS WAS ME sultanw0
I’ve never felt victorious in a long time also you cannot run with your copiam
this is like avengers infinity war for linux users
So where is the next video
Based 🗿
LFS From Scratch
Let us not and say we did.
BLFS next
Wow😲
I can do this, wonder of i can use a live image on a flash drive to run a vm to buld this and then install it on BM.
Lol the LFS install flash drive😅
Upon successful boot to desktop environment (on bare metal), You will earn the right to grow the long beard.
VMware is 100% Free whit there new tier and you have t o sign up... it was just added recently.. for all 3 OS's it a free version.
VMware Workstation Free? VMware Workstation has multiple licensing options depending on your use case. Workstation Player is available free for personal, non-commercial use, but requires a license for commercial use.
Source VMware
try streaming from ur blfs system
How can I get your rice of windows?
Whay LFS ?? it is 90% same as SlackWare !!
You download TAR file the you upake and then you config for your need or system and then Compile and it becoms a big hadake when you get in to dependencis.
I started on Linux in 2004 on SlackWare and it was ok because i did not know about Debian or difren ons; i am on Debian now.
Gentoo’s emerge package manager is to compile, as packages are metadata to automate pull, patching and compile each.
a scripted version of LFS... you mean Buildroot?
Literally only came across buildroot this afternoon unable to fathom whether the chicken came before the egg
When you have no family and bill to pay...
I was already on my second marriage in 1998...
I think alpine install is faster than your arch install
now do it IN scratch.
LFS was my gateway drug to Gentoo
Gentoo easy in front of LFS.
I was just thinking of doing this
ASMR for the cultured
The one who made this did it so that nerds can waste their time the most.
Yeqh
gcc make libxinerama-dev libxft-dev fontconfig fonts-liberation libx11-dev xinit x11-session-utils build-essential libxcb-xinerama0-dev libxcb1-dev libx11-xcb-dev libx11-xcb-dev libxcb-res0-dev build-essential make
Just in case someone wanted debian dependencies for dwm
Please do Windows from scratch
hansi flick of tech comunity
I have built LFS a few times, but it was like 10 years ago or more (version 7.2) I did write bash scripts to build all of LFS and including Xorg with openbox. I also could write it to an USB drive to use it to boot and build/install LFS on a new computer.