Closed Sim4n6 closed 8 years ago
for instance we can mention debian based system or redhat based system ... something like this.
You mean instead of saying Ubuntu putting something like Debian Based System? Even Debian or redhat derivatives inherit a lot from original distributions I like to consider them as specific distributions.
Ubuntu has many specific things on it's own.
I mean : mentionning both, for instance Ubuntu as a disto, and Debian as based system or upstream distro or even say something like debian family . So we need to clean up the OSSTR variable.
This discussion can be an occasion to put it together and decide the right names for :
OSSTR="${OS} ${DIST} ${REV}(${PSUEDONAME} ${KERNEL} ${MACH})"
.... ?
OS Version contain OSSTR variable :
uname -s
uname -r
uname -r
twice uname -m
Just before OSSTR there is OS Type and after that the Architecture and Kernel version are displayed. so there is redondance here.
I suggest first to [ ] rename the os variable to ostype.
and then [ ] OSSTR contain only DistroName+Version+DistroUpstreamName+OSTYPE
That will give something like Ubuntu 16.10 LTS Debian based system GNU/Linux.
In the Kernel part [ ] we make kernel name, release and kernel version using uname
.
What do you think Atarallo ? seems a good start :+1:
Can you assign this task to me too ? thx
kernel="$(uname --kernel-name) $(uname --kernel-release) $(uname --kernel-version)"
Ex : Linux 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016
ostype=$(uname -o)
Ex: GNU/LINUX
until now the PullRequest #16 fix this ...
Let focus on OSSTR now
OSSTR="$DITRO $DISTROVERSION $DISTROUPSTREAM based system $OSTYPE"
for example : Ubuntu 16.10 LTS Debian based system Gnu/Linux
so I need your opinion first before made the last change :+1: @atarallo
Hi !!! Thanks for your interest and entusiasm. I was quite busy yesterday, I'll be reading all your comments and suggestions today.
Take into account that this scripts it's also useful outside linux, In a near future I hope to test it on AIX (that i have on hand) maybe on Solaris (with help of a collegue). All that peace of code (that detects kernel an distro) should be improved. It seemed to me that it was contributed from previous work, may need refactoring and testing.
The Upstream distro is not a very relevant info, at least for me. As said before, I will be reading all your comments again prior giving further input.
Take your time ⌚
Hi I've been reading back and forth this on the "Operating system Type" LABEL/text.
There, it will be nice to have something like "GNU/Linux (Debian Based)" or "GNU/Linux (RedHat Based)". In the OSSTR string it distracts, at least for me.
Take into account that in the DEVELOPMENT branch I've cleaned up code relevant to this.
Please let me know what do you think.
why not, "GNU/Linux (Debian Based)" for instance, seems okey.
So you prefer that I pull request in the Development branch. I close the PR #16 and redirect it to the Dev branch.
Hi folks,
I just want to mention that based on this introductory article Debian is Linux distribution. So knowing that Ubuntu is also a linux distro based on Debian. I think the script ought to give each distro its merit.
That's why I 've been searching on the web for a reference that summarize all available distros and I found something interesting : Linux Distribution Timeline available on Linux Timeline on github
Thereby, we can make this script great (again). I am opening a discussion for improvement :+1: