Как установить unity hub на ubuntu
Перейти к содержимому

Как установить unity hub на ubuntu

  • автор:

Linux. Устанавливаем Unity под Linux (Ubuntu).

В этой статье я расскажу, как установить движок Unity под дистрибутив Ubuntu.

Устанавливаем Unity Hub.

Чтобы установить Unity Hub, выполните следующие комманды в терминале:

sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -
sudo apt update sudo apt-get install unityhub

Теперь, запустите Unity Hub, и через него, установите движок Unity.

Далее, надо создать проект и активировать лицензию.

Однако, кнопка Agree and get personal edition license — не работает (на момент написания статьи).

Поэтому, используем ручную активацию.

Ручная активация лицензии Unity.

Зайдите в папку с движком Unity, она расположена по данному адресу:

/home/имя_пользователя/Unity/Hub/Editor/версия_редактора

Откройте там терминал, и выполните коммаду:

./Unity -batchmode -createManualActivationFile -logfile

Данная комманда сгенерирует alf файл, который нужно загрузить на сайт https://license.unity3d.com/manual.

Далее, в графе Licence, выберите Unity Personal Edition -> I don’t use Unity in a professional capacity. После чего, скачайте ulf файл, им и будем активировать лицензию. Ulf файл поместите в папку, из которой вы открывали терминал.

Для активации лицензии, выполните следующую комманду:

./Unity -batchmode -manualLicenseFile ./ваш_ulf_файл -logfile

Лицензия активирована, осталось перезагрузить Unity Hub, и создать свой проект.

Installing the Unity Hub

The Unity Hub is a management tool that you can use to manage all of your Unity Projects and installations. Use the Hub to manage multiple installations of the Unity Editor along with their associated components, create new Projects, and open existing Projects.

To install the Unity Hub for Windows, macOS, and Linux visit Download Unity on the Unity website.

Unity officially supports the following Linux distributions:

  • Ubuntu 16.04
  • Ubuntu 18.04
  • CentOS 7

Note: If Unity Hub fails to launch while you are using Linux, you might need to give UnityHub.AppImage executable permissions. To do this:

  1. Open your terminal.
  2. Go to the directory where UnityHub.AppImage is. This will be the Unity Hub directory.
  3. Run chmod +x UnityHub.AppImage .

To install and use the Unity Editor, you must have a Unity Developer Network (UDN) account. If you already have an account, sign in, choose your licenses type, and proceed to the Installing the Unity Editor section.

If you do not have an account, follow the prompts to create one. You can choose to create a Unity ID or use one of the social sign-ins. For more information on accounts and subscriptions, see Unity Organizations.

Installing the Unity Editor

To install the Editor:

    Click the Installs tab. The default install locations are: Windows:

C:\Program Files\Unity\Hub\Editor 
/Applications/Unity/Hub/Editor 
~/Unity/Hub/Editor 

Note: If you want to change the default installation location, follow these steps:

  1. From the top right corner of the Hub window, click the Gear icon.
  2. In the Editor Folder Location dialog box, enter the new installation location and click Done.
  • Click the Add button and select a specific version of the Editor. Hub install screen
  • Click the Next button and select the modules you want to install with the Editor. If you don’t install a component now, you can add it later if you need to. When you’ve selected all the modules you need, click Done. Modules install
  • If you are installing multiple Editor versions, the first installation starts as soon as the download is complete. Other selected versions download simultaneously and queue to start when the current installation finishes.

    The Hub displays the installation location of each Editor under the corresponding version label.

    To add modules to an Editor, locate its files, or uninstall it, click the three dots next to that Editor version.

    Modifying an existing Editor install

    Adding existing instances of the Editor to the Hub

    You can add instances of the Editor to the Hub that you installed outside of the Hub.

    1. Click the Installs tab.
    2. Click the Locate button to find existing installations of the Editor.
    3. In the file dialog, navigate to the location of the Editor installation and select the Unity executable. On MacOS this is Unity.app. On Windows this is Unity.exe. On Windows, the typical location of the Unity.exe is:

    C:\Program Files\Unity\Editor\Unity.exe 
    C:\Program Files\Unity\Editor\Unity.exe 

    On macOS, the typical location of the Unity.app is:

    /Applications/Unity/Hub/Editor//Unity.app 

    On Linux, the typical location of the Unity executable file is:

    /home//Unity/Hub/Editor//Unity 

    To remove the Editor from the Hub, click the three dots next to the Editor version. Removing an Editor that you added in this manner does not uninstall it or modify it in any way.

    Troubleshooting for Linux

    If Unity fails to start, you might need to install a missing dependency. On Ubuntu-based distributions, use:

    sudo apt install libgconf-2-4 

    On CentOS, you might need to install the mesa-libGLU dependency. Use:

    sudo yum install mesa-libGLU 

    Support for Editor versions prior to 2017.1

    Sign-in status is not shared for pre–2017.1 versions of the Editor opened through the Hub. Performing tasks such as Manage License, Open Project, Create Project, and Sign in opens the Unity Launcher instead of the Hub.

    If you attempt to use the Unity Hub to open an Editor version 5 or earlier and you do not have an appropriate license file, the Editor will hang on the splash screen.

    To avoid this issue, run the Editor directly, external to the Unity Hub, and the Editor will load correctly even if the license file is not detected.

    Using the Unity Installer to install the Unity Editor

    The Unity installer is a small executable program (approximately 1 MB in size) that lets you select which components of the Unity Editor you want to download and install.

    To install previous versions of the Unity Editor using the Installer, visit the Unity download archive. The archive page provides Unity Installer download links for all released versions of the Editor.

    For additional information on installing the Editor using the Installer, see the 2018.3 version of the Unity Manual.

    • Hub design updated in Unity 2019.1 NewIn20191
    • Linux now available from the Hub in Unity 2019.1 onwards

    Как установить Unity 2020.2.1f1 в Ubuntu 20.04

    Unity, разработанный Unity Technologies, является популярным движком для разработки многоплатформенных 2D- и 3D-игр. Приложения дополненной и виртуальной реальности создаются с использованием Unity. Unity можно использовать и установить в Ubuntu 20.04 через Unity Hub. В этой статье показано, как установить Unity в Ubuntu 20.04.

    Установка Unity в Ubuntu 20.04

    Unity недоступен в стандартном репозитории пакетов Ubuntu 20.04. Поэтому вам нужно будет посетить веб-страницу магазина Unity, чтобы загрузить Unity Hub для Ubuntu 20.04. Unity Hub — это отдельное приложение, отвечающее за загрузку и управление установками и проектами Unity.

    Посетите веб-страницу магазина Unity по следующему URL-адресу: https://unity3d.com/get-unity/download.

    Нажмите кнопку Выберите Unity + загрузить, чтобы загрузить Unity Hub для Ubuntu 20.04.

    Если вы работаете в команде и хотите использовать Unity для профессиональной разработки игр, вам необходимо выбрать план подписки в соответствии с вашими предпочтениями и потребностями.

    Бесплатная версия Unity также доступна для пользователей категории Индивидуальные. Чтобы загрузить бесплатную версию Unity, выберите вариант Индивидуальная и загрузите бесплатную версию. При загрузке бесплатной версии убедитесь, что вы соответствуете заданным критериям приемлемости.

    Если вы являетесь постоянным пользователем, нажмите кнопку Перейти здесь, примите положения и условия на следующем экране и нажмите кнопку Загрузить . Кнопка >Unity Hub.

    Если вы впервые пользуетесь Unity, нажмите кнопку Начать здесь и примите условия, нажав кнопку Согласен и кнопку скачать.

    На следующем экране выберите параметр Сохранить файл и нажмите ОК.

    Файл UnityHub.AppImage будет загружен в каталог Загрузки.

    После загрузки файла перейдите в каталог Загрузки:

    $ cd Downloads

    Далее необходимо сделать файл AppImage исполняемым. Для этого введите следующую команду:

    $ chmod a+x UnityHub.AppImage

    Теперь запустите исполняемый файл AppImage:

    $ . / UnityHub.AppImage

    Прочтите Условия обслуживания Unity и согласитесь с ними.

    Если вы запускаете Unity Hub впервые, нажмите Управление Лицензия и войдите в Unity Hub через Google, Facebook или Single.

    Нажмите Настройки и выберите вкладку Установить.

    Добавьте версию Unity, нажав кнопку Добавить.

    Затем добавьте модули в установку и нажмите Готово.

    Выбранная версия и модули Unity будут установлены.

    После установки версии и модулей Unity перейдите на вкладку Проекты и создайте новый проект.

    Откроется проект Unity, и вы сможете сразу начать создавать игры с помощью Unity.

    Заключение

    Unity — популярный движок для разработки игр, который используется для создания 2D- и 3D-игр. Unity можно установить и использовать в Ubuntu 20.04, загрузив файл Unity Hub AppImage.

    Все права защищены. © Linux-Console.net • 2019-2023

    How can I install Unity Hub on Ubuntu 22.04?

    I have some troubles installing Unity Hub on my Ubuntu 22.04. I’ve followed the instruction from official Unity site, but the hub seem not working well. Only black screen is shown and nothing else. I am very lost with it! 🙁 The following codes has been runned:

    sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list' wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add - sudo apt update sudo apt-get install unityhub 

    Thank you for your reply!
    asked Aug 16, 2022 at 18:43
    141 1 1 silver badge 5 5 bronze badges

    Lately I had the following error: ERROR: Licensing SDK logging callback is not registered. Please use ‘registerLoggingAdapter’ function from the SDK to do so.

    Aug 16, 2022 at 18:44

    3 Answers 3

    To resolve this issue you can install libssl1.1

    I was also facing the same issue so I made an script that make it easy to install Unity hub on Ubuntu latest versions

    #!/bin/bash #Lib issue Ubuntu wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb chmod +x libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list sudo apt-get update sudo apt-get install libssl1.1 #unityhub sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list' wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add - sudo apt update sudo apt-get install unityhub 

    HOW TO USE BASH

    1. Make a file with install.sh on Desktop.
    2. Paste this code on install.sh file.
    3. Open Terminal in «Desktop» location .
    4. type chmod +x install.sh then press Enter.
    5. type ./install.sh and press Enter.
    6. After all the installing, Restart PC and then run UnityHub.

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *