Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Allow Custom System Vendor and Product Name Override in Settings

Allow Custom System Vendor and Product Name Override in Settings

Scheduled Pinned Locked Moved Feature Requests
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote last edited by d19dotca
    #1

    Problem

    Some VPS and dedicated server providers (OVH in my case) ship servers with placeholder DMI/SMBIOS information that shows as "To Be Filled By O.E.M." in the Server page of Cloudron. This information is read from /sys/devices/virtual/dmi/id/ and cannot be changed at the OS level since it's stored in read-only firmware. This results in some annoyances in the Server page when reviewing the details.

    Current display in Cloudron Server page:

    • System Vendor: To Be Filled By O.E.M.
    • Product Name: To Be Filled By O.E.M.

    Proposed Solution

    Add optional configuration fields to allow administrators to override the system vendor and product name displayed in Cloudron's Server page. This can help not only in allowing us to be more technically accurate, but also could be used by admins for quickly identifying prod vs stage servers, or the type of Cloudron server that's running if managing multiple for example.

    Proposals:

    Option 1: Configuration File

    Add optional fields to a Cloudron config file, for example /home/yellowtent/platformdata/configs/system.json:

    {
      "systemVendorOverride": "OVH",
      "productNameOverride": "SYS-GAME-2"
    }
    

    Option 2: Settings UI

    Add fields in System → Settings or Server:

    • Custom System Vendor (optional)
    • Custom Product Name (optional)

    If these fields are populated, use them instead of the DMI values.

    Option 3: Environment Variables

    Allow setting via environment variables:

    CLOUDRON_SYSTEM_VENDOR="OVH"
    CLOUDRON_PRODUCT_NAME="SYS-GAME-2"
    

    My preference would be option #2 above that's only editable by administrators.

    Code Reference

    The relevant code is in system.js in the getInfo() function:

    async function getInfo() {
        // ... existing code ...
        
        const sysVendor = safe.fs.readFileSync('/sys/devices/virtual/dmi/id/sys_vendor', 'utf8') || '';
        const productName = safe.fs.readFileSync('/sys/devices/virtual/dmi/id/product_name', 'utf8') || '';
        
        // ... existing code ...
        
        return {
            sysVendor: sysVendor.trim(),
            productName: productName.trim() || productFamily.trim(),
            // ... other fields ...
        };
    }
    

    Benefits

    1. Cosmetic Improvement: Server page displays meaningful information
    2. Multi-server Management: Easier to identify servers when managing multiple Cloudron instances
    3. No Breaking Changes: Optional feature, defaults to current behavior

    This is related in part to https://forum.cloudron.io/post/81065. Between OVH's indifference to setting these BIOS firmware attributes, and my mild OCD... lol, I'm hoping we can add this as a small nice-to-have improvement for users. 🙂

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search