Re: [ubuntu-uk] Configure Network Manager from Command Line
On 2011-10-18 16:00, Philip Stubbs wrote: > Poking around, I found the /etc/resolv.conf file had nothing in it > except a not saying it was managed by network-manager. Manually adding > a nameserver here fixed my problem, but I am going to guess that it > will disappear again next reboot. How do I make this permanent from > the command line over ssh? Strictly speaking, Network Manager doesn't change /etc/resolv.conf unless it is configured with static DNS information, or uses DHCP to fetch the same. A reboot alone does not cause this to happen. Note also that if you were previously using DHCP on an interface, then later configure it statically in /etc/network/interfaces, that the dhcp-client instance may still be running. It will periodically refresh the address. Kill it manually or reboot. Regards, Tyler -- "An Englishman, even if he is alone, forms an orderly queue of one." -- George Mikes -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Configure Network Manager from Command Line
On 18 October 2011 16:18, Tyler J. Wagner wrote: > List the interfaces in /etc/network/interfaces, and Network Manager will > ignore them. Well, I did have them listed in there. Now I have run sudo update-rc.d -f network-manager remove Lets see if that puts it in its place. :-) -- Philip Stubbs -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Configure Network Manager from Command Line
On 18 October 2011 16:12, Philip Stubbs wrote: > Yes, it is my home server. It did have a GUI installed but that failed > after the Oneiric upgrade. Can't complain about that as it did give a > warning. So, what is the best way to disable Network Manager? Maintain a stanza for the network device in /etc/network/interfaces man interfaces Also maintain /etc/resolv.conf manually. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Configure Network Manager from Command Line
On 2011-10-18 16:12, Philip Stubbs wrote: > Yes, it is my home server. It did have a GUI installed but that failed > after the Oneiric upgrade. Can't complain about that as it did give a > warning. So, what is the best way to disable Network Manager? List the interfaces in /etc/network/interfaces, and Network Manager will ignore them. auto eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1 You can also remove the network-manager package. But you'll need to configure the interfaces manually as above. See also "man interfaces". Regards, Tyler -- "An Englishman, even if he is alone, forms an orderly queue of one." -- George Mikes -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Configure Network Manager from Command Line
On 18 October 2011 16:08, Simon Greenwood wrote: > > Is this a server? I assume you don't have a GUI. There are command line > tools if you Google for them but there isn't one installed by default. > However if it's a server you can configure your system manually and disable > Network Manager, which stops it making changes. > s/ Yes, it is my home server. It did have a GUI installed but that failed after the Oneiric upgrade. Can't complain about that as it did give a warning. So, what is the best way to disable Network Manager? -- Philip Stubbs -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Configure Network Manager from Command Line
On 18 October 2011 16:00, Philip Stubbs wrote: > I have just rebooted a machine, and it lost the ability to resolve > domain names. This machine has 11.10 on it and I have just done an > update today. This suggested a reboot so I did. After that, it forgot > how to resolve domain names. > > Poking around, I found the /etc/resolv.conf file had nothing in it > except a not saying it was managed by network-manager. Manually adding > a nameserver here fixed my problem, but I am going to guess that it > will disappear again next reboot. How do I make this permanent from > the command line over ssh? > > Is this a server? I assume you don't have a GUI. There are command line tools if you Google for them but there isn't one installed by default. However if it's a server you can configure your system manually and disable Network Manager, which stops it making changes. s/ Twitter: @sfgreenwood "post-apocalyptic allen keys" -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] Configure Network Manager from Command Line
I have just rebooted a machine, and it lost the ability to resolve domain names. This machine has 11.10 on it and I have just done an update today. This suggested a reboot so I did. After that, it forgot how to resolve domain names. Poking around, I found the /etc/resolv.conf file had nothing in it except a not saying it was managed by network-manager. Manually adding a nameserver here fixed my problem, but I am going to guess that it will disappear again next reboot. How do I make this permanent from the command line over ssh? -- Philip Stubbs -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/