Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On Mon, 2011-11-14 at 17:53 +, John Levin wrote: Hi all, I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? If anyone is running such a system, if they could cut paste the output, I'd be very much obliged. PS: Thanks to Alan Lord Simon Greenwood for their replies to my question (from ages ago) about installing non-deb apps. I was having a terminology problem! $ uname -a Linux vortex.usebox.net 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux I have less than 4GB of RAM, so I didn't bother running a 64 bits system. If you want to know if a CPU is 64bits no matter which kernel is running, look for lm in the CPU flags in /proc/cpuinfo, or try with lscpu: $ lscpu Architecture: i686 CPU op-mode(s):32-bit, 64-bit Byte Order:Little Endian CPU(s):4 On-line CPU(s) list: 0-3 Thread(s) per core:2 Core(s) per socket:2 Socket(s): 1 Vendor ID: GenuineIntel CPU family:6 Model: 37 Stepping: 5 CPU MHz: 2394.000 BogoMIPS: 4799.84 Virtualization:VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K Regards, Juan -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ en_GB@blog: http://engbblog.wordpress.com/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
Linux laptop 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 athlon i386 GNU/Linux On 11.10 running on an HP TX 1000 On Mon, Nov 14, 2011 at 5:53 PM, John Levin technola...@gmail.com wrote: Hi all, I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? If anyone is running such a system, if they could cut paste the output, I'd be very much obliged. PS: Thanks to Alan Lord Simon Greenwood for their replies to my question (from ages ago) about installing non-deb apps. I was having a terminology problem! John -- John Levin http://www.anterotesis.com johnle...@joindiaspora.com http://twitter.com/anterotesis -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/**mailman/listinfo/ubuntu-ukhttps://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/**UKTeam/ https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On 14/11/11 17:53, John Levin wrote: Hi all, I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? If anyone is running such a system, if they could cut paste the output, I'd be very much obliged. PS: Thanks to Alan Lord Simon Greenwood for their replies to my question (from ages ago) about installing non-deb apps. I was having a terminology problem! John Okay I'm running Mint 11, so it might be slightly different output to Ubuntu (I haven't fired up my media PC and my server is running Ubuntu Server 64-Bit), but hope this helps: rob@aspire ~ $ uname -a Linux aspire 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 i686 i686 i386 GNU/Linux (It's running on a Core 2 Duo with 4GB Ram) Rob -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
I find running uname -m is easier for determining whether it's a 64 bit machine or not. Generally though, you just need to look out for x86_64 which is on a 64 bit machine, and i686 or similar for 32 bit. On 14 Nov 2011, at 18:17, Rob Beard r...@esdelle.co.uk wrote: On 14/11/11 17:53, John Levin wrote: Hi all, I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? If anyone is running such a system, if they could cut paste the output, I'd be very much obliged. PS: Thanks to Alan Lord Simon Greenwood for their replies to my question (from ages ago) about installing non-deb apps. I was having a terminology problem! John Okay I'm running Mint 11, so it might be slightly different output to Ubuntu (I haven't fired up my media PC and my server is running Ubuntu Server 64-Bit), but hope this helps: rob@aspire ~ $ uname -a Linux aspire 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 i686 i686 i386 GNU/Linux (It's running on a Core 2 Duo with 4GB Ram) Rob -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
John Levin wrote: I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? uname reports information about the kernel, not the hardware. So for a 32-bit kernel it will report 32-bit information (with strings like i386 and i686), and on a 64-bit kernel it will contain 64-bit sorts of strings (x86_64, amd64 etc.) Precisely what it says depends upon what the person who built the kernel told it to, though. -- Avi -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On 14/11/2011 19:27, Avi Greenbury wrote: John Levin wrote: I'm writing a bit of documentation, and am having trouble with uname. What does uname -a produce for a 32 bit operating system running on a 64 bit cpu? uname reports information about the kernel, not the hardware. So for a 32-bit kernel it will report 32-bit information (with strings like i386 and i686), and on a 64-bit kernel it will contain 64-bit sorts of strings (x86_64, amd64 etc.) Precisely what it says depends upon what the person who built the kernel told it to, though. Thanks to everyone who replied. Does seem that uname reports the kernel, and not the hardware, which is what is suggested by the man page and http://ss64.com/bash/uname.html My bit of documentation, on installing the beta of Zotero, is now published: http://anterotesis.com/wordpress/2011/11/installing-zotero-standalone-on-ubuntu-11-10/ Comments, clarifications etc welcome. And also, I hope it is useful for installing other non-deb executables. John -- John Levin http://www.anterotesis.com johnle...@joindiaspora.com http://twitter.com/anterotesis -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On 14 November 2011 21:55, John Levin technola...@gmail.com wrote: ... Thanks to everyone who replied. Does seem that uname reports the kernel, and not the hardware, which is what is suggested by the man page and http://ss64.com/bash/uname.html This has caused confusion to others, there was a long thread which involved such confusions on Ubuntu Users mailing list recently. Perhaps it would be worth filing a bug to get the man page clarified. I suppose you could even file a patch with better wording, but I don't know go about that. Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On Mon, 2011-11-14 at 22:05 +, Colin Law wrote: On 14 November 2011 21:55, John Levin technola...@gmail.com wrote: ... Thanks to everyone who replied. Does seem that uname reports the kernel, and not the hardware, which is what is suggested by the man page and http://ss64.com/bash/uname.html This has caused confusion to others, there was a long thread which involved such confusions on Ubuntu Users mailing list recently. Perhaps it would be worth filing a bug to get the man page clarified. I suppose you could even file a patch with better wording, but I don't know go about that. TL;DR: it doesn't matter what is your hardware, the important it's which kernel are your running. It's not a big deal, although the words aren't 100% accurate. If you're running a 32bits kernel, it doesn't matter you have 64bits hardware. Besides that if you're running a 64bits kernel, it's probably a good idea you run the 64bits version of any application; but you can still run the 32bits version (although it may involve installing more 32bits stuff, such as shared libraries). Regards, Juan (ex-Linux 64bits user, Adobe Flash 64bits plugin hater) -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ en_GB@blog: http://engbblog.wordpress.com/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
2011/11/14 Juan J. reid...@usebox.net: On Mon, 2011-11-14 at 22:05 +, Colin Law wrote: On 14 November 2011 21:55, John Levin technola...@gmail.com wrote: ... Thanks to everyone who replied. Does seem that uname reports the kernel, and not the hardware, which is what is suggested by the man page and http://ss64.com/bash/uname.html This has caused confusion to others, there was a long thread which involved such confusions on Ubuntu Users mailing list recently. Perhaps it would be worth filing a bug to get the man page clarified. I suppose you could even file a patch with better wording, but I don't know go about that. TL;DR: it doesn't matter what is your hardware, the important it's which kernel are your running. It does matter what the hardware is if you want to know whether you *could* run the 64 bit kernel. Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
For hardware info, I use the inxi script e.g (from my debian install): $ inxi -F System:Host: n5010 Kernel: 3.0.0-1-amd64 x86_64 (64 bit) Desktop Gnome 2.30.2 Distro: Linux Mint Debian Edition Machine: Mobo: Dell model: 03C6YH version: A15 Bios: Dell version: A15 date: 07/19/2011 CPU: Dual core Intel Core i5 CPU M 430 (-HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) Clock Speeds: 1: 1197.00 MHz 2: 1197.00 MHz 3: 1197.00 MHz 4: 1197.00 MHz Graphics: Card: ATI Manhattan [Mobility Radeon HD 5400 Series] X.Org: 1.11.1.902 drivers: ati,radeon (unloaded: vesa,fbdev) Resolution: 1366x768@60.0hz GLX Renderer: Gallium 0.4 on AMD CEDAR GLX Version: 2.1 Mesa 7.11 Audio: Card-1: Intel 5 Series/3400 Series Chipset High Definition Audio driver: HDA Intel Sound: ALSA ver: 1.0.24 Card-2: ATI Manhattan HDMI Audio [Mobility Radeon HD 5000 Series] driver: HDA Intel Network: Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169 IF: eth1 state: down speed: 10 Mbps duplex: half mac: a4:ba:db:ba:04:f2 Card-2: Broadcom BCM4313 802.11b/g/n Wireless LAN Controller driver: wl IF: eth2 state: up mac: 70:f1:a1:55:fe:bf Drives:HDD Total Size: 500.1GB (18.8% used) 1: /dev/sda WDC_WD5000BEVT 500.1GB Partition: ID: / size: 46G used: 7.5G (18%) fs: ext4 ID: /home size: 221G used: 81G (39%) fs: ext4 ID: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap Sensors: System Temperatures: cpu: 65.5C mobo: N/A gpu: 73.5 Fan Speeds (in rpm): cpu: N/A Info: Processes: 208 Uptime: 3:41 Memory: 1973.9/3831.4MB Client: Shell inxi: 1.7.24 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] uname -a for 32 bit os on 64 bit cpu
On Mon, 2011-11-14 at 22:22 +, Colin Law wrote: [...] TL;DR: it doesn't matter what is your hardware, the important it's which kernel are your running. It does matter what the hardware is if you want to know whether you *could* run the 64 bit kernel. ... and you're running a 32 bit kernel. OK, fair enough. I wouldn't use uname. lm in the CPU flags in /proc/cpuinfo it's the best bet. Regards, Juan -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ en_GB@blog: http://engbblog.wordpress.com/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/