Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th December 2005, 15:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Exclamation 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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #2  
Old 27th December 2005, 19:18
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

I'm using ubuntu x86, *but* thereis no "-p" argument in uname man page. Is -p exclusive for x86_64?
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
Reply With Quote
  #3  
Old 27th December 2005, 19:21
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

operating system is "-o". Maybe you wrote you wanted to get the "os" but really wanted to say the machine arch?
Reply With Quote
  #4  
Old 27th December 2005, 19:27
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

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 by danf.1979; 27th December 2005 at 19:30.
Reply With Quote
  #5  
Old 27th December 2005, 20:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th January 2007, 20:21
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 416
Thanks: 13
Thanked 5 Times in 5 Posts
Default

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
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual ISPConfig installation Jan Installation/Configuration 6 29th October 2005 12:56
Problems getting through the installation klausagnoletti Installation/Configuration 4 26th September 2005 13:23
mysql password during installation Hellbound Installation/Configuration 4 21st September 2005 19:52
ERROR: The URL is not reachable! The installation routine stops here! shart Installation/Configuration 4 2nd September 2005 10:07
Trouble with Installation. cjkeeme Installation/Configuration 3 3rd August 2005 19:46


All times are GMT +2. The time now is 01:04.


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