LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   get gedit to work (https://www.linuxquestions.org/questions/linux-newbie-8/get-gedit-to-work-4175472030/)

Fred Caro 08-03-2013 09:34 PM

get gedit to work
 
Hello,
I installed Debian7 with just the cli working then added gnome-session and the window manager. After this I added gedit but it will not edit configuration files but nano will. I want to use gedit to do this, is there a way to do this without adding gnome-core?

Fred.

jdkaye 08-04-2013 12:37 AM

Your description of the problem is a bit vague. Can you tell us exactly what you did. Were you working from the command line as with nano? If you were using a gui did you invoke it with gksu or gksudo? I suspect a permissions issue. Am I right?
jdk

lleb 08-04-2013 03:16 AM

Quote:

Originally Posted by Fred Caro (Post 5002463)
Hello,
I installed Debian7 with just the cli working then added gnome-session and the window manager. After this I added gedit but it will not edit configuration files but nano will. I want to use gedit to do this, is there a way to do this without adding gnome-core?

Fred.

no if you do not have some full vs of a GUI, you will not have access to gedit. it does not sound like you have fully enabled X11. until you perform that task, gedit will be out of your reach. if you with to edit via the CLI, use vi or vim.

Fred Caro 08-06-2013 02:51 PM

Getting gedit to work
 
Thanks, I had forgotten about gksu. When invoked with gk, gedit worked but the cli complained a bit:


fred@debianpish:/etc/snort$ gksu gedit snort.debian.conf

(gedit:3679): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


(gedit:3679): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.KSIR1W': No such file or directory

(gedit:3679): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:3679): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.RF0O1W': No such file or directory

(gedit:3679): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:3679): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.HA7T1W': No such file or directory

(gedit:3679): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
fred@debianpish:/etc/snort$


This does n't look good but it did make the desired changes to snort. When I did the same thing using nano it also worked but without the warnings. I'm not sure why this is.
I do like the present set in that I don't have loads of programs that I will never use but need to sort the errors.

Fred.


All times are GMT -5. The time now is 11:42 PM.