Fedora :: Can't Open Text File With Gedit As Root
Jun 6, 2011I can do it with mousepad. Below is what I get when trying to open with gedit
[Code]...
I can do it with mousepad. Below is what I get when trying to open with gedit
[Code]...
What is it gedit uses additional that causes so many problems in root account? When run Code: # gedit /some/file it either doesn't open file at all or opens it with lots of errors...
View 3 Replies View RelatedWhenever i try sudo gedit I get: Cannot open display: Run 'gedit --help' to see a full list of available command line options. how I can open gedit as root.
View 9 Replies View RelatedI've been searching for a permanent solution for some time now, but the threads containing the same error message never seem to be about the same issue.I want to:I'm not trying anything fancy, all I want to do is open a write-protected file with gedit as root, like so:
Code:
# sudo gedit /usr/bin/deadbeef
..but every time I try, no matter the file, I get this error message:
Code:
(gedit: [process #] ): Gtk-WARNING **: cannot open display
I already know: I can circumvent this by going:
Code:
# xhost +local:root
# sudo su
# export DISPLAY=:0.0
[code].....
Strange line of text appeared on open gedit page on first use after upgrade from 10.04 t0 10.10. I was reading something and copypasting the odd bit onto a gedit note: left the room, returned to find blank page except for "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn". Then I saw that it was just the tail-end of a longer line which had stretched the page width to max, and by deleting backwards I arrived beneath my intact notes. The line was "I[my bolding]nnnnnnnnnn...nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnby v9898". I googled v9898. And there's a v9898. com. It provides something for Windows systems.
View 1 Replies View RelatedUsing the latest version of Ubuntu desktop on an emachine t5062 if it matters. I have a text file of keywords that is one-three words line after line for like 5000 lines. How would I go about adding a word to each line.Aside from typing it in or copying and pasting.If it can`t be done with Gedit I am all for using another program.
View 8 Replies View RelatedI have text files (.txt) to open with gedit but every time I try to open a text file it says:
Code:
Do you want to run "Installed programs", or display its contents?
And if I press Display it will open. How do I make it open automatically?
Ok, so I'm trying to do this: [URL]
The problem is, when I get to the part where I have to open the file in gedit, it says it can't open it, file not found, or something or other..So, when I manually browse to the directory '.local/share/..' there is no folder named 'applications,' only a text file. When I open it, it appears to be the home launcher file, but its in the wrong place and has the wrong name. What's going on? Shouldn't there be a folder there with my applications in it?
How do I get rid of this new tab when I open gedit with some file? Because that tab has "*" in it which means I need to reject save-confirmation every time I exit gedit.
View 1 Replies View RelatedI set-up my Sudo it works but when I use Gedit I get the following message
Jean-Luc@localhost:~> sudo gedit /etc/fstab
(gedit:7137): Gtk-WARNING **: cannot open display:
samething with /etc/sudoers
If I use vi it's ok, I can modify and save. In Fedora it run ok, but with opensuse?
i recently installed Fedora 14 and when i'm trying to open any file i'm getting this error
[root@blitz Documents]# gedit /home/blitz/Desktop/test
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection-
[code]....
I am trying to make wine work for explorer. I followed some instructions on this link [URL] To follow this link, I am supposed to
cd ~/ies4linux/ie6
cp user.reg ~/user.reg.old
gedit user.reg
1st and 2nd line went well 3rd line when I try to execute the command gedit user.reg (gedit:2573): Gtk-WARNING ** cannot open display I then /ies4linux/ie6# ls dosdevices(in blue) drive_c(in blue) system.reg(in white) userdef.reg(in green) user.reg
I know GEdit has a bug which prevents it from opening a file with null () characters in it. This is a huge inconvenience for me because I frequently have to open big log files with only a couple rogue 's in them.
Sometimes I just run a quick tr -d '' < file.log > file.log.correct and open the correct file. This is a big nuisance. I would like to have maybe an external tool in GEdit that would execute the above command. I tried writing an external tool action (GEdit plugin) using just:
#!/bin/bash
tr -d ''
Input is "current document", output action is "replace current document". But this isn't working. When I open the file, GEdit shows the familiar red warning; activating the external tool with the warning showing apparently has no effect (I think the script is being called but its input/output are not set).
getting this error when I try to use gedit to open and edit a file through terminal: (gedit:4423): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]... 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) GConf Error: Failed I'm using ubuntu 10.04.
View 5 Replies View RelatedopenSUSE 11.2 Simple Chinese is supported as second language. the primary language is English. But I can't open Chinese file using gedit. it only support English? how can I solve this issue? the Chinese file is GB18030 encoding.
View 5 Replies View RelatedIf a file is opened from the common prompt with something like:
gedit somefile &
Is there a way to close somefile while leaving the instance of gedit still open? My idea is that sometimes I will have more than one file open in gedit. I run a script daily that updates to a log file. The log file is then opened and viewed with gedit.
Just did a fresh install of fedora 14 (laughlin). I want to run gedit as root ... that's my prefered way for creating and adjusting system config files. Now I'm very stuck ... can't even access yum.conf to set keepcache. I get:
Code: (gedit:2598): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported ** GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
I'm trying to use gedit as root to edit some config files, but everytime I try to open it, I get this mess. I had a similar issue with debian, and someone solved it by telling my to run gksu nautilus. I tried to run gksu gedit, but apparently that doesn't work on Fedora. I really like Fedora, and I want to stick with it, but if I can't edit these files, I'm going to have issues.
Code:
[kevin@senbonsakura ~]$ su
Password:
[root@senbonsakura kevin]# gedit
[Code]....
When trying to use gedit in su mode get this:
Code:
(gedit:2340): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**
[Code]....
tried removing and reinstalling but no change
any other options or a way to boot the graphic mode in root?
Is there a way to fix this ? I need to be able to edit files with root privileges, not to mention that I don't want it to make any backups ( can be turned off ).
View 3 Replies View RelatedEvery time I invoke gedit from the root terminal I get:-
[AnOther@FSLServer ~]$ su
Password:
[root@FSLServer AnOther]# gedit
(gedit:6447): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
followed by 33 occurrences of:-
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)gedit opens fine but it seems really odd. My exposure to linux is not vast but this has never happened before Fedora12 It doesn't happen if I just use the terminal as an ordinary user.It also has nothing to do with the Bad & Ugly Gstreamer plugins as this happened from the moment the system was installed from the DVD and before the plugins were loaded even after removing them and rebooting I still get the ream of GConf errors if I start Gedit after su,
I want to change gedit font size and color scheme as root but the font is locked out and when selecting a color scheme I get the following error: ** (gedit:2562): CRITICAL **: gedit_prefs_manager_set_string: assertion `gconf_client_key_is_writable ( gedit_prefs_manager->gconf_client, key, NULL)' failed How can I get around this?
View 2 Replies View RelatedEveryone is wondering why we can't run gEdit and other tools from a terminal by logging in as root(e.g"su-"), I understand that by making changes they are trying to force us as users of Linux to learn better habits that are more secure, but the issues are driving people nuts!
I for one really like being able to log as root and open gEdit to make drive changes without having to login as root, I would normally still have access to all my things like email etc. So changing Linux to force everyone to not use tools like gEdit as root is becoming more of an inconvenience than they realize, there must be a safe way to do this!
I get error when trying to open files with gedit from terminal, here the esteps:
Code:
1. Open Terminal
2. Show: [tgp@nobocanuser ~]$
3. type: su
4. password: ******
5. Show: [root@nobocanuser tgp]#
6. Type: gedit /etc/X11/xorg.conf (or another file to edit)
7. Show: (gedit:2687): EggSMClient-WARNING **: Failed to connect to the session
manager: None of the authentication protocols specified are supported
[Code]...
When I try and run gedit command through terminal to edit files it won't open them
Quote: (gedit:4113): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
i want to install skype and have to do it maually, but when i type gedit /etc/yum.repos.d/skype.repo in terminal i get this error:
[root@rkxl rishi]# gedit /etc/yum.repos.d/skype.repo
(gedit:5256): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted (core dumped)
[root@rkxl rishi]#
[Code]...
I use Fedora 14 and with Fedora 13 i didn have this problem. I am using Fedora for about six months.
how to verify if the file is binary or text without to open the file
View 2 Replies View RelatedI work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
View 6 Replies View RelatedIf i type gedit while as root it give this warningQuote:(gedit:5655): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supportedGConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)And over the time, the paragraph block from GConf Error.... to ...was broken is repeated again and again
View 2 Replies View RelatedI put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?
View 6 Replies View Related