May
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


10 Comments + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.