PDA

View Full Version : [ubuntu] GtK WARNING/ Please help



M-ManLA
April 8th, 2010, 12:28 PM
I am still learning the ropes on Ubuntu server. I am trying to set up samba, but when I use the "gedit" command, I get this error:



GtK-WARNING **: cannot open display
I had installed the gedit command by using apt-get and aptitude, but still no luck. Please help men

PS I am using virtualbox to test Ubuntu Server 9.10. All help is very appreciated.

CharlesA
April 8th, 2010, 01:52 PM
Does the machine have a GUI? That error usually means that you haven't installed or launched an X session (since gedit is a graphical program, not text based)

cdenley
April 8th, 2010, 01:54 PM
"nano" is a text-based text editor.


sudo nano /etc/samba/smb.conf

M-ManLA
April 9th, 2010, 06:55 AM
Oh Thank you guys. I was reading and every site I read said use gedit. But I'm using command lines. Thanks. That was frustrating. Now, to create files on it...