• Linux Question

    From nugax@21:1/167 to ALL on Sat Apr 8 16:48:24 2023
    What file would you suggest a dev reads to determuine linux distro and ver? os release?
    trying to figure out best way to determine linux/bsd os.


    -Nugax (cbbs)


    --- CyberBBS v1.0.11 2023/03/12 [Debian Linux/x64]
    * Origin: CyberBBS WHQ BBS | http://www.cyberbbs.co (21:1/167)
  • From Al@21:4/106 to nugax on Sat Apr 8 17:17:12 2023
    What file would you suggest a dev reads to determuine linux distro and ver? os
    release?
    trying to figure out best way to determine linux/bsd os.

    /etc/os-release or /etc/lsb-release will get the info in many cases.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From nugax@21:1/167 to Al on Sat Apr 8 19:33:26 2023
    On 08 Apr 23 17:17:12, Al wrote:
    What file would you suggest a dev reads to determuine linux distro and ver? os
    release?
    trying to figure out best way to determine linux/bsd os.

    /etc/os-release or /etc/lsb-release will get the info in many cases.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton BC Canada (21:4/106)


    Is that true for most *nix/bsd?

    -Nugax (cbbs)


    --- CyberBBS v1.0.11 2023/03/12 [Debian Linux/x64]
    * Origin: CyberBBS WHQ BBS | http://www.cyberbbs.co (21:1/167)
  • From Al@21:4/106 to nugax on Sat Apr 8 20:10:34 2023
    /etc/os-release or /etc/lsb-release will get the info in many cases.

    Is that true for most *nix/bsd?

    My lfs install has both, My Slackware-15.0 and Arch installs both have /etc/os-release. That's what I see here but you may get different results in different places.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/182 to nugax on Sun Apr 9 15:02:19 2023
    What file would you suggest a dev reads to determuine linux distro and
    ver? os
    release?
    trying to figure out best way to determine linux/bsd os.

    for linux distros as al pointed out /etc/os-release or whatever, however
    if you want to work out bsd (not linux) uname (sys/utsname.h) will tell
    you the name of the OS eg. Linux / FreeBSD / NetBSD / OpenBSD / SunOS etc
    ..

    If you're using it to put in a tear line, I'd suggest keeping it fairly
    vague, or at least optional. Not everyone wants the world to know the
    exact version they're running and what exploits are available since they
    last updated the os. Yes yes, security through obscurity etc.. but not
    everyone sits infront of their computer 24/7 to patch it the instant an
    expolit is discovered.

    eg. Debian GNU/Linux sure. Debian GNU/Linux v5.12.1-patchlevel5.1-etc not
    so much.

    Andrew


    --- Talisman v0.47-dev (Windows/x64)
    * Origin: Smuggler's Cove - Private BBS (21:1/182)
  • From Michael Borthwick@21:3/179 to nugax on Sun Apr 9 15:59:50 2023
    What file would you suggest a dev reads to determuine linux distro and

    uname -a

    should give an output like

    Linux debian-04 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

    ... Kids: They're not sleeping, they're recharging!

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: third rock bbs: bbs.thirdrockbbs.au (21:3/179)
  • From claw@21:1/210 to nugax on Mon Apr 10 07:30:05 2023
    On 08 Apr 2023, nugax said the following...
    What file would you suggest a dev reads to determuine linux distro and ver? os release?
    trying to figure out best way to determine linux/bsd os.
    -Nugax (cbbs)

    I believe neofetch is open source. Check out how they did it. I typically install that on all my machines. Nice little quick look at what a system is.

    |23|04Dr|16|12Claw
    |16|14Sysop |12Noverdu |14BBS |20|15Radio|10@|14HTTP://Noverdu.com:88
    |16|10 Standard ports for SSH/Telnet |04 WEB|14@|12HTTP://noverdu.com:808 |20|15Global Chat, Global Messaging and Games! |16|10Ditch the Unsocial Media

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Noverdu BBS (21:1/210)
  • From nugax@21:1/167 to claw on Mon Apr 10 22:09:27 2023
    Thanks. I needed something os based I could probe to determine distro. I
    ended up using /etc/os-release which pulls info on the current distro for displaying info for my bbs

    Thanks!

    -Nugax (cbbs)


    --- CyberBBS v1.0.11 2023/04/10 [Debian Linux/x64]
    * Origin: CyberBBS WHQ BBS | Telnet: whq.cyberbbs.dev:6023 (21:1/167)
  • From claw@21:1/210 to nugax on Tue Apr 11 07:22:20 2023
    On 10 Apr 2023, nugax said the following...
    Thanks. I needed something os based I could probe to determine distro. I ended up using /etc/os-release which pulls info on the current distro for displaying info for my bbs

    Thanks!

    -Nugax (cbbs)

    This is something that works across distros. It's not always installed but can be in all of the package managers

    It's for seeing what distro and version is running. As well as the kernal being used.

    |23|04Dr|16|12Claw
    |16|14Sysop |12Noverdu |14BBS |20|15Radio|10@|14HTTP://Noverdu.com:88
    |16|10 Standard ports for SSH/Telnet |04 WEB|14@|12HTTP://noverdu.com:808 |20|15Global Chat, Global Messaging and Games! |16|10Ditch the Unsocial Media

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Noverdu BBS (21:1/210)
  • From Arelor@21:2/138 to nugax on Tue Apr 11 08:45:00 2023
    Re: RE: Linux Question
    By: nugax to Al on Sat Apr 08 2023 07:33 pm

    Is that true for most *nix/bsd?

    OpenBSD does not have /etc/os-release

    Maybe you can check for /etc/os-release and fallback to the output of "uname -sr".

    --
    gopher://gopher.richardfalken.com/1/richardfalken
    --- SBBSecho 3.20-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138)
  • From BitByter@21:4/105 to nugax on Tue Apr 11 09:24:51 2023

    Hello nugax!

    08 Apr 23 19:33, you wrote to Al:

    What file would you suggest a dev reads to determuine linux distro
    and ver? os release? trying to figure out best way to determine
    linux/bsd os.

    /etc/os-release or /etc/lsb-release will get the info in many cases.

    Is that true for most *nix/bsd?

    Most, but definitely not all. I can send you the SETUP.sh I use for initial installs of MBSE BBS; it checks for many of the common Linux distributions and versions.

    BitByter

    --- GoldED+/LNX 1.1.5-b20230304
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (21:4/105)
  • From nugax@21:1/167 to BitByter on Wed Apr 12 07:16:42 2023
    that would be awesome. nugax@protonmail.com

    thanks.
    -Nugax (cbbs)


    --- CyberBBS v1.0.11 2023/04/11 [Debian Linux/x64]
    * Origin: CyberBBS WHQ BBS | Telnet: whq.cyberbbs.dev:6023 (21:1/167)
  • From phigan@21:3/177 to Al on Wed Apr 12 15:53:23 2023
    /etc/os-release or /etc/lsb-release will get the info in many cases.

    cat /etc/*release

    ---
    * Origin: Kludge BBS | klud.ge (21:3/177)