Questions tagged [lfs]

(LFS) - Linux From Scratch is a Linux distribution that you build from source (scratch) piece by piece.

(LFS) - Linux From Scratch is a project that provides you with step-by-step instructions for building your own customized Linux system entirely from source.

The process is time consuming and complicated but, it offers you insight into exactly what is required to make a working system, how those components work together, and provides you with an extremely "lean" system devoid of extra software.

This is essentially a learning tool to extend your Linux knowledge and understanding of the Linux internals.

LFS: Home Page
LFS: Wikipedia entry

Once you build your LFS machine it won't do much other than be a bare-bones Linux system. It will not have a GUI, play movies, or download torrents. It will simply provide you with a base. Then should you wish to learn the next stage or progress you will move on to BLFS: Beyond Linux from Scratch, HLFS: Hardened Linux From Scratch, or another source based distro.

Other Source based distributions:
Gentoo
Calculate Linux
Lunar Linux
Sorcerer

190 questions
18
votes
1 answer

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

Trying to execute the source command using "lfs" user on ubuntu 14.04 and getting this: root@linux:~/lfs# su lfs - -c "source ~/.bash_profile" bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this…
sprocket12
  • 499
  • 1
  • 7
  • 16
12
votes
5 answers

Split string using IFS

I have written a sample script to split the string but it is not working as expected #!/bin/bash IN="One-XX-X-17.0.0" IFS='-' read -r -a ADDR <<< "$IN" for i in "${ADDR[@]}"; do echo "Element:$i" done #split 17.0.0 into NUM IFS='.' read -a array…
user112232
  • 343
  • 2
  • 3
  • 10
8
votes
2 answers

Do I only need one swap partition for multiple Linux distros? (and other questions)

I have Linux Mint 14 installed as my only OS. I have one extended partition containing /swap, / and /home, and I have some unallocated space on my drive. I'm guessing that Mint decided to put this all on an extended partition instead of three…
Korgan Rivera
  • 2,543
  • 6
  • 28
  • 39
8
votes
2 answers

Linux from Scratch to bootable disk image

I competed LFS 7.6. I want to know is it possible to make it into a bootable disk image that can boot in to different systems?
compiler
  • 361
  • 6
  • 12
7
votes
1 answer

Linux From Scratch 7.2: Error while making binutils-2.22 in chapter 6

I get the following error while executing make tooldir=/usr ../../binutils-2.22/libiberty/regex.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] ../../binutils-2.22/libiberty/regex.c:130:7: warning: conflicting types…
Ruben Roy
  • 199
  • 5
6
votes
4 answers

Linux From Scratch: libgmp.la, libmpfr.la, and libmpc.la not found during version-check

I'm trying to build a Linux From Scratch system on my host Linux Mint machine. However, when I run the version-check.sh file, it returns that my system is missing libgmp.la, libmpfr.la, and libmpc.la, even though I have libgmp10, lipmpc3, and…
StRiDeR
  • 63
  • 1
  • 1
  • 4
5
votes
1 answer

Why binutils and gcc need to install twice in LFS?

I followed LFS doc. I'm not quite understand why it needs 2 pass of compilation. My guess: We need target system's glibc, if we compile by host's gcc, it will not be able to separate with host anymore. So we need to build new system's binutils and…
sam
  • 977
  • 1
  • 9
  • 11
5
votes
1 answer

Grow a Nix-based system from scratch?

Is it possible to grow a Nix (the package manager, not nixos the distro) based linux system from scratch? More specifically: AFAIK Nix provides infrastructural packages like glibc, gcc, linux kernel, etc. Does that mean one won't need to build…
Guest0x0
  • 151
  • 2
5
votes
1 answer

How can I copy text from Links (webpage) to the console?

I have been building a Linux From Scratch system and I have installed the Links web browser on it, which I am running in graphical mode via DirectFB (I have not yet installed the X Window System). I am wondering if there is a way that I can copy…
Time4Tea
  • 2,288
  • 5
  • 23
  • 54
5
votes
3 answers

How to provide crt1.o and crti.o for LFS?

I have tried to create a Linux distribution with the Linux From Scratch (LFS) website. Everything went good until step 5.7. Glibc-2.19, but when I tried: $LFS_TGT-gcc dummy.c I…
zokit
  • 141
  • 1
  • 8
4
votes
3 answers

How can I create my own distro and include a custom kernel & packages?

I wanted to know how to add packages to the Linux kernel and then package it to a ISO or CD for friends. Thanks in advance and please don't point me to LFS - Linux From Scratch!
user2589636
  • 51
  • 1
  • 3
4
votes
1 answer

Build complete Distro with LFS

I want to build distro from source with LFS. Which include default third party tools & tools from different Linux distro. I have following questions: Can I build with LFS? Using LFS can I make Live CD which must run on any Intel/AMD(x64) or I can…
krupal
  • 181
  • 1
  • 5
4
votes
1 answer

Linux from Binaries

I thought Linux from Scratch was a pretty cool tutorial, but I felt having to wait for everything to compile was a bit nerve-wreaking. Is there a tutorial similar to LFS except pre-compiled binaries are used whenever possible? I would imagine that…
math4tots
  • 2,665
  • 8
  • 32
  • 42
4
votes
1 answer

How do I search for Linux distro build tools?

After having worked through Linux From Scratch, I get the eerie feeling that in practice, this is not how new distros are built. How do I search for tools that other distributions are built with? Is Debian really built from scratch? Googling "Linux…
math4tots
  • 2,665
  • 8
  • 32
  • 42
4
votes
0 answers

Adding custom option in kde settings

I recently made a Linux From Scratch and installed KDE4. Now I want to add an option named "about" in the KDE settings, which will display info about my LFS. My question is "Is it possible?" If yes then how?
Aniket Bhattacharyea
  • 1,015
  • 2
  • 12
  • 20
1
2 3
12 13