19
2017
Install & Run Unity in Linux Terminal
see latest releases here: https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
INSTALL
– Login to ssh terminal (i’m using Ubuntu-14.04.1-LTS-64bit)
– download package (i took 5.5.3):
wget http://beta.unity3d.com/download/a2454d41e248/unity-editor_amd64-5.5.3xf1Linux.deb
– install:
sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb
– missing dependencies error..google, help!
– try:
sudo apt-get -f install
– try:
sudo apt-get update
– try:
sudo apt-get upgrade -f
– try install again:
sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb
– if finished successfully, see where it installed:
dpkg --contents unity-editor_amd64-5.5.3xf1Linux.deb
– looks like install folder is: /opt/Unity/Editor/
RUNNING
– Go to the folder:
cd /opt/Unity/Editor/
– try running it:
./Unity -nographics -batchmode -force-free -quit
– view editor log to confirm it runs:
cat ~/.config/unity3d/Editor.log
– looks like requires username or activation..
– “Failed to activate/update license. Missing or bad username and password. Please try again using valid credentials or contact”
– try running with username:
./Unity -nographics -batchmode -force-free -username ***** -password ***** -quit
– “Failed to activate/update license. Timeout occured while trying to update license. Please try again later or contact”
– maybe its this? https://issuetracker.unity3d.com/issues/new-installed-unity-will-report-timeout-error-in-commandline-activiation
– run without batchmode:
./Unity -nographics-force-free -username ***** -password ***** -quit
– seems to work! (log looks fine)*
Next steps.. test with real project and some batch script.
*Update#1:
actually still gives that license error if -batchmode parameters is given..
This might fix, it, but requires starting it manually.. https://forum.unity3d.com/threads/5-4-0p1-fails-to-launch-due-to-license.425277/#post-2941499
some info also, https://forum.unity3d.com/threads/unity-5-3-seems-to-break-batchmode-nographics-on-headless-linux.376074/
REFERENCES
– Unity Commandline parameters: https://docs.unity3d.com/Manual/CommandLineArguments.html
Related Posts
10 Comments + Add Comment
Leave a comment to mgear
Recent posts
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName
- Testing Unity MUSE AI
- QR Code Generator Online
Running Unity3D in a Virtualized Headless Ubuntu Environment
https://medium.com/@h0lycattle/running-unity3d-in-a-virtualized-headless-ubuntu-environment-1adf95c05994
helper script for running between multiple unity versions
https://forum.unity3d.com/threads/simple-script-for-multiple-unity-installs.488411/
open source tool to Download, Install, Run Unity from the command line
https://forum.unity3d.com/threads/u3d-an-open-source-tool-to-download-install-run-unity-from-the-command-line.491808/
open source tool to Download, Install, Run Unity from the command line
https://github.com/DragonBox/u3d
PowerShell module contains tools for managing and automating your Unity installs and projects
https://github.com/microsoft/unitysetup.powershell
How to run Unity on Amazon Cloud or without Monitor
https://towardsdatascience.com/how-to-run-unity-on-amazon-cloud-or-without-monitor-3c10ce022639
command-line application to manage unity versions
https://github.com/Larusso/unity-version-manager
Script to install Unity 3D versions from the command line on macOS
https://github.com/sttz/install-unity
Installer script for Ubuntu 20.04
https://github.com/boppygames/Unity-Installer-for-Ubuntu
command line parser and options to set editor, build, player, and other Unity settings when running Unity from the command line
https://github.com/Unity-Technologies/com.unity.cli-project-setup