Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
3 answers
99 views

Ubuntu 24.10, sudo: gedit: command not found

I am attempting to follow instructions for editing /etc/fstab at https://help.ubuntu.com/community/Partitioning/Home/Moving. I get the following error message: steven@steven-Vostro-7620:~$ sudo cp /...
Steven Lindsay's user avatar
0 votes
0 answers
187 views

E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/winehq.list E: The list of sources could not be read [duplicate]

line 1 does not contain anything I have checked this by using sudo gedit /etc/apt/sources.list command. Got this error during repository update.
X.0A's user avatar
  • 1
0 votes
1 answer
266 views

While installing Hadoop in ubuntu for the command '$sudo gedit ~/.bashrc' I'm getting unable to init server: Could not connect: Connection refused

Here is picture of my command and it's error
Premkumar Elukati's user avatar
0 votes
0 answers
37 views

Problem in installation of gedit in Ubuntu18.04 LTS on Windows 10 [duplicate]

I downloaded Ubuntu from the Microsoft Store and I have installed it. I tried downloading gedit using $ sudo apt install gedit I got this problem: How do I resolve this problem? EDIT: Attempts to ...
yashwanth alapati's user avatar
10 votes
2 answers
2k views

Can there ever be any problem when using gedit to edit system files with 'sudo -H gedit'?

I am relatively new to Ubuntu, I noticed that in answers on this site, when people suggest editing system files, the command they give is always sudo nano or sudo vi. Because I dislike using terminal ...
shinobody's user avatar
  • 368
1 vote
1 answer
8k views

Edit the /etc/sudoers file to provide permission to Jenkins

I need to edit the /etc/sudoers file using the command: sudo gedit /etc/sudoers and add the below: jenkins ALL=(ALL) NOPASSWD: ALL Post adding and trying to save I am getting the error: (...
Sanjay Mahajan's user avatar
0 votes
1 answer
4k views

Cannot open display error when I run sudo gedit on Ubuntu 14.04.5

solitude@Solitude:~/Desktop$ sudo gedit ~/.bashrc error: XDG_RUNTIME_DIR not set in the environment. (gedit:12631): Gtk-WARNING **: cannot open display:
Varun Sahdev's user avatar
4 votes
2 answers
2k views

Create user ID `root` to force `gedit` to create user configuration file

When using sudo powers and calling gedit the top level menu with File Edit View Search Tools Documents Help is missing. If I create user ID root and sign in once and call gedit will it create the ...
WinEunuuchs2Unix's user avatar
2 votes
3 answers
2k views

I can't add a background image to grub : permission denied

I'm trying to add a BACKGROUND_IMAGE to GRUB, so I edited grub-mkconfig using gedit. After saving, I updated it, result is below: sudo update-grub [sudo] password for harish: /usr/sbin/grub-mkconfig:...
harish's user avatar
  • 69
23 votes
4 answers
150k views

"Set document metadata failed" when I run sudo gedit

I have upgraded 14.04 to 16.04 . Now I am trying to open the gedit from terminal by passing the command: sudo gedit /some/where/file.txt but it is throwing an error stating that: (gedit:2090): ...
alok_007's user avatar
  • 331
3 votes
1 answer
3k views

No menu bar in gedit 3.18.3 on Ubuntu 16.04 [duplicate]

Gedit usually shows the menu bar when the mouse is hovered over the top of Unity (desktop) no matter where or how gedit is displayed. This is ok. When started from terminal using sudo gedit there ...
Colin Fiat's user avatar
1 vote
1 answer
1k views

Open a file with gedit over ssh

I am trying to display a file with gedit, from my home, when connected to ssh in a machine of my uni. However, something is wrong with permissions. gsamaras@gsamaras:~$ ssh -X [email protected] ...
gsamaras's user avatar
  • 605
9 votes
2 answers
3k views

What specific bad things happen when gedit is used with sudo?

I read this answer explaining that "sometimes" root can own something at /home/$USER directory. Can anyone give an example how to prove it. Just give a test case when something really bad happens, ...
Pilot6's user avatar
  • 91.4k
0 votes
2 answers
3k views

gedit problem when open by terminal

when I open terminal and run the command sudo gedit first.cpp it shows this error in terminal: (gedit:24589): IBUS-WARNING **: The owner of /home/bonny/.config/ibus/bus is not root! (gedit:24589): ...
user300728's user avatar
2 votes
2 answers
3k views

Sudo gedit error

** (gedit:8315): CRITICAL **: file log.c: line 980: unexpected error: Error calling StartServiceByName for org.gnome.zeitgeist.Engine: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process ...
eshwar's user avatar
  • 808
21 votes
6 answers
96k views

Can't open Gedit as root

When I run sudo gedit /path/to/some/random/file I get the following error ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --...
Parto's user avatar
  • 15.5k
2 votes
1 answer
372 views

help cannot change inotify watch number because file cant be over written

so I'm trying to start using lsyncd for a more up to date backup system. the problem that i have run into is that the directory that i have to backup contains more than 250,000 items and i would like ...
Paul's user avatar
  • 53
3 votes
2 answers
5k views

How can I run sudo gedit as gksu gedit

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake? I have found that I have made a number of files unreachable by using gedit and I have only just ...
Simon's user avatar
  • 4,833
1 vote
1 answer
4k views

gedit tool bar missing unless running as sudo

I'm really new and from the dark side (Windows)... I must be doing something wrong. The only way I can get gedit to run with a tool bar (Save As etc.) is to launch it with sudo from a terminal. I ...
Pablo's user avatar
  • 113
2 votes
2 answers
11k views

"EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported"

I am on ubuntu 12.10. Every time that I try to open gedit on root this appears: (gedit:3254): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols ...
André's user avatar
  • 23
2 votes
2 answers
6k views

Unable to launch gedit with sudo

While trying to follow these instructions, I encountered the following error while attempting what seems like a simple sudo edit operation: $ sudo gedit /var/lib/dpkg/status ** (gedit:14898): ...
Bill Cheatham's user avatar
4 votes
2 answers
195 views

I have 2 different GEdits?

When I load GEdit, it is different from sudo GEdit. Normal GEdit gives me Gtk warnings in the console, and ithas a different look. When I install plugins on either version, it doesn't reflect on the ...
aserwin's user avatar
  • 246
3 votes
1 answer
22k views

How can I edit my httpd.conf file?

I have XAMPP installed, and need to edit my httpd.conf file to add a virtual host block. If I right-click on the file in Nautilus and open with gedit, I can see all the content, but it's read-only. ...
EmmyS's user avatar
  • 16.6k