Installation on 64-bit systems

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

  1. falko

    falko Super Moderator ISPConfig Developer

    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
    Code:
    uname
    command to find out about the operating system - but which switch do I use?

    Code:
    uname -m
    prints the machine hardware name. On a 64-bit SuSE 10.0 this gives back
    Code:
    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

    Code:
    uname -m
    and

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

    danf.1979 ISPConfig Developer ISPConfig Developer

    I'm using ubuntu x86, *but* thereis no "-p" argument in uname man page. Is -p exclusive for x86_64? :confused:
    Code:
           -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
    
           --version
                  output version information and exit
    
     
  3. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    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 ISPConfig Developer ISPConfig Developer

    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
    Code:
    cpuid               - Intel and AMD x86 CPUID display program
    
    As I told you, I have x86 Ubuntu, but my processor is x86_64.
    Code:
    dan@alcon:~$ cpuid | grep Processor
    Processor name string: AMD Athlon(tm) 64 Processor 3000+
    
    Maybe you can check this also:
    Code:
    libsys-cpu-perl          - Sys::CPU Perl module for getting CPU information
    
     
    Last edited: Dec 27, 2005
  5. falko

    falko Super Moderator ISPConfig Developer

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

     
  6. nenad

    nenad ISPConfig Developer ISPConfig Developer

    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