Build a Linux distro.

New to Debian (Or Linux in general)? Ask your questions here!

Build a Linux distro.

Postby hack3rcon » 2020-04-19 21:58

Hello,
I want to create a Linux distro myself and don't like to use automation tools like "Linux Live Kit" and "SUSE Studio". I want to add and connect components myself and create the distro. Is LFS a right way?

Thank you.
hack3rcon
 
Posts: 386
Joined: 2015-02-16 09:54

Re: Build a Linux distro.

Postby stevepusser » 2020-04-20 03:05

Hmm--the only thing I've ever used is MX Linux's snapshot tool, which makes much of the work almost too easy. I used it to make this, for example: https://archive.org/details/mx19x64updated
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.7, QMPlay2 20.07.04, Pale Moon 28.10.0, KeepassXC 2.6.0, Krita 4.3.0, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11815
Joined: 2009-10-06 05:53

Re: Build a Linux distro.

Postby Head_on_a_Stick » 2020-04-20 12:11

hack3rcon wrote:I want to create a Linux distro

Please explain further, that's far too vague.

@stevepusser: the OP says they don't want to use automation tools. And anyway live-build would create an installable image without relying on MX's installer.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Build a Linux distro.

Postby stevepusser » 2020-04-21 03:29

Head_on_a_Stick wrote:
hack3rcon wrote:I want to create a Linux distro

Please explain further, that's far too vague.

@stevepusser: the OP says they don't want to use automation tools. And anyway live-build would create an installable image without relying on MX's installer.


That's true.

Does LFS provide an installer?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.7, QMPlay2 20.07.04, Pale Moon 28.10.0, KeepassXC 2.6.0, Krita 4.3.0, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11815
Joined: 2009-10-06 05:53

Re: Build a Linux distro.

Postby Head_on_a_Stick » 2020-04-21 09:24

No it does not. LFS doesn't even provide a package manager so it isn't really suitable for general use, it's more of a learning tool.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair


Re: Build a Linux distro.

Postby hack3rcon » 2020-06-08 19:24

Thank you, but I need a manual to teach me how add the packages together, which packages are needed and so.
hack3rcon
 
Posts: 386
Joined: 2015-02-16 09:54

Re: Build a Linux distro.

Postby andre@home » 2020-06-08 19:36

Try your auto-didactic skills and report us your progress?
Fits very well with your goals.
andre@home
 
Posts: 386
Joined: 2011-10-02 08:00

Re: Build a Linux distro.

Postby hack3rcon » 2020-06-18 16:40

Thank you for all ideas.
The distro that made by LFS not have any installation wizard?
hack3rcon
 
Posts: 386
Joined: 2015-02-16 09:54

Re: Build a Linux distro.

Postby Head_on_a_Stick » 2020-06-19 09:03

Linux From Scratch isn't a distribution, it's an instructional text. The only "installation wizard" available is copy&paste :mrgreen:
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Build a Linux distro.

Postby oswaldkelso » 2020-06-19 10:07

Probably the next step up from LFS
https://k1ss.org/
Forks encouraged https://k1ss.org/wiki/community/forks
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1250
Joined: 2005-07-26 23:20
Location: UK

Re: Build a Linux distro.

Postby RU55EL » 2020-06-19 16:53

hack3rcon wrote:Hello,
I want to create a Linux distro myself and don't like to use automation tools like "Linux Live Kit" and "SUSE Studio". I want to add and connect components myself and create the distro. Is LFS a right way?

Thank you.


Why do you want to create a Linux distro? To learn about Linux, or for some other reason?
User avatar
RU55EL
 
Posts: 449
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Build a Linux distro.

Postby eriefisher » 2020-06-19 20:34

Instead of reinventing the wheel you could use Arch. You start with a base live system and pacstrap the system to get it started then install what you like.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 114
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Build a Linux distro.

Postby Bulkley » 2020-06-19 21:28

eriefisher wrote:Instead of reinventing the wheel you could use Arch. You start with a base live system and pacstrap the system to get it started then install what you like.


Yes. Many distros offer net installs which are pretty basic. Take debian-10.3.0-amd64-netinst.iso, for example. What you get is bare minimum . . . kernel, a few CLI tools, a console and a cursor; there are no GUIs. It is up to the owner to build what he or she wants.

The learning curve is steep so my recommendation is to set up a virtual machine and practice.
Bulkley
 
Posts: 5950
Joined: 2006-02-11 18:35

Re: Build a Linux distro.

Postby cuckooflew » 2020-06-20 00:15

hack3rcon wrote:Hello,
I want to create a Linux distro myself and don't like to use automation tools like "Linux Live Kit" and "SUSE Studio". I want to add and connect components myself and create the distro. Is LFS a right way?

Thank you.

The right way ?, If I tell you to just use the Debian base,and build on it,that is the "right way". But then
eriefisher tells you,use Arch, that is the right way,
eriefisher wrote:Instead of reinventing the wheel you could use Arch. You start with a base live system and pacstrap the system to get it started then install what you like.

Joe would tell you that using Opensuse as a base is the right/best way.
So what is the right/best way ? I am not going to tell you. I do know, but you need to first learn enough about Linux in general before you can decide what is the best way for you. Once you know and understand enough about Linux, you will know the best way to build your distro, if that is what you want to do. I don't see any reason to creat a new distro, there are so many. I do see a reason one would want to take a Linux base, Debian, Arch, or what ever, and build on it to build a reliable customized system.
I think that reading the LFS material is a good place to start,
hack3rcon wrote:Thank you, but I need a manual to teach me how add the packages together, which packages are needed and so.

If you need that, perhaps the BEST and the right way to start learning how to build your own Linux distro is to learn how to use search engines, your are NEVER going to get any where if you all ways have to ask someone to decide what is best for you, and all ways have to ask others to do your research. I sincerely hope that you can comprehend what I am saying, if not , maybe some one else can clarify.
For example, if you use the Debian base, some simple search foo, and you find plenty of manuals, tutorials on packaging, etc. Which packages depends totally on what the new distro is intended for..
Why limit your self to Linux ? Unix, is the original and only Unix, the BSD's are Unix like, Linux is Unix like to some extent, ...You might want to consider starting with a BSD or even Minix3, that is the best way, in my opinion. Below is some home work assignments, read them. Do not respond to my post until you have read them all.
https://commons.wikimedia.org/wiki/File:Unix_history-simple.svg
Licensing notes:

Linux was inspired by MINIX and Unix, but Linux and GNU code was written from scratch.
BSD was originally based on code copyrighted by AT&T, but over the period 1989–1994, was rewritten to purge all AT&T code.
The Single UNIX Specification controls access to the Unix trademark, owned by The Open Group.
Novell purchased the Unix copyright from AT&T, which it still owns as of August 2010 (see SCO v. Novell).
The Santa Cruz Operation purchased the right to develop and sublicense SCO OpenServer and UnixWare from Novell, which it sold to what is now (2010) the SCO Group (see SCO v. Novell).
IBM AIX is a licensed Unix derivative, as is HP-UX

=============================================
https://en.wikipedia.org/wiki/Linux_Standard_Base
=========================================
Last but should be first:
https://digital-domain.net/lug/unix-linux-history.html
The next version was 0.10, Linus was getting heady with success....

Version 0.11 was released in early December 1991.

As Linus wrote in his post to Usenet.

It's still not as comprehensive as 386-Minix, but better in some respects.

No SCSI support
No init/login, you go straight into bash as root.

There was a very basic VM, but it wasn't ready for proper use yet. You could boot up in 2MB, but needed 4MB to run things like GCC.

It was though, able to run standalone without the need for Minix. It had:

- demand loading
- code/data sharing between unrelated processes
- much better floppy drivers (they actually mostly worked)
- bug-corrections
- support for Hercules/MDA/CGA/EGA/VGA
- the console also beeps (WoW! Wonder-kernel :-)
- mkfs/fsck/fdisk
- US/German/French/Finnish keyboards
- settable line-speeds for com1/2

This was a big break through :
It was though, able to run standalone without the need for Minix.

====================================================
Taking a online course on logic and using logic to build your own Unix like distro should be considered.
I like this:
By the end, when you write your high-level programs, whether they're in C, Python, Ruby, Node.js, or brainfuck, you should be able to reason about how the code you write turns into low-level operations on the hardware. You will be able to cut through levels of abstraction to gain a deeper understanding of how computer systems work. After finishing this course, you will no longer take for granted the mesmerizing array of languages and tools that "just work." The path will be open for you to become a practitioner of the dark arts of systems programming who shuns Clarke's third law and who, when in need of a Linux machine, writes it in C.

Another hit says:
Tiny Core is a great weekend project: build the OS you want from 16MB until you----snip---
Yes it is a great week end project,... Learn how to use logic, search engines, and the CLI,
==================

Re: Build a Linux distro.
Postby hack3rcon » 2020-06-08 19:24
Thank you, but I need a manual to teach me how add the packages together, which packages are needed and so.

From:https://en.wikipedia.org/wiki/Linux_distributionA typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment.

Most of the included software is free and open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Usually, Linux distributions optionally include some proprietary software that may not be available in source code form, such as binary blobs required for some device drivers.[1]

A Linux distribution may also be described as a particular assortment of application and utility software (various GNU tools and libraries, for example), packaged together with the Linux kernel in such a way that its capabilities meet the needs of many users.[2] The software is usually adapted to the distribution and then packaged into software packages by the distribution's maintainers. The software packages are available online in so-called repositories, which are storage locations usually distributed around the world.[3][4] Beside glue components, such as the distribution installers (for example, Debian-Installer and Anaconda) or the package management systems, there are only very few packages that are originally written from the ground up by the maintainers of a Linux distribution.

The manual is at you fingertips, and it is called a search engine. But you must learn how to use it, there is a learning curve. Mostly practice , enough practice and you will able to find anything you want.
Please Read What we expect you have already Done
Google knows a lot,
God, our Father knows all, maybe ask Him ,
…one flew east, one flew west,
One flew over the cuckoo’s nest.

I am not the right colour, so my life does not matter ?
to God it does :)
cuckooflew
 
Posts: 434
Joined: 2018-05-10 19:34
Location: Some where out west

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable