Can't edit files in Lubuntu 13.10

Kneekick

Estimable
Mar 17, 2014
1
0
4,510
Im trying to edit /etc/network/interface file and i was told to use
Code:
gksu gedit /etc/network/interface
But it didnt work, so I tried
Code:
gksu nautilus
didnt work, nothing happens. So I tried
Code:
sudo apt-get install gksu
but it was already installed. Anything i tried to do never made anything happen.
I tried adding myself to root group, and setting my main group to root.
I also tried to run
Code:
gksu PCManFM
And i have tried all with gksudo. I'm new with Linux so please help me out.
 
Solution
The default text editor in LUbuntu is Leafpad. Instead of installing yet another text editor, the easiest solution is to replace "gedit" with "leafpad" in your commands. So:

"sudo gedit /etc/network/interface" would become "sudo leafpad /etc/network/interface"

ahnilated

Distinguished
Nov 9, 2006
189
0
18,660
you need to use sudo to make you have root permissions to edit the interface file. So you need to use a certain editor like vi, vim, or whatever else. So you would type sudo vim /etc/network/interface.

it will ask you to type in a password then put you in the editor
 

mbarnes86

Distinguished
Sep 16, 2010
245
0
19,110
Hi

There is a big learning curve with unix / Linux if you are a Windows user

I assume you have a graphics interface or desktop
When I started with Unix there was no desktop and we had to work from the command line
Then we got x-windows
Now there are a number of different interfaces
Case is vital. gedit is not Gedit in unix/ Linux

First try

gedit

Does it open a text editor window ?
If not this editor is not on path or is not installed

Next if it works gedit /path to file.../file name
gedit /etc/network/interface

Should open text editor with file you need to edit
But you won't have permission to save changes

Sudo seemed to work for you
Did it require you to enter a root password ?
Sudo or equivalent gives you root super user powers just for one command

Try sudo gedit /path to file/file name
See if this now try editing this file
sudo gedit /etc/network/interface

If you have a graphics desktop with a graphics file manager Which works & looks like Windows explorer you can navigate to folder & right click on interface and select edit

The trouble with trying to help you is there are so many versions on Linux and you can choose two or three different desktops

Regards
Mike Barnes
 

Aristotelian

Honorable
Jun 21, 2012
8
0
10,520
The default text editor in LUbuntu is Leafpad. Instead of installing yet another text editor, the easiest solution is to replace "gedit" with "leafpad" in your commands. So:

"sudo gedit /etc/network/interface" would become "sudo leafpad /etc/network/interface"
 
Solution

nss000

Distinguished
Apr 18, 2008
3
0
18,510
Have seen the **gksu** advised, but never understood why. It's only for then neckbeard VIM ? everything else gets sudo(ED) to grab root dibs?! I knew about the "ICEWEASEL" balony, but didn't know about name.changes for basic unix utilities. No GEDIT everywhere ?? Does it get crazy like "awk" --> "sqawk" ???



 

TRENDING THREADS