I can see what you are trying to do, and understand your frustration. Don't get angry - get even! We'll get there yet.
I do not use gnome (hate it) - I use KDE, which doesn't have
gedit so I am going to ask that you make a big leap of faith and use .....
vi as your editor.
vi has an undeserved reputation as being "difficult" to use, but it is also very powerful and seems to be installed on every *nix system, so it is a real lifesaver.
You only need to learn
three single-letter commands to be able to use it at its most basic level ("
vi for noobs"
).
Here we go:
Become root and start
vi. Do not forget the leading / at the start of /etc/network/interfaces:
Code:
sudo vi /etc/network/interfaces
Use the arrow keys to scroll the cursor down to the bit that says
Code:
iface eth0 inet static
address 220.238.174.30
netmask 255.255.255.0
gateway 211.31.137.129
auto eth0
Now press the letter
i on your keyboard. This will put you in insert mode, so you can enter and delete text. Try typing some text. Now delete that text by using the
Backspace or
Delete keys. Easy, No? Now also delete the five lines in the "Code" box above. Only delete them and nothing else. Don't forget that you can navigate with the
arrow keys on your keyboard.
Now use the
arrow keys on your keyboard to scroll up to the bit that says
Code:
auto eth1
iface eth1 inet dhcp
Change it so it reads like this:
Code:
auto eth0
iface eth0 inet dhcp
Now we need to save the changes. Press the
Escape key on your keyboard.
Then enter
:wq. That means you type a
: then a
w then a
q
Then press
Return, and
vi will save the changes and exit. You are back at the command line.
Explanation: Pressing
Escape takes you out of "Insert mode", the colon means "Here comes a command" the
w means "write the changes I have made back to the file on disk" the
q means "Quit" and pressing
Return makes it all happen.
If you make a big mistake, you can quit vi
without saving changes by pressing
Escape :q!
Meaning "Exit insert mode", "Here comes a command" "Quit" "I know I haven't saved the changes, just do as you're told & QUIT!"
Good. Now the interfaces file is correct.
Do NOT mess with any GUI network managers - they are likely to make (unwanted) changes to the interfaces file we just edited.
Plug in your ethernet cable and issue the following commands:
Code:
sudo ifdown eth0
sudo ifup eth0
Meaning: Become root and bring down the (badly) configured eth0 interface, then
become root and bring up the (now, correctly configured) eth0 interface.
Now try your browser. All OK? It should be.
The ethernet will be brought up automatically next time you boot. (that's the meaning of the "auto eth0" in that interfaces file)