[18:41] <Ronny_> Hi, I am a system developer looking for Lubuntu source code.
[18:42] <Ronny_> I wonder if there is any way I could get the source code
[18:42] <Ronny_> The reason is because I need to statically embed certain drivers into the kernel image, and doing this would require recompiling the kernel.
 Lubuntu is an official Ubuntu flavour, and it's built on top of it.
[18:45] <Ronny_> But Lubuntu is lighter than Ubuntu, consuming less amount of memory, so shouldn't they be different?
 If you need the kernel source it's also based on Debian's. Lubuntu's distinctive desktop, apps and configuration are hosted on Git and Launchpad. So I'm afraid there's not a single place where you can get everything.
[18:46] <redwolf> yes, it's lighter because of the apps on top of the kernel and the graphical subsystem
[18:46] <redwolf> but the kernel is the same for all flavours except (and it depends on the release) for Ubuntu Studio, that uses a low latency one.
[18:46] <Ronny_> The reason I need a light Ubuntu is because I need to run Ubuntu on a resource-constrained IoT board.
[18:47] <redwolf> you could try something different
[18:47] <Ronny_> Lubuntu says, its minimum RAM is 128MB.
[18:47] <Ronny_> But if I run the official Ubuntu at runlevel=3 (almost minimum), its RAM usage is still 280MB
[18:47] <redwolf> use a net installer with minimal core apps, no desktop, or use Openbox as the only UI (it depends on XOrg though)
[18:49] <Ronny_> You mean, I try that on the generic Linux? (not on Ubuntu?)
[18:49] <redwolf> here is the information for minimal installations using the kernel (I insist it's the same for us all): https://help.ubuntu.com/community/Installation/MinimalCD
[18:51] <Ronny_> Thanks for the link, but I think I can't just download the .iso image and install, because I have to change the Kernel's .config file.
[18:52] <Ronny_> I need to statically embed a particular kernel module (i.e. TPM module) into the kernel image. For this I have to change the kernel's config file.
[18:52] <redwolf> there's some information about kernel source here: https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
[18:52] <Ronny_> By default, Ubuntu's iso images treat this TPM module to be dynamically loaded, which is a problem for me.
[18:53] <redwolf> but sorry, I'm not an expert in this kernel matters. if you need more help you can always head to askubuntu.com and see if there're more requests like yours or create your own
[18:54] <Ronny_> I can get Ubuntu kernel source code by typing " sudo apt-get source linux-image-$(uname -r) "
[18:55] <Ronny_> This downloads the Ubuntu source code from the repository.
[18:55] <redwolf> yes. that's another source
[18:55] <Ronny_> But I couldn't find any such public repository for Lubuntu.
[18:55] <Unit193> The repositories are the same, so that's the Lubuntu kernel.
[18:56] <redwolf> because Lubuntu itself is just a desktop. we simply "choose" and customise Ubuntu to try to make a lighter Ubuntu
[18:56] <redwolf> but all flavours can install the apps we use. we all flavours share everything on the repos
[18:57] <Ronny_> I see, then is Lubuntu the same as Ubuntu except that it installs a fewer number of apps, or installs lighter apps instead?
[18:58] <redwolf> exactly
[18:58] <Unit193> LXDE Ubuntu, basically.
[18:58] <Ronny_> And is there a way for me to access and download Lubuntu kernel, just like I can download Ubuntu kernel code by doing "apt-get source ..."?
[18:59] <redwolf> same as Kubuntu, Kylin, Xubuntu, UbuntuMate...
[18:59] <redwolf> Lubuntu kernel and Ubuntu kernel are the same
[18:59] <Ronny_> Right, only the apps are different
[18:59] <redwolf> yes
[19:00] <Ronny_> When I download Ubuntu by "apt-get source..." and build it, I get a complete Ubuntu Debian package.
[19:01] <redwolf> right
[19:01] <Ronny_> That means, all Ubuntu apps are already included in the downloaded folder from "apt-get source..." and they get automatically included when building the kernel image
[19:01] <Unit193> No.
[19:04] <Ronny_> When I do "sudo apt-get source linux-image-$(uname -r) ", the folder contains a subfolder called "ubuntu". I guess this folder is the Ubuntu apart the common Linux kernel source code.
[19:28] <Ronny_> If "the kernel is the same for all flavours", then if I install Lubuntu from .iso, download the kernel source code from Ubuntu repository by typing "sudo apt-get source linux-image-$(uname -r)", recompile the kernel and install it on my machine, would it work and boot up as Lubuntu with an updated kernel image?
 Yes, and you should have some docs on wiki.ubuntu.com, about building a custom kernel