Cannot open Gedit display on Ubuntu Server 12.04

view story

http://askubuntu.com – 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? (HowTos)