TGViewer
0•Bytes•1 0•Bytes•1 @technical_private_cat · 3.52K subscribers
Post #219 354
Hi Alice .🎀🔑
I want to tell you about building all sorts of LFS Linux .

For starters LFS It's linux built roughly from bits and pieces of their source code .
Your own hands as you want.
Naturally this gives you the same security advantages. If you build packages as you want, control everything. And I think it is convenient to customize everything initially.
Yes , it is definitely better to write your own linux , but I dont have that much time , I think many of you do too .🙃

Let's have some of those details and stuff about building lfs.
In fact I recently built lfs and wanted to do a detailed breakdown with screenshots . I thought it would be better to add it to my article about linux which I still write.
So here I will just give you some useful tips 🧩

https://www.linuxfromscratch.org/ all the documentation and books on this site .
Here is the link to the books https://www.linuxfromscratch.org/lfs/downloads/stable/.
Here are more videos on youtube of how a guy builds lfs according to the documentation
https://youtube.com/playlist?list=PLTd7y0vdxhK614YGAImDjaD3M3lkJRZsT

I want to advise you some cool packs 🙃 and tell you how to assemble them.
I give you an example of llvm package. (Everybody loves compilers, right?)

You need to start by downloading the following 
The cmake modules for llvm
https://anduin.linuxfromscratch.org/BLFS/llvm/llvm-cmake-15.0.1.src.tar.xz
clang
https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.1/clang-15.0.1.src.tar.xz
compiler rt
https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.1/compiler-rt-15.0.1.src.tar.xz
You might also need a python package, so you have to install it first. 
Here is a link to the manual https://www.linuxfromscratch.org/blfs/view/svn/general/python3.html
The installation itself (note: you must have the environment preconfigured like in your book) :
Unpack llvm in the folder
tar xf ../llvm-cmake-15.0.1.src.tar.xz &&
mv cmake-15.0.1.src ../cmake
unpack clang
tar -xf ../clang-15.0.1.src.tar.xz -C tools &&
mv tools/clang-15.0.1.src tools/clang
unpack compiler rt
tar -xf ../compiler-rt-15.0.1.src.tar.xz -C projects &&
mv projects/compiler-rt-15.0.1.src projects/compiler-rt

Create and change these folders
cd cmake
mkdir -v build &&
cd build &&
Configure the compiler
CC=gcc CXX=g++ \
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ENABLE_FFI=ON \
-DCMAKE_BUILD_TYPE=Release
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DLLVM_INCLUDE_BENCHMARKS=OFF \
-DCLANG_DEFAULT_PIE_ON_LINUX=ON \
-Wno-dev -G Ninja ... &&

Installing
ninja
ninja install

Generally, building your Linux system and especially the selection of packages is a very interesting task and depends very much on what you want.
I can't give you any advice about packages because it depends on what you need.
I also suggest you read the security advisory https://www.linuxfromscratch.org/blfs/advisories/consolidated.html .

In the future, when an article will be published (I hope this won't be too long before it is written), it will be about the security oriented lfs.
Well, good luck on your lfs journey.

Thanks for reading❤️
And remember, if the Cheshire cat says that everything is not as it seems at the hatter's tea party, it may be true.🐱🎩
#linux #lfs
More from @technical_private_cat
  1. Aug 23, 2026Еще в июле 2026 вышла статья (https://arxiv.org/pdf/2607.07062) по деанонимизации XMR узло…
  2. Aug 20, 2026Hello everyone, my Alices and Cheshire cats! 🐈‍⬛🎀 It's finally done - the article some o…
  3. Aug 20, 2026Всем привет, мои Алисы и Чеширские котики! 🐈‍⬛🎀 Свершилось - статья, которую некоторые и…
  4. Jun 29, 2026Post #583
  5. Jun 16, 2026fckpython v0.6.0 - nuitka constants — полный дамп констант из Nuitka блоба: строки, числа,…
  6. Jun 16, 2026photo post
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →