title: Cannot start MonoGame from SSH, but can from GUI
body: <p>So i would like to start a game from my SSH terminal. </p>
  
  <p>Its really wierd, when i do it directly from my linux GUI, it works. But when im connected from distance using a SSH client, it just crash. Seems like it has something to do with my display drivers.</p>
  
  <pre><code>Unhandled Exception:
  System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.DisplayDevice ---&gt; System.IO.DirectoryNotFoundException: Directory '/dev/dri' not found.
    at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean&amp; stop) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFiles (System.String path) [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.CreateDisplay (System.IntPtr&amp; gbm_device, System.IntPtr&amp; egl_display) [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.get_gpu_fd () [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.CreateDisplayDeviceDriver () [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.DisplayDevice..cctor () [0x00000] in &lt;filename unknown&gt;:0 
    --- End of inner exception stack trace ---
    at OpenTK.NativeWindow..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGameWindow.Initialize (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGameWindow..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.Game..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Game1..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Program.RunGame () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Program.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.DisplayDevice ---&gt; System.IO.DirectoryNotFoundException: Directory '/dev/dri' not found.
    at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean&amp; stop) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in &lt;filename unknown&gt;:0 
    at System.IO.Directory.GetFiles (System.String path) [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.CreateDisplay (System.IntPtr&amp; gbm_device, System.IntPtr&amp; egl_display) [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.get_gpu_fd () [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.Platform.Linux.LinuxFactory.CreateDisplayDeviceDriver () [0x00000] in &lt;filename unknown&gt;:0 
    at OpenTK.DisplayDevice..cctor () [0x00000] in &lt;filename unknown&gt;:0 
    --- End of inner exception stack trace ---
    at OpenTK.NativeWindow..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGameWindow.Initialize (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGameWindow..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.OpenTKGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in &lt;filename unknown&gt;:0 
    at Microsoft.Xna.Framework.Game..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Game1..ctor () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Program.RunGame () [0x00000] in &lt;filename unknown&gt;:0 
    at TestGame.Program.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  </code></pre>
  
  <p>I though creating a bash script that would then call itself the method to start the game would do the job, but unfortunately it does the same result.</p>
  
  <p>Basically, when i run the SAME EXACT command in my linux GUI, the game starts with no problem, but when i run the SAME EXACT command from distance in my SSH, the game does not fire up and it just stuck there.</p>
  
  <pre><code>mono /home/pi/.../game/TestGame.exe
  </code></pre>
  
  <p>I am running a Linux Raspbian, on a raspberry PI.
  My raspberry PI is connected on my screen. When plugged with my keyboard it lauches, when trying from my other computer using ssh, it crash giving the error we see up here.</p>
  
  <p>I would appreciate any help.</p>
  
  <p>thanks alot !
  Kevin</p>