Installation on 64-bit systems

Discussion in 'Developers' Forum' started by falko, Dec 5, 2005.

  1. falko

    falko Super Moderator Howtoforge Staff

    Hi guys,

    I'm trying to adjust the ISPConfig installer so that it also supports 64-bit systems. Now my question is: what would be the best way to test if the operating system (not the processor!) is a 64-bit Linux - please keep in mind that it is possible to install a 32-bit Linux on a 64-bit processor!

    I think it is a good idea to use the
    command to find out about the operating system - but which switch do I use?

    uname -m
    prints the machine hardware name. On a 64-bit SuSE 10.0 this gives back
    uname -p
    prints the processor type. On a 64-bit SuSE this also bives back

    The same commands issued on a 32-bit Debian Sarge show the following:

    uname -m: i686

    uame -p: unknown

    So I guess uname -m would be the right command to find out about the operating system.

    Do you have better suggestions?

    Also, if you happen to run a 64-bit Linux (Fedora, Debian, SuSE, Mandriva, CentOS, ...), please post the output of both

    uname -m

    uname -p
    here. :)
  2. danf.1979

    danf.1979 Member

    I'm using ubuntu x86, *but* thereis no "-p" argument in uname man page. Is -p exclusive for x86_64? :confused:
           -a, --all
                  print all information, in the following order:
           -s, --kernel-name
                  print the kernel name
           -n, --nodename
                  print the network node hostname
           -r, --kernel-release
                  print the kernel release
           -v, --kernel-version
                  print the kernel version
           -m, --machine
                  print the machine hardware name
           -o, --operating-system
                  print the operating system
           --help display this help and exit
                  output version information and exit
  3. danf.1979

    danf.1979 Member

    operating system is "-o". Maybe you wrote you wanted to get the "os" but really wanted to say the machine arch?
  4. danf.1979

    danf.1979 Member

    Uhm, oh, now i get it, I know what you mean now. Maybe there is no easy way if the kernel is not for the corresponding arch...
    But maybe you could use "cpuid" program to get the output for the processor type
    cpuid               - Intel and AMD x86 CPUID display program
    As I told you, I have x86 Ubuntu, but my processor is x86_64.
    dan@alcon:~$ cpuid | grep Processor
    Processor name string: AMD Athlon(tm) 64 Processor 3000+
    Maybe you can check this also:
    libsys-cpu-perl          - Sys::CPU Perl module for getting CPU information
    Last edited: Dec 27, 2005
  5. falko

    falko Super Moderator Howtoforge Staff

    I think
    uname -m
    is what I'm looking for. This is what Seawolf found out for me: :)

  6. nenad

    nenad Member

    Same here...

    Amazingly, Etch works out of box for SATA, nViadia LAN, Audio etc. Even graphic driver compaling is piece of cake

Share This Page