Re: Check the linux type?



On Sat, 31 Mar 2007 15:24:59 +0200, abelenda wrote:


Here's one example.

uname -a
Linux localhost 2.6.19-gentoo-r5 #2 Wed Mar 28 20:03:32 MDT 2007 i686 VIA Nehemiah CentaurHauls GNU/Linux


With your kernel info we can assume you are running gentoo linux but

ONLY because that's how I happened to name the kernel. I could just as
well have named it 2.6.19-yourguessisasgoodasmine.

with mine :

uname -a
Linux Bookie 2.6.20.3-mactel-by-Aelia #8 SMP Thu Mar 29 21:24:49 CEST
2007 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux

We can't see anything spécial (the mactel thing is a patch for macbook
support and -by-Aelia is a custom made append to the kernel version) so
there is no info about the distribution.

So if you compile your kernel you can put anything you want in the
kernel version it is just a line in the .config file or the Makefile.

Exactly.

.



Relevant Pages

  • Re: [PATCH] ppc64: Fix PER_LINUX32 behaviour
    ... actually compile up ppc64 kernels from time to time... ... If uname wants to make it clear that uname has ... > own without asking the kernel what the kernel is. ... system calls were ignoring the personality and just returning what was ...
    (Linux-Kernel)
  • Re: change kernel name
    ... It turns out that you can easily change the kernel name, version, ... # ./tester SYSNAME foo ... Can't open device file, UNAME ...
    (Linux-Kernel)
  • Re: [PATCH] Use uname not sysctl to get the kernel revision
    ... Um, if glibc is using sys_sysctl, then that's a pretty good reason. ... Once we remove it from the kernel, then people will be forced to ... we can use uname now. ... printk a deprecation warning no more than n ...
    (Linux-Kernel)
  • Re: How to determine if running on a 32 or 64 bits kernel ?
    ... If you want the capability of the kernel, uname is the best solution. ... RUN AT ALL it has a run time environment compatible with the one ...
    (comp.os.linux.development.system)
  • Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
    ... wrapper around the kernel build system, ... possible way to fix this would be fixing the data passed to userspace ... from uname. ... the build machine architecture is not necessarily the same as the ...
    (Linux-Kernel)