• Re: What tool(s) reports OS buss width, which processor present?

    From Wesley@21:1/5 to Richard Owlett on Wed Aug 21 13:40:02 2024
    On 2024-08-21 19:34, Richard Owlett wrote:
    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64
    bit.
    TIA

    maybe this?
    $ uname -a

    Thanks

    --
    https://wespeng.pages.dev/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Richard Owlett on Wed Aug 21 13:40:02 2024
    On Wed, Aug 21, 2024 at 06:34:30AM -0500, Richard Owlett wrote:
    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit. TIA

    uname -a

    This tells you the *kernel* version. Note that for most architectures,
    the 64 bit version can run 32 bit applications fine if you make sure to
    have the libs installed.

    So "the release 'is' 64 bit" or "... 32 bit" is misleading.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZsXR4wAKCRAFyCz1etHa RhFAAJ9EQO6jdBR2L4DboYOL908r5k7SxwCdEPf+j+J4+PrtcZ4k/VaTgkHEcsI=
    =IW5P
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to All on Wed Aug 21 13:40:02 2024
    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit. TIA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to [email protected] on Wed Aug 21 13:50:01 2024
    On 08/21/2024 06:39 AM, [email protected] wrote:
    On Wed, Aug 21, 2024 at 06:34:30AM -0500, Richard Owlett wrote:
    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit. >> TIA

    uname -a

    This tells you the *kernel* version. Note that for most architectures,
    the 64 bit version can run 32 bit applications fine if you make sure to
    have the libs installed.

    So "the release 'is' 64 bit" or "... 32 bit" is misleading.

    Cheers


    Yes BUT <grin>
    I have hardware which is 64 bit but at different has been running both
    32 and 64 bit Debian. I need to know which was active now.

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to [email protected] on Wed Aug 21 14:00:01 2024
    On Wed, Aug 21, 2024 at 13:39:22 +0200, [email protected] wrote:
    On Wed, Aug 21, 2024 at 06:34:30AM -0500, Richard Owlett wrote:
    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit.
    TIA

    uname -a

    This tells you the *kernel* version. Note that for most architectures,
    the 64 bit version can run 32 bit applications fine if you make sure to
    have the libs installed.

    So "the release 'is' 64 bit" or "... 32 bit" is misleading.

    I've always favored "file /bin/ls" to get the architecture.

    hobbit:~$ file /bin/ls
    /bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=15dfff3239aa7c3b16a71e6b2e3b6e4009dab998, for GNU/Linux 3.2.0, stripped

    It's extremely likely that whatever arch /bin/ls uses is the "primary"
    arch for the system. It works on every Linux system I've encountered,
    even if the kernel doesn't match it.

    Of course, for Debian specifically, there's also

    dpkg --print-architecture

    If that agrees with file /bin/ls, then you've got one more level of trust.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Wed Aug 21 14:50:01 2024
    Richard Owlett composed on 2024-08-21 06:34 (UTC-0500):

    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit.

    Debian GNU/Linux 11 gx28b tty3
    gx28b login: root
    Password:
    Linux gx28b 5.10.0-32-686 #1 SMP Debian 5.10.223-1 (2024-08-10) i686
    Have a lot of GX28B fun...
    Last login: Wed Jun 16 22:44:18 EDT 2024 on tty2
    root@gx28b:~# uname -a
    Linux gx28b 5.10.0-32-686 #1 SMP Debian 5.10.223-1 (2024-08-10) i686 GNU/Linux root@gx28b:~#
    ...
    # inxi -CSz
    System:
    Kernel: 5.10.0-32-686 arch: i686 bits: 32
    Desktop: TDE (Trinity) v: R14.1.2 Distro: Debian GNU/Linux 11 (bullseye)
    CPU:
    Info: single core model: Intel Pentium 4 bits: 32 type: MT cache:
    L2: 1024 KiB
    Speed (MHz): avg: 2793 min/max: N/A cores: 1: 2793 2: 2793
    # lscpu
    Architecture: i686
    CPU op-mode(s): 32-bit
    Byte Order: Little Endian
    Address sizes: 36 bits physical, 32 bits virtual
    CPU(s): 2
    On-line CPU(s) list: 0,1
    Thread(s) per core: 2
    Core(s) per socket: 1
    Socket(s): 1
    Vendor ID: GenuineIntel
    CPU family: 15
    Model: 4
    Model name: Intel(R) Pentium(R) 4 CPU 2.80GHz Stepping: 1
    CPU MHz: 2793.078
    BogoMIPS: 5586.15
    L1d cache: 16 KiB
    L2 cache: 1 MiB
    Vulnerability...
    #
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Wed Aug 21 15:10:01 2024
    This is an edit/resend. Originally I tried to reconstruct the initial login of the
    day, but brain fart got things backwards, after the upgrade and reboot.

    Richard Owlett composed on 2024-08-21 06:34 (UTC-0500):

    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit.

    Debian GNU/Linux 11 gx28b tty3
    gx28b login: root
    Password:
    Linux gx28b 5.10.0-30-686 #1 SMP Debian 5.10.218-1 (2024-06-01) i686
    Have a lot of GX28B fun...
    Last login: Wed Jun 16 22:44:18 EDT 2024 on tty2
    root@gx28b:~# uname -a
    Linux gx28b 5.10.0-32-686 #1 SMP Debian 5.10.223-1 (2024-08-10) i686 GNU/Linux root@gx28b:~#
    ...
    # inxi -CSz
    System:
    Kernel: 5.10.0-32-686 arch: i686 bits: 32
    Desktop: TDE (Trinity) v: R14.1.2 Distro: Debian GNU/Linux 11 (bullseye)
    CPU:
    Info: single core model: Intel Pentium 4 bits: 32 type: MT cache:
    L2: 1024 KiB
    Speed (MHz): avg: 2793 min/max: N/A cores: 1: 2793 2: 2793
    # lscpu
    Architecture: i686
    CPU op-mode(s): 32-bit
    Byte Order: Little Endian
    Address sizes: 36 bits physical, 32 bits virtual
    CPU(s): 2
    On-line CPU(s) list: 0,1
    Thread(s) per core: 2
    Core(s) per socket: 1
    Socket(s): 1
    Vendor ID: GenuineIntel
    CPU family: 15
    Model: 4
    Model name: Intel(R) Pentium(R) 4 CPU 2.80GHz Stepping: 1
    CPU MHz: 2793.078
    BogoMIPS: 5586.15
    L1d cache: 16 KiB
    L2 cache: 1 MiB
    Vulnerability...
    #
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Richard Owlett on Wed Aug 21 16:10:01 2024
    On Wed, 21 Aug 2024, Richard Owlett wrote:

    I know I've asked this before, but couldn't thread.
    /etc/debian_version reports release active, but I need to know 32 or 64 bit. TIA


    dmidecode

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to Greg Wooledge on Wed Aug 21 16:50:02 2024
    Hello,

    On Wed, Aug 21, 2024 at 07:52:14AM -0400, Greg Wooledge wrote:
    It's extremely likely that whatever arch /bin/ls uses is the "primary"
    arch for the system. It works on every Linux system I've encountered,
    even if the kernel doesn't match it.

    Of course, for Debian specifically, there's also

    dpkg --print-architecture

    If that agrees with file /bin/ls, then you've got one more level of trust.

    I'm sure that if a reader has done the following they would know and
    remember, but I do have some i386 Debian hosts which were partially cross-graded to amd64 only as far as running the amd64 kernel while
    leaving all of the user land and the primary dpkg architecture as
    i386. This is a supported configuration.

    In that case "uname -a" reports the amd64 kernel correctly, while
    "file /bin/ls" and "dpkg --print-architecture" both still report i386!

    😀

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Thu Aug 22 14:40:01 2024
    cross-graded to amd64 only as far as running the amd64 kernel while
    leaving all of the user land and the primary dpkg architecture as
    i386. This is a supported configuration.

    It's not just "supported": it's basically the recommended setup for an
    i386 install, since the support for the i386 kernels is being EOL'd.


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to Stefan Monnier on Thu Aug 22 22:20:02 2024
    Hello,

    On Thu, Aug 22, 2024 at 08:38:20AM -0400, Stefan Monnier wrote:
    cross-graded to amd64 only as far as running the amd64 kernel while
    leaving all of the user land and the primary dpkg architecture as
    i386. This is a supported configuration.

    It's not just "supported": it's basically the recommended setup for an
    i386 install, since the support for the i386 kernels is being EOL'd.

    Others may have noticed me already pointing this out at length in
    other threads. 😀

    If you start with a system that was installed as i386 it's easy to
    just install an amd64 kernel.

    Some try to fully cross-grade userland to amd64, e.g.:

    https://wiki.debian.org/CrossGradingo

    Or by using this script:

    https://salsa.debian.org/crossgrading-team/debian-crossgrading/-/blob/master/INSTRUCTIONS.md

    However, both of those involve some very hairy steps. It's never
    been fully automatic for me and has involved some outcomes that were
    tricky to recover from. I wouldn't recommend that a non-expert tries
    it. It took longer than just reinstalling.

    I have had customers try to do this and end up taking a wrong step,
    resulting in a very broken system. Repairing it for them isn't
    something they pay me for so I've advised reinstall at that point
    also.

    So on most of these legacy systems I stopped with just the kernel,
    since that's the majority of the benefit anyway.

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)