Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
1  
Have you installed the GUI? (can you see windows and desktop or only a terminal) –  Lucio Sep 10 '12 at 3:22

3 Answers 3

I used nano instead of gedit.

sudo nano /etc/samba/smb.conf

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

share|improve this answer

If you are accessing your server from a workstation using ssh, then you can't use graphical applications unless you set your DISPLAY variable to point to your workstation's X-Server. For system administrators, I would recommend learning your way around the vim editor. The learning curve is a bit steep in the beginning, but it's well worth it.

share|improve this answer

You can use nano or vim for editing configuration files. Both are preinstalled on ubuntu server 12.04.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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