-1

So I'm exceptionally new to uBuntu/Linux in general. I've done the install of Linux Mint 15 onto one VM for PoC and then I figured how hard can it be to set up a File Server for this?

I've gotten past the installation and at one point could get through GEDIT, but now that won't work. When I try to run GEDIT, I get:

Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused

Gtk-WARNING **: cannot open display

I tried gksu gedit and that does work (same thing).

To get to where I am now, I followed:

http://www.instructables.com/id/How-to-setup-Samba-file-server/

I'm struggling with all of this; it's all very new, but I'm just trying to get back in to see what happened. I can't find the Share on my Linux Mint VM. I can find the FS luckily though.

closed as off-topic by muru, psusi, andrew.46, Eric Carvalho, Braiam May 14 '16 at 12:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – muru, psusi, andrew.46, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

1

The error you are experiencing is because you are trying to run a GUI application on a non-GUI terminal without a DISPLAY env variable set.

If you can use a visual terminal (like one you can drag around a desktop), use that instead and try sudo gedit or whatever you need to do.

If you are stuck with a tty terminal, or some non-GUI based terminal, try sudo nano to edit files instead of sudo gedit.

You can also try running export DISPLAY=:0. This will tell the non-GUI terminal where to display any GUI application windows (Display :0 is the normal Ctrl + Alt + F7 display).

  • 1
    Also try export DISPLAY=:0 – UniversallyUniqueID May 7 '16 at 8:28
  • @BharadwajRaju Thanks, I'll add that to the answer. – Zzzach... May 7 '16 at 9:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.