HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Installation on 64-bit systems (http://www.howtoforge.com/forums/showthread.php?t=1542)

falko 5th December 2005 14:46

Installation on 64-bit systems
 
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
Quote:

x86_64
Code:

uname -p
prints the processor type. On a 64-bit SuSE this also bives back
Quote:

x86_64
.

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. :)

danf.1979 27th December 2005 18:18

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


danf.1979 27th December 2005 18:21

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

danf.1979 27th December 2005 18:27

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

falko 27th December 2005 19:21

I think
Code:

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

Quote:

Suse 10 x86_64
# uname
Linux
# uname -m
x86_64
# uname -p
x86_64

Fedora Core 4 x86_64
# uname
Linux
# uname -m
x86_64
# uname -p
x86_64

CentOS 4.2 x86_64
# uname
Linux
# uname -m
x86_64
# uname -p
x86_64

Ubunto 5.10 x86_64
# uname
Linux
# uname -m
x86_64
# uname -p
Try 'uname --help' for more information.

Debian Sarge x86_64
Cannot install (do not seem to see my SATA HDD)

Mandriva 2006 x86_64
# uname
Linux
# uname -m
x86_64
# uname -p
Intel(R) Pentium(R) 4 CPU 3.00GHz

nenad 5th January 2007 19:21

Quote:

Debian Sarge x86_64
Cannot install (do not seem to see my SATA HDD)
Same here...

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


All times are GMT +2. The time now is 14:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.