{"id":4531,"date":"2017-05-19T22:04:57","date_gmt":"2017-05-19T14:04:57","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4531"},"modified":"2017-05-21T16:28:07","modified_gmt":"2017-05-21T08:28:07","slug":"install-run-unity-in-linux-terminal","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2017\/05\/19\/install-run-unity-in-linux-terminal\/","title":{"rendered":"Install &#038; Run Unity in Linux Terminal"},"content":{"rendered":"<p>see latest releases here: <a href=\"https:\/\/forum.unity3d.com\/threads\/unity-on-linux-release-notes-and-known-issues.350256\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/forum.unity3d.com\/threads\/unity-on-linux-release-notes-and-known-issues.350256\/<\/a><\/p>\n<h4>INSTALL<\/h4>\n<p>&#8211; Login to ssh terminal (i&#8217;m using Ubuntu-14.04.1-LTS-64bit)<br \/>\n&#8211; download package (i took 5.5.3):<\/p>\n<pre>wget http:\/\/beta.unity3d.com\/download\/a2454d41e248\/unity-editor_amd64-5.5.3xf1Linux.deb<\/pre>\n<p>&#8211; install:<\/p>\n<pre>sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb<\/pre>\n<p>&#8211; missing dependencies error..google, help!<br \/>\n&#8211; try:<\/p>\n<pre>sudo apt-get -f install<\/pre>\n<p>&#8211; try:<\/p>\n<pre>sudo apt-get update<\/pre>\n<p>&#8211; try:<\/p>\n<pre>sudo apt-get upgrade -f<\/pre>\n<p>&#8211; try install again:<\/p>\n<pre>sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb<\/pre>\n<p>&#8211; if finished successfully, see where it installed:<\/p>\n<pre>dpkg --contents unity-editor_amd64-5.5.3xf1Linux.deb<\/pre>\n<p>&#8211; looks like install folder is: \/opt\/Unity\/Editor\/<\/p>\n<h4>RUNNING<\/h4>\n<p>&#8211; Go to the folder:<\/p>\n<pre>cd \/opt\/Unity\/Editor\/<\/pre>\n<p>&#8211; try running it:<\/p>\n<pre>.\/Unity -nographics -batchmode -force-free -quit<\/pre>\n<p>&#8211; view editor log to confirm it runs:<\/p>\n<pre>cat ~\/.config\/unity3d\/Editor.log<\/pre>\n<p>&#8211; looks like requires username or activation..<br \/>\n&#8211; &#8220;Failed to activate\/update license. Missing or bad username and password. Please try again using valid credentials or contact&#8221;<br \/>\n&#8211; try running with username:<\/p>\n<pre>.\/Unity -nographics -batchmode -force-free -username ***** -password ***** -quit<\/pre>\n<p>&#8211; &#8220;Failed to activate\/update license. Timeout occured while trying to update license. Please try again later or contact&#8221;<br \/>\n&#8211; maybe its this? <a href=\"https:\/\/issuetracker.unity3d.com\/issues\/new-installed-unity-will-report-timeout-error-in-commandline-activiation\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/issuetracker.unity3d.com\/issues\/new-installed-unity-will-report-timeout-error-in-commandline-activiation<\/a><br \/>\n&#8211; run without batchmode:<\/p>\n<pre>.\/Unity -nographics-force-free -username ***** -password ***** -quit<\/pre>\n<p>&#8211; seems to work! (log looks fine)*<\/p>\n<p>Next steps.. test with real project and some batch script.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>*Update#1:<\/strong><br \/>\nactually still gives that license error if -batchmode parameters is given..<br \/>\nThis might fix, it, but requires starting it manually.. <a href=\"https:\/\/forum.unity3d.com\/threads\/5-4-0p1-fails-to-launch-due-to-license.425277\/#post-2941499\">https:\/\/forum.unity3d.com\/threads\/5-4-0p1-fails-to-launch-due-to-license.425277\/#post-2941499<\/a><\/p>\n<p>some info also, <a href=\"https:\/\/forum.unity3d.com\/threads\/unity-5-3-seems-to-break-batchmode-nographics-on-headless-linux.376074\/\">https:\/\/forum.unity3d.com\/threads\/unity-5-3-seems-to-break-batchmode-nographics-on-headless-linux.376074\/<\/a><\/p>\n<h4>REFERENCES<\/h4>\n<p>&#8211; Unity Commandline parameters: <a href=\"https:\/\/docs.unity3d.com\/Manual\/CommandLineArguments.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.unity3d.com\/Manual\/CommandLineArguments.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>see latest releases here: https:\/\/forum.unity3d.com\/threads\/unity-on-linux-release-notes-and-known-issues.350256\/ INSTALL &#8211; Login to ssh terminal (i&#8217;m using Ubuntu-14.04.1-LTS-64bit) &#8211; download package (i took 5.5.3): wget http:\/\/beta.unity3d.com\/download\/a2454d41e248\/unity-editor_amd64-5.5.3xf1Linux.deb &#8211; install: sudo dpkg -i unity-editor_amd64-5.5.3xf1Linux.deb &#8211; missing dependencies error..google, help! &#8211; try: sudo apt-get -f install &#8211; try: sudo apt-get update &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4532,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[420,3],"tags":[981,978,977,358,975,979,976,980],"class_list":["post-4531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-unity3d","tag-batchmode","tag-cmd","tag-commandline","tag-editor","tag-linux","tag-shell","tag-terminal","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2017\/05\/run-unity-linux-terminal-commandline.jpg?fit=693%2C402&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1b5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4531"}],"version-history":[{"count":16,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4531\/revisions"}],"predecessor-version":[{"id":4552,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4531\/revisions\/4552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4532"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}