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: 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: FC10 does not boot when HDD moved to another machine
    ... No modules available for kernel "2.6.27.5-117.fc10.i586" ... I tried the suggestion of running 'yum update kernel' while in rescue mode ... but it still would not boot. ... uname -r still shows 2.6.27.5-117.fc10.i586. ...
    (Fedora)
  • Re: FC10 does not boot when HDD moved to another machine
    ... No modules available for kernel "2.6.27.5-117.fc10.i586" ... I tried the suggestion of running 'yum update kernel' while in rescue mode ... but it still would not boot. ... uname -r still shows 2.6.27.5-117.fc10.i586. ...
    (Fedora)