Results 1 to 7 of 7

Thread: In what file... Unique ID as an "Ubuntu Server Edition"?

  1. #1
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    In what file... Unique ID as an "Ubuntu Server Edition"?

    I'm converting some HP Server Management utils from RPM to Debian. Why? for one reason, one of my HP servers runs the fans at full speed all the time if the Health Monitor is not installed to monitor temps... Right now I'm rewriting the install scripts to what is relevant in Debian branches.

    Currently... 12.04 and up- What ID in what file uniquely ID's an install as an Ubuntu Server Edition versus a Desktop Edition? We can't go off the kernel ID anymore since that was merged...
    Last edited by MAFoElffen; March 29th, 2013 at 04:08 AM.
    Multi-Boot= Various flavours of Windows, Linux and Unix... Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    Boot Info Script courtesy of community member meierfra

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,507
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    Code:
    cat /etc/issue
    uname -a
    lsb_release -a
    Perhaps a better way would be to look for a package that is installed with the server that is not installed on the desktop. (Edited: Like landscape. )
    Last edited by tgalati4; March 29th, 2013 at 05:51 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  3. #3
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    All three of those hints - same info as what I mentioned and also looking in /proc/... I don't see anything offhand unique between server and desktop in those.

    Your second idea has a possibility. The only app i can think of that I install on all servers, only on servers, even as a vanilla temporary test server that I'm going to test and get rid of... is "openssh-server". But that is something that I install, not something that is just there.

    On the other hand, on existing "Server Editions" when you log into an Ubuntu server (vs. a Desktop VT) there's some status files that get called and it displays those stats (and advertises Landscape stat's graphing)... Anyone know what/where those files are? Maybe called by motd?
    Last edited by MAFoElffen; March 29th, 2013 at 04:04 AM.
    Multi-Boot= Various flavours of Windows, Linux and Unix... Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    Boot Info Script courtesy of community member meierfra

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    Got it. Thanks for prodding me. It was:
    /etc/update-motd.d/50-landscape-sysinfo

    It's only on Server Edition.
    Multi-Boot= Various flavours of Windows, Linux and Unix... Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    Boot Info Script courtesy of community member meierfra

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    Quote Originally Posted by MAFoElffen View Post
    Got it. Thanks for prodding me. It was:
    /etc/update-motd.d/50-landscape-sysinfo

    It's only on Server Edition.
    Yep. Well, unless you install the landscape-common package on the desktop edition.

    Hope that gives you a point to start at.

    EDIT: You could also go off the kernel, at least if you want to read it from dpkg.

    Code:
    dpkg -l | grep "kernel image" | cut -d " " -f 3
    linux-image-3.2.0-37-generic
    linux-image-3.2.0-38-generic
    linux-image-3.2.0-39-generic
    linux-image-server
    Last edited by CharlesA; March 29th, 2013 at 05:23 AM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    CharlesA-
    But it no longer works that way after they merged the kernels:
    Code:
    mafoelffen@maferr-ubuntu-1:~$ ssh -X mafoelffen@192.168.2.8
    mafoelffen@192.168.2.8's password: 
    Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic i686)
    
     * Documentation:  https://help.ubuntu.com/
    
      System information as of Fri Mar 29 15:09:15 PDT 2013
    
      System load:  0.0               Processes:           97
      Usage of /:   23.0% of 9.17GB   Users logged in:     1
      Memory usage: 3%                IP address for eth0: 192.168.2.8
      Swap usage:   0%
    
      Graph this data and manage this system at https://landscape.canonical.com/
    
    Last login: Fri Mar 29 15:03:16 2013
    mafoelffen@maferr-hpdl380g3:~$ dpkg -l | grep "kernel image" | cut -d " " -f 3
    linux-generic-lts-quantal
    linux-image-3.5.0-23-generic
    linux-image-generic-lts-quantal
    mafoelffen@maferr-hpdl380g3:~$
    Last edited by MAFoElffen; March 29th, 2013 at 11:19 PM.
    Multi-Boot= Various flavours of Windows, Linux and Unix... Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    Boot Info Script courtesy of community member meierfra

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: In what file... Unique ID as an "Ubuntu Server Edition"?

    Ah ok. I am still running the old 3.2 kernel, not the 3.5 kernel, even though I am running 12.04.2.

    Thanks.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •