Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Running unity without rendering graphics (headless mode) on linux

Discussion in 'Linux' started by gargd, Sep 13, 2018.

  1. gargd

    gargd

    Joined:
    Apr 15, 2017
    Posts:
    3
    Hi, I've been trying to run unity in headless mode on linux. There is a headless mode option in build settings in linux, which I have already ticked but still when I turn the play mode on, the graphics are rendered as they do without headless mode being ticked.
     
  2. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    That setting is for the builds, and not the editor.
     
  3. gargd

    gargd

    Joined:
    Apr 15, 2017
    Posts:
    3
    Then how do I run unity without rendering the graphics?
     
  4. Joseph-Ferano

    Joseph-Ferano

    Joined:
    Jul 18, 2008
    Posts:
    165
  5. MikeWise

    MikeWise

    Joined:
    Dec 27, 2017
    Posts:
    14
    I am using "unityprogram -nographics -batchmode". Oddly in Windows it kind of works, but still brings up a window without the close/minimize controls which is a bit annoying.
    You need it on Linux in Azure on the DSVM if you want to run on a non-GPU (and much cheaper) VM.