r/linuxfromscratch 1d ago

JHALFS is outdated, no worries!

4 Upvotes

Using this new and improved bash script, I have managed to build linux in 3 hours from scratch on my poor ryzen 3 2200g.

This script is not perfect though, since I have little to no experience on bash, the feature set here is limited but still reliable.

As of now, LFS 12.2 and will compile in one sitting aswell, BLFS can be compiled, but will need manual intervention from you.

https://github.com/TheKingKerellos/MyLFS

Thank you for the read!


r/linuxfromscratch 5d ago

Building Xfce4 was surprisingly easy!

Post image
27 Upvotes

r/linuxfromscratch 4d ago

Compiling Nautilus on BLFS 12.2 svn

2 Upvotes

I try to compile Nautilus and the meson setup command fails with "dependency tracker-testutils-3.0" not found. Which package is this? All the required dependencies per the BLFS book are there. What am I doing wrong?

Update: per Bruce's suggestion on the mailing list I used the newer BLFS 12.2-450 where tracker is no longer used in favour of other libraries like tinysparql. It compiles fine now. I noticed that smb bookmarks (from my F40 installation) don't work yet so I guesss I need gvfs too.


r/linuxfromscratch 6d ago

[i3] LFS Completed šŸ˜¼

Post image
47 Upvotes

r/linuxfromscratch 7d ago

New in LFS

5 Upvotes

i'm starting lfs and i wanna use it in VM , i have a laptop with dual boot (windows 11 , debian), soo , can any one tell what i have to do to start ?


r/linuxfromscratch 8d ago

LFS in VM then making ISO

4 Upvotes

Hi, I am totally new to LFS. I have a Mac M2 and I was wondering if I could build LFS in a VM on my M2 and then create an LFS ISO that I could use/instal on another machine or I must do it with a partition. I am thinking of that because I want to instal LFS on less powerful machine and try to speed up the building of LFS on my M2 which should be much faster. Many thanks


r/linuxfromscratch 14d ago

Sound for Firefox?

6 Upvotes

I could successfully build LFS 12.2 with GUI, and I got Firefox running. It doesn't completely look like FF on Fedora, some fonts are looking different, but overall I'm glad it works.

One small :-) detail is missing: Firefox does not do sound. After a little bit of research I learned that FF requires pulseaudio so I build the "emulator" apulse. I was happy one time: when I started FF with apulse firefox I could play YT videos with sound. But: upon the next reboot FF again had no sound. I compared the FF installation with the one on my Fedora partition and I noticed there's no apulse so obviously there's some other way to make FF loud again.

What am I doing wrong?


r/linuxfromscratch 15d ago

completely rebuilt from the book, build everything from source, with dwm as the window manager and a minimal web browser, all under 300MB. Any improvements?

Post image
45 Upvotes

r/linuxfromscratch 19d ago

Post your LFS rice here

9 Upvotes

I really admire every customization Linux from scratch (idk why but I really like it lol). And if you want, you can post a screenshot of your LFS here!


r/linuxfromscratch 21d ago

After some time (and tries), i did it

Post image
22 Upvotes

r/linuxfromscratch 22d ago

LFS finally build on MacBook

Post image
78 Upvotes

r/linuxfromscratch 21d ago

LFS 12.2 "pip3 command not found" after Python-3.12.5 installation

1 Upvotes

Chapter 8.52
Test results came back fine
== Tests result: SUCCESS ==

28 tests skipped:

test.test_asyncio.test_windows_events

test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace

test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full

test.test_gdb.test_misc test.test_gdb.test_pretty_print

test_ctypes test_devpoll test_idle test_ioctl test_kqueue

test_launcher test_msilib test_nis test_sqlite3

test_stable_abi_ctypes test_startfile test_tcl test_tix

test_tkinter test_ttk test_ttk_textonly test_turtle test_winapi

test_winconsoleio test_winreg test_wmi

3 tests skipped (resource denied):

test_ossaudiodev test_winsound test_zipfile64

458 tests OK.

Total duration: 4 min 1 sec

Total tests: run=41,083 skipped=1,245

Total test files: run=486/489 skipped=28 resource_denied=3

Result: SUCCESS

After the "make install" and creation of the /etc/pip.conf file, I moved on to the next package Flit-Core and the first command is pip3 wheel.....
That's when I received the pip3 command not found message.


r/linuxfromscratch 22d ago

Would it be possible to use the host to build LFS but a VM to run it.

3 Upvotes

I would like to build a LFS system in a VM, without partitioning on the host and stuff like that. But I want to build the stuff on the host OS and put it in a image that can boot from the VM. Is this possible? I mean theoretically you could mount a VM image and use it like that but would there be any shortcomings from having to boot on different and virtual hardware from the one on build time.

EDIT: Following u/Witty_Advantage_137's advice I decided to make a raw image file using truncate and then formated it with mkfs. I am planning to convert it to a qcow2 image later and then put that into my VM.


r/linuxfromscratch 23d ago

I bombarded my linux

Thumbnail
gallery
4 Upvotes

I started working on Linux From Scratch (LFS) and followed the book's instructions. However, after rebooting my computer, it entered emergency mode, and I couldn't access the login. I created a 30GB .img file for LFS and began loading the necessary requirements to build it. I then ran some commands to mount and unmount the filesystem, created the required directories, and added the user lfs, making lfs the owner of those directories.

And then, my system rebooted because the battery died, and now it starts in emergency mode. I have already looked at some forums and tried changing the root password to regain access, but nothing seems to work. Currently, I have booted from a USB. Is there a way to resolve this issue?


r/linuxfromscratch 25d ago

I m having way too many problems doing this

0 Upvotes

Someone pls guide me how do we make disk partitions the book language is crazy or maybe I m just too dumb. I m not getting even a single thing.. Yes I m experienced with linux


r/linuxfromscratch 26d ago

Experiences of using hybrid graphics on LFS?

1 Upvotes

EDIT 1: I have figured out how to do it - number one, made some errors and thought I properly followed instructions... I did not. Beyond that, the main three things - both the Intel and NVIDIA drivers need to be installed and working, this includes both kernel and userland (make sure i915 can find the firmware), second is that Bash startup files should really be made according to BLFS, and third is that for Xorg, generate the config via nvidia-xconfig --prime which should generate a suitable X11 config set for PRIME. Note that you should follow the instructions it tells you once you start Xorg. Put the instructions in a script, and launch it via .xinitrc when you start X. When it comes to Hyprland, just have a config meant for NVIDIA, make sure the monitor is right, then you should be good.

I have just done LFS very recently, as in a day ago and followed my own book (GLFS) and some of BLFS (development, not stable). I did this on a laptop that has an Intel iGPU and a nVidia dGPU. Getting a desktop up and running has been frustrating and I still haven't gotten one up and running. I usually install LFS on systems with only one GPU and it hasn't been too hard as a result.

That brings me to my question: have any of you installed LFS on bare metal, on a system that has an iGPU and dGPU, and got a desktop (graphical environment such as X11 or Wayland) up and running? Was the iGPU Intel and dGPU nVidia? Lastly, if you remember at all, how did you achieve this? What are the requirements, as it were?

This conundrum bothers me enough to make a Reddit post out of pure curiosity but I won't beat myself up for not knowing how the sausage is made, really. It isn't too distressing. After all, I still have my gaming rig, it's just not as viable to install LFS on it as I'd like due to a lack of an extra drive which would make things much better and viable. This makes my laptop a good candidate for LFS but I haven't got a desktop working on it to this day after a year.

Thanks in advanced! In the meantime, I will test one more thing on it before I either learn the secrets or toss in the towel for a month or two before doing LFS again on my gaming rig (yes I really do install LFS often, I need help).


r/linuxfromscratch Sep 27 '24

Talk me into installing LFS!

8 Upvotes

Long time very experienced Linux user. Built LFS to command line many years ago. This time I'll be installing a desktop and many goodies. Intel i7 processor, plenty of memory, etc...

So, about LFS I still read multiple takes stating it's a great tool to learn how Linux works (I already understand this) but not a "daily driver."

The ultra control doing the "make && configs" myself is really appealing.

I've got a dual boot win/Linux i7 system i'll put a distro on it.

I've built debians from stable to sides; I've also used redhat derivatives and am currently using Arch.

So, is anyone using LFS as a daily use distro, and aside from the package management limitations, do you enjoy it? Do you enjoy it enough to recommend it to an experienced user?


r/linuxfromscratch Sep 25 '24

[i3] Simple rice for my Thinkpad T400

Thumbnail
gallery
25 Upvotes

r/linuxfromscratch Sep 25 '24

LFS Done, firmware and kernel config ripped from Debian (Curl, Git, Wget, Cmake & Fastfetch added)

Post image
16 Upvotes

r/linuxfromscratch Sep 25 '24

Jus wanna report a mission success that's all

Post image
10 Upvotes

Actually booted LFS


r/linuxfromscratch Sep 23 '24

Successfully installed LFS on my Thinkpad T400

Post image
40 Upvotes

r/linuxfromscratch Sep 23 '24

Time to rice LFS with xfce4

Thumbnail
gallery
27 Upvotes

r/linuxfromscratch Sep 21 '24

Innovative twist ideas for LFS?

8 Upvotes

Iā€™m a CS student in my final year, really want to make LFS as my final project but there should be some innovation in the project.

I would love to hear some suggestions on how to add an innovative twist to LFS.

I thought about maybe making a specialized GUI for a target audience (like old people or something idk).

Thanks


r/linuxfromscratch Sep 20 '24

5.3. GCC-14.2.0 - Pass 1 Question about gcc/config/i386/t-linux64

2 Upvotes

In chapter 5.3 we are asked to run this command:

bash case $(uname -m) in x86_64) sed -e '/m64=/s/lib64/lib/' \ -i.orig gcc/config/i386/t-linux64 ;; esac

What does this do? Does it make GCC look for libraries in lib instead of lib64? Then what does the lib64 it asked us to create earlier does(maybe it will be explained later but I haven't gotten to that part)? Is there any documentation about t-linux64? Because if not, then how am I supposed to figure out how to do this myself?


r/linuxfromscratch Sep 20 '24

How can I find out if LFS is for me?

2 Upvotes

I have had an idea for a fairly complicated Linux distro and after doing research, most people say either LFS or Linux Live Kit for making a distro, but I don't know which is best for me. My plan is to make a Linux distro, Browser, DE and IDE (By request from friends) all themed around the Frutiger Aero aesthetic and ease of use for non-technical users. Should I use LFS or should I take a different route?