Ubuntu – Cannot open Gedit display on Ubuntu Server 12.04

12.04geditserver

I just installed Ubuntu Server 12.04 32 bit. I need to perform the following command in a terminal window:

sudo gedit /etc/samba/smb.conf

First the gedit command did not work; therefore, I did:

sudo apt-get install gedit

Then I typed sudo gedit /etc/samba.smb.conf and now I am getting: Cannot open display

Can anyone help?

Best Answer

I used nano instead of gedit.

sudo nano /etc/samba/smb.conf

Woo hoo, my Ubuntu Server is now working!! :)