0

This question already has an answer here:

  1. I am unable to edit /etc/network/interfaces and /etc/resolv.conf file with vi editor. How can I access the file as a owner?

  2. This is my network settings in Windows 7. I want to configure it in ubuntu 12.10. How can I do this?

    IP address 192.168.40.31
    Subnet mask 255.255.255.0
    Default gateway 192.168.40.1
    Preferred   DNS server 10.230.253.253
    Alternet DNS server 203.147.88.2
    

marked as duplicate by David Foerster, muru, Videonauth, Ron, Eric Carvalho May 17 '16 at 11:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Did you use sudo vi /etc/network/interfaces? – troylatroy Oct 23 '13 at 17:57
  • ya i have done this. but its not working. even i $chmod 777 interfaces also not working. (it is a owner file) can i login as root(owner)?? – user205787 Oct 23 '13 at 18:02
1

Try sudo vi /etc/network/interfaces, and sudo vi /etc/resolv.conf that should let you edit the files.

If that doesn't work, try sudo su enter your password, and try editing the files that way.

  • can i edit it using text file? – user205787 Oct 23 '13 at 18:09
  • 1
    You can do sudo su, and then gedit /etc/network/interfaces – Mitch Oct 23 '13 at 18:14
0

If you are using the desktop edition, you could also right click on the Network-Manager icon at the top right. (It should look like a little computer, Wi-Fi symbol, or a set of up/down arrows) In the menu that pops up choose "edit connections". Then enter your information in a manner similar to Windows.

If you're using server, and have no graphical interface installed you might try
sudo nano /etc/network/interfaces and sudo nano /etc/resolve.conf

Control + O will write the changes and Ctrl + X will exit.

Hope this helps. Have a great day.

Not the answer you're looking for? Browse other questions tagged or ask your own question.