antiX I've used this before on an old laptop (also an atom and 2gb RAM) and it's very lightweight. It just doesn't have defaults that I prefer but if you tweak it enough, it should be fine.
Might be overkill (or underkill), but Tiny Core Linux is the most lightweight I know. While having an up to date kernel (6.1.2) and glibc (2.3.6).
What are the minimum requirements?
An absolute minimum of RAM is 46mb. TC won't boot with anything less, no matter how many terabytes of swap you have.
Microcore runs with 28mb of ram.
The minimum cpu is i486DX (486 with a math processor).
A recommended configuration:
Pentium 2 or better, 128mb of ram + some swap
As other have already alluded to, any distro with a lightweight desktop environment should work on that laptop. However, we don't know if it would work out for you; simply for the fact that you haven't given any other information.
Isn't LXDE basically discontinued? It got combined with RazorQT or something back in the day and became the LXQT we know today if I'm remembering right.
With the Atom processor, I had "best" result with Puppy linux whether from USB or actually installed to hard drive. I could run Lubuntu, MX, etc., Tiny core, for me, was a little too little and certainly not "fit and forget". When I bought a new (to me) laptop with more RAM and later chipset, I still stayed with Puppy. There's very little that can't be done with it.
If you just want to play around with it, I highly recommend some arch based distro (because you can find plenty of obscure TUI apps in the AUR) with a window manager (be it tiling like Qtile or stacking like Openbox).
If you want something preconfigured, I've recently found instantOS, which seems to work fine for that usecase.
I use this small laptop mostly for ebooks (using the excellent epy) and music, using one ot the TUI YouTube frontends.
Yeah it should be fine. But the OP needs to understand that even with a light OS setup, 2 gb of RAM really isn't much. First Firefox tab or two is going to kill that poor machine. That's why I added BunsenLabs as a lighter option. Still won't be great, but it'll be a bit better at least.
DietPi is always a good option. It's designed for raspberry pi, but you can absolutely run it on a laptop and install your desktop environment (XFCE etc)
If you enjoy using older, less powerful computers, it's important to find a Linux distribution that can accommodate the limited resources. While extremely stripped-down distributions like Tinycore might seem appealing, they often lack the functionality and ease of use that come with more comprehensive distributions.
Instead, I would recommend learning how to use a window manager and forgoing a desktop manager. This approach allows you to maintain a lightweight system without sacrificing too much functionality.
When it comes to choosing a distribution, some are more bloated than others, so it's crucial to find one that offers a degree of flexibility during the installation process. In this regard, Debian is a great choice.
You can install Debian as a server, which will provide a minimal base system. From there, you can install a window manager and only the essential packages you need. This way, you can keep your system lean and efficient, perfect for older, low-powered computers.
I've heard Debian and Alpine are good lightweight distros
I think most distros will run fine on most hardware though (please correct me if I'm wrong) it's the software you run on it (as in, going with a GNOME desktop environment is going to be much more demanding than xfce for example)