How to change IP in Ubuntu without GUI?

Red Squirrel

No Lifer
May 24, 2003
70,148
13,565
126
www.anyf.ca
When I first setup my HTPC I set a static IP using the GUI, now that it's setup it has no keyboard and mouse, just a remote, so short of ripping it out of the cabinet and hooking it up to my workbench, I do not have GUI access to it.

When using the GUI, where is the information stored? Is it a file I can just go edit, or is it deep embedded somewhere in a non human readable format? I looked at /etc/network/interfaces but it has nothing of interest in it. Same with /etc/networks. No IP info or anything. Any other place I should check?
 

Red Squirrel

No Lifer
May 24, 2003
70,148
13,565
126
www.anyf.ca
In RH that's how it is (/etc/sysconfig/network-scripts), but there's no sysconfig folder in ubuntu/debian. Using ifconfig makes the changes temporary right, or is it permanent?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It should be /etc/network/interfaces, unless they moved it recently. Maybe it's part of NetworkManager now?

The version of Ubuntu that you're using would be nice to know...
 

Red Squirrel

No Lifer
May 24, 2003
70,148
13,565
126
www.anyf.ca
It's 10.10.

This is all I get in the config file:

Code:
root@htpc:~# cat /etc/network/interfaces 
auto lo
iface lo inet loopback
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That's the NetworkManager crap, it's nice for a laptop but gets in the way for servers, IMO. And there's a chkconfig package that you can install, but I never do because that's really just a RH-specific thing.