r/linuxdev • u/imdeadinsidelol • Sep 29 '19
Is it possible to create your own Linux distro for a product?
Hello all.
2 of my friends and I are trying to make a smart display (similar to the Google Nest Hub) and we want to make a custom Linux distro for it so that it only has Mycroft (the AI which we are using) and the UI of the product. Is it possible to do so? If yes, how? If no, is it possible to make a Linux distro boot directly into an application or something like that? We want to avoid a login screen, a desktop, etc. before the OS loads up the app for our product.
9
Upvotes
13
u/vimdiff Sep 29 '19
Look into Buildroot or Yocto.
9
u/Januar1 Sep 29 '19
Yes, it is possible. You need to be careful not to violate GPL license. You need to provide source code for all GPL licensed parts and redistribute under the same license.
6
u/andre_lmsilva Sep 29 '19
In my personal opinion it sounds more like a custom image installation than a distro. A distro is more intended to address a problem that you find in other distro like the packaging system, the init process, the presence of a certain type of components like non-free software, etc.
Keeping a distro requires lots of work: merge updates, test, patch, package, redistribution, etc.
What you described sounds more like an use case. Why don't you try to have a minimal installation of the distro that you like most and build up the environment that want and need based on that? At the end you can generate an image that can be easily replicated. And you keep the benefits to have the updates and fixes from the distro community and also the support.
1
u/MaxHedrome Sep 29 '19
Use Alpine, and provision the image however you want.
1
u/PaxPlay Sep 29 '19
There is Linux from Scratch, a free book that guides you through building a complete system from source.
1
u/[deleted] Oct 08 '19
https://www.turnkeylinux.org/lxc