1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. Unity 5.6 is now released.
    Dismiss Notice
  3. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  4. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  5. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice

Perfect install - Fixing most of your issues [Ubuntu]

Discussion in 'Linux Editor' started by A7mdxD, Aug 16, 2016.

  1. A7mdxD

    A7mdxD

    Joined:
    Jul 16, 2016
    Posts:
    3

    Hey there,

    ## This tutorial assumes you don't have unity3d/Mono-develop on your Ubuntu or have some trouble running them. ##

    there are many kinds of issues that you may face during installation of unity on Linux, as it's still in the beta stage. this topic is about fixing most of the problem you are going to face in both app unity or Mono-develop.

    What issues?
    • Recent menu after start-up and stays like that forever.
    • black splash screen and stays like that forever too, or show recent menu.
    • says can't copy from "path" to "path" bla bla bla
    • Mono-develop doesn't open scripts, scripts doesn't open at all.
    • Mono-develop says build error
    • Mono-develop has errors "for me, maybe someone has them too" after installing.
    • IEnumerator is colored in red in Mono-develop & doesn't get executed
    • Mono-develop missing some commands even after linking MonoBehaviour.
    Let's get started.
    How to install Unity on Ubuntu?
    1. Open this, Scroll down to the end to the newest post in the bottom to download the latest version of unity3d
    2. After downloading, You will see a .deb file, Open a terminal window by pressing [Ctrl + Alt + T] then type sudo dpkg -i Downloaded_File_Name.deb , type your ubuntu password & wait for it to get installed. If you get an error, type sudo apt-get install -f. This will install the needed dependencies
    3. Now we need to install Mono-develop because it doesn't come pre-installed with unity as in window, open a terminal window again [Ctrl + Alt + T] , type sudo apt-get install monodevelop & then wait for it to get download & installed or you could download it from Ubuntu Software Center that comes pre-installed with any ubuntu version.
    4. Open unity, Go to edit, Preferences, External tools & External script editor. Click browse then go to this path [ /opt/Unity/MonoDevelop/bin & choose MonoDevelop.exe.
    5. Now everything is just fine, but Unity shows recent menu for many people, or a black splash screen, Open a terminal window, Type sudo nautilus to open the file manager as root. go to /opt/Unity/Editor & open Unity, it will open as sudo and prompt you , just click continue & it will open.
    6. Mono-develop has many errors and bugs, try typing IEnumerator, It will get colored in red saying that it's missing from the current context. Open a terminal window [Ctrl + Alt + T] , now type sudo get build-dep monodevelop , it will get all needs for Mono-develop & now everything is ready to go.
    7. now, to fix IEnumerator red color and some other missing codes, you need install mono 2.0 and 4.0 by typing sudo apt-get install mono-reference-assemblies-2.0 and sudo apt-get install mono-reference-assemblies-4.0 then re-open Mono-develop
    8. Contact me if you have an error which you can't fix.
    9. License fix coming soon here.
     
    Last edited: Aug 16, 2016
  2. Lep0le

    Lep0le

    Joined:
    Feb 7, 2017
    Posts:
    1
  3. tommel1234

    tommel1234

    Joined:
    Jan 5, 2017
    Posts:
    8
    Thank for your help ! I succeeded to fix my List and IEnumerator problem !
     
  4. jvetulani

    jvetulani

    Joined:
    Dec 20, 2016
    Posts:
    4
    Hi!

    How would you, correctly, change the default install location of Unity on Ubuntu 16.04?
    The 6 gigs is a little hard on the main partition, which usually doesn't need that much space...
     
  5. Seeker2921

    Seeker2921

    Joined:
    Jan 30, 2017
    Posts:
    4
    I am fairly certain that you cannot easily change the install location if installing via the .deb if at all. Perhaps if you install via the script you can modify the script prior to install to change the location and setup the paths correctly.
     
  6. luciusclay

    luciusclay

    Joined:
    Jan 27, 2017
    Posts:
    9
    I wonder why monodevelop is not listed as a dependency of Unity?
     
  7. luciusclay

    luciusclay

    Joined:
    Jan 27, 2017
    Posts:
    9
    The .sh install script will unpack Unity to whatever path you unpack it in, so you could use that. The downside is that you'll need to install all of the dependencies by hand instead of using apt install -f to handle it for you.
    Alternatively, you could just move the /opt/Unity folder somewhere else and see what happens.... Or mount another drive to /opt I guess?
     
  8. jvetulani

    jvetulani

    Joined:
    Dec 20, 2016
    Posts:
    4
    Hi, thanks for the replies.
    Yeah I went with the .sh installer, it'll install to wherever you put the installer file. The two .desktop files bundled with it need to be modified for a proper path to the executables, and then you can put them whenever you need them to be visible in the system.

    The .desktop files need to be edited in this way:
    For both Unity and Mono Develop change the EXEC path. you can only use one EXEC command, the unity-editor.desktop file has TWO, leave the one with %U.
    For both Unity and Mono Develop remove the version line.
    For both Unity and Mono Develop remove Application; from Categories.

    Install both files with sudo desktop-file-install unity-editor.desktop unity-monodevelop.desktop

    After that both are available from the dash.
     
  9. amirishere

    amirishere

    Joined:
    Feb 17, 2017
    Posts:
    1
    I get this error in the console on startup:

    Couldn't open /opt/Unity/Editor/Data/UnityExtensions/Unity/VR/Android/AudioPluginOculusSpatializer.so, error: /opt/Unity/Editor/Data/UnityExtensions/Unity/VR/Android/AudioPluginOculusSpatializer.so: wrong ELF class: ELFCLASS32

    I get it from a fresh install of 5.5.1xf1Linux and 5.6.0xb8Linux. moving the said file fixes the issue.
     
  10. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    235
    typing "sudo get build-dep monodevelop" gives "sudo: get: command not found"
     
  11. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    235
    OK figured it think it should be "sudo apt-get build-dep monodevelop", sorry I'm being stupid.
     
  12. phong-genix

    phong-genix

    Joined:
    Oct 28, 2015
    Posts:
    91
    Last edited: Feb 24, 2017
  13. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    235
  14. phong-genix

    phong-genix

    Joined:
    Oct 28, 2015
    Posts:
    91
    Thanks. I also posted on that thread.
    Btw, I removed 5.6 and re-installed 5.5.1f1 and it worked for me.