Forum > Linux

[Solved] Differentiate between various Linux distros

<< < (5/5)

MarkMLl:

--- Quote from: Zvoni on May 30, 2022, 12:02:14 pm ---I remember using "Conky" on my Linux-Laptop, and there i'm able to pull out Distro, Kernel-Version, Desktop etc.
Would have to look at the source-code again, but i think Gus with "lsb_release" is close

--- End quote ---

Mozilla Firefox can still get that, but you have to look Help -> More Troubleshooting Information... which gets a vast amount of info about libraries being used etc.

The worrying thing is that much of that stuff is also available to Google et al., because of the amount of unnecessary JavaScript that gets pulled into almost every webpage.

MarkMLl

PascalDragon:

--- Quote from: Thaddy on May 30, 2022, 08:25:18 am ---
--- Quote from: winni on May 29, 2022, 09:39:13 pm ---
This is not correct.

There is a hardcore crew that is angry about systemd.

--- End quote ---
Fake news? For sure. There is a very valid reason everybody is using systemd: it works better than the old alternatives.

--- End quote ---

Better... Not really. I had quite a lot more boot problems since ArchLinux changed to systemd than I had in the time with its original SysV init system. 


--- Quote from: friend on May 30, 2022, 11:41:33 am ---I believe Kays was being ironic in his post (since /etc/os-release is part of systemd's specification and is possibly not present in better distributions that do not use that dung).

--- End quote ---

While it was systemd that introduced the /etc/os-release and enforces its presence this does not mean that a distribution that provides /etc/os-release must indeed use systemd. See also here.

friend:

--- Quote from: 440bx on May 30, 2022, 11:51:40 am ---I like precision and accuracy, therefore it is necessary to point out that calling a criminal, a criminal, is nothing other than an accurate description. Just like a square is called a square, an array is called an array and, unsurprisingly, a criminal is called a criminal.  What's not surprising is that criminals and, apparently their sympathizers, don't care for accurate descriptions.

Programmers should be accurate.

--- End quote ---

I agree with you about precision and accuracy friend, but, the real world is not zeroes and ones. Being accurate within a given limited set? Saying that dividing 1 by 2 is impossible because you've been only taught about integers. Having an opinion based on what the media says is stupidity. He might be right about some things.


--- Quote from: Zvoni on May 30, 2022, 12:02:14 pm ---I remember using "Conky" on my Linux-Laptop, and there i'm able to pull out Distro, Kernel-Version, Desktop etc.
Would have to look at the source-code again, but i think Gus with "lsb_release" is close

--- End quote ---

Found this comment in Conky's source code, in a file called linux.cc under the project's src directory:


--- Code: C  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/* I am assuming the distribution name is the first string in /proc/version    that:    - is preceded by a '('    - starts with a capital    - is followed by a space and a number    but i am not sure if this is always true... */
Not a certain way, but this seems to be better, for better distributions free from systemdung.

MarkMLl:

--- Quote from: friend on May 30, 2022, 01:33:00 pm ---Found this comment in Conky's source code, in a file called linux.cc under the project's src directory:


--- Code: C  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/* I am assuming the distribution name is the first string in /proc/version    that:    - is preceded by a '('    - starts with a capital    - is followed by a space and a number    but i am not sure if this is always true... */
Not a certain way, but this seems to be better, for better distributions free from systemdung.

--- End quote ---

I don't think you can rely on that. That will come from something like CONFIG_LOCALVERSION in the kernel configuration, and if the local user rebuilds the kernel the distro name is likely to be lost even though everything on disc- plus udev configuration etc.- is still very much distro-defined.

MarkMLl

Zvoni:

--- Quote from: friend on May 30, 2022, 01:33:00 pm ---
Found this comment in Conky's source code, in a file called linux.cc under the project's src directory:


--- Code: C  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/* I am assuming the distribution name is the first string in /proc/version    that:    - is preceded by a '('    - starts with a capital    - is followed by a space and a number    but i am not sure if this is always true... */
Not a certain way, but this seems to be better, for better distributions free from systemdung.

--- End quote ---
Sorry, with "Source-code" i meant the Conky-configfile, not Conky itself.
In the config-files i use some CLI-commands grep/awk-ing for specific information.
That's why i said, Gus is close with his "lsb_release"

Navigation

[0] Message Index

[*] Previous page

Go to full version