Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Installing Unity.

Discussion in 'Linux Editor' started by hochl, Oct 10, 2019 at 2:00 PM.

  1. hochl

    hochl

    Joined:
    Sep 15, 2018
    Posts:
    4
    Dear all,

    I have successfully downloaded the Unity Hub, which gives me a file

    UnityHub.AppImage

    When I execute this File I get a nice menu and all and when I use the "Add ..." button I can select "2019.2.8f1". Unfortunately it says I only have 1,4GB free and it needs 5.4 GB. If I go to "https://unity3d.com/unity/beta/2019.3.0b6" I cannot see any option to download for Linux also.

    I have a separate drive reserved only for Unity so I have like 250GB of free space. Unfortunately it seems the download is always going to "/tmp" on my root partition which just has 1,4GB free, and that's usually more than enough. After all, we are not in the Windows world where everything is clustered inside C:\, right?

    How can I get Unity on Linux? It seems the Hub is the only way to get it AND it is broken by design because it assumes "/tmp" has infinite size.

    Or am I mistaken? Can I fix that problem somehow? Is there a way to download Unity without the Hub?

    Regards,
    Thomas.

    P.S.: If this is really the only way and the download directory is somehow hardcoded PLEASE add an option or at least an environment variable where we can change the download directory. This would be very much Unix style too!
     
    Last edited: Oct 10, 2019 at 2:07 PM
  2. KevinWelton

    KevinWelton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    10
    Unfortunately there is no way around that in the UI currently, but the Hub team is aware of the issue as a whole.

    What you *can* do is exit the hub, and run it manually with a new temp path for the download, like so:

    $ TEMP=/my/own/temp/path ~/.local/bin/UnityHubSetup.AppImage # or wherever your hub image lives
    Hope this helps!
     
  3. hochl

    hochl

    Joined:
    Sep 15, 2018
    Posts:
    4
    I have tested various versions of TMPDIR, TMP, TEMP and what-not and this does not work, unfortunately :( I think they are somehow relying on the value of the free disk space, too, so even if I made a symbolic link or bind mount out of "/tmp" I fear it would still not work... that issue seems to have been reported more than a year ago so I'm not sure if there is going to be a patch. Is there some other magic variable I can try?

    Funny situation to have terrabytes of free disk space and not being able to install Unity!
     
    Last edited: Oct 10, 2019 at 4:44 PM
  4. hochl

    hochl

    Joined:
    Sep 15, 2018
    Posts:
    4
    I looked some into this issue. The program tests against free space of the root drive (most probably free space of drive of "/tmp"), but once it gets past this check the download starts in $TEMP. So the check is going to the wrong drive and should instead select the drive where $TEMP (or $TMP or $TMPDIR) is pointing to. I could start downloading by patching my kernel to return faked values for free space on any drive to non-root processes. I know this method is maybe a little out of reach for most Linux users, so a patch to Unity would be very much recommendable and should not be a lot of work for Unity developers.
     
  5. TaleOf4Gamers

    TaleOf4Gamers

    Joined:
    Nov 15, 2013
    Posts:
    791
    I managed to construct this link from other Unity Linux version links. It does download a file but I have not tested it yet if it is the correct version and whatnot. Feel free to try it. It should the normal download manager.

    https://beta.unity3d.com/download/0612c96692fb/UnitySetup-2019.3.0b6
     
  6. hochl

    hochl

    Joined:
    Sep 15, 2018
    Posts:
    4
    I could not test it either since I managed to circumvent the size check as described above. But thanks for the link, I guess it will help someone :)