Re: How do I disable NetworkManager in favor of dhcp setup?
On Thursday, 8 בMarch 2012 14:04:37 Tzafrir Cohen wrote: Reference: http://projects.gnome.org/NetworkManager/developers/api/09/ref-settings.html Sadly I did not see any progress in http://bugs.debian.org/637769 Thanks for the pointer. Let's see how long does it take: https://bugzilla.redhat.com/show_bug.cgi?id=801735 -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://users.actcom.co.il/~oron Free software: each person contributes a brick, but ultimately each person receives a house in return. -- Brendan Scott ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
On Wed, Mar 07, 2012 at 09:02:27PM -0800, Michael Shiloh wrote: And what about those of us on embedded systems or others that offer only text-based interfaces? I'm trying to solve exactly this problem on a BeagleBoard via ssh, and can not use the GUI. On my laptop I moved at some point to NetworkManager, but decided not to use the GUI. I only use configuration files from /etc/NetworkManager/system-connections . $ cat /var/lib/NetworkManager/NetworkManager.state [main] NetworkingEnabled=true WirelessEnabled=true WWANEnabled=true Be sure to enable the parts you want enabled (wireless, wwan) here. I configure the wired network interface(s) in /etc/network/interfaces: allow-hotplug eth0 iface eth0 inet dhcp I also have some manual settings there. Then you need a configuration file. The name of the file can be arbitrary, but I name it the same as the name of the connection. $ cat /etc/NetworkManager/system-connections/example_wireless_plain [connection] type=802-11-wireless id=example_wireless_plain # You MUST set a different uuid for each connection. Don't copy it: # cat /proc/sys/kernel/random/uuid # or whatever #uuid=8609b858-69b1-4ca6-adbe-7dcd47cb8711 [802-11-wireless] ssid=TheirEssID $ cat /etc/NetworkManager/system-connections/example_wpa2 [connection] type=802-11-wireless id=example_wpa2 # You MUST set a different uuid for each connection. Don't copy it: # cat /proc/sys/kernel/random/uuid # or whatever #uuid=ca9e4d19-a06f-4c7e-b0db-9f27c1792ba1 [802-11-wireless] ssid=AnotherEssID mode=infrastructure security=802-11-wireless-security [802-11-wireless-security] key-mgmt=wpa-psk psk=The Password Those two stanzas covered some 99% of the cases for me. Scanning is still more cumbersome, though. I never did get to autemate generating a config. Shouldn't be complicated, though. Reference: http://projects.gnome.org/NetworkManager/developers/api/09/ref-settings.html Sadly I did not see any progress in http://bugs.debian.org/637769 . -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best tzaf...@debian.org|| friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
I have nothing much against network manager, especially these days with wifi and wpa etc which is a mess to setup manually. On a laptop it's a lifesaver (although I always get into trouble when I try to manually set an IP address). It's just that with a server (or even a remotely accessed desktop), that has a single wired Ethernet connection, it's an overkill and causes problems if it requires actual local user logon before it has a network. And if it's a headless machine, that is not even an option. Anyways, thanks for the pointers, trying them out now. For some reason, the machine doesn't seem to actually reboot when I type reboot from the ssh terminal, but rather it just logs out, so it takes some time to get feedback (I need someone there physically to reboot). Thanks On 08/03/12 06:47, Shachar Shemesh wrote: On 03/08/2012 12:21 AM, Micha wrote: I believe I pinpointed the problem tp NetworkManager being installed and enabled, which means that no network connection is actually configured before a user is logged in. No, it does not mean that at all. Simply set your eth0 connection to be a "system connection" to resolve your problem. On a wider note, I, too, used to hate Network Manager. It seemed like such an over complication in relation to such things as: /etc/network/interfaces doesn't exist, so I'm not sure how this is supposed to be achieved these days (under debian it's still there, just not active by default). The thing that finally broke me in was the utter impossibility of setting up a WPA connection without it. It was then easier to learn how to live with it than to fight its installation (and, on Debian, all you really have to do is uninstall it, and perhaps also avahi, which I still hate). The thing is, network manager brings unity (I know, bad pun) to an area that used to diverge so much between the distributions. I can't really call that a bad thing. Unlike what its reputation suggests, the global configuration isn't so cryptic. Just create a text file under /etc/NetworkManager/system-connections. Ugly uppercase apart - quite straight forward. I'd like the GUI managers to be more consistent, but that is really a minor quibble compared to the situation before NM. Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
I've had luck with 'sudo telinit 6' in cases where the reboot command failed. There's also a /proc variable that will force a reboot when written to, but its name escapes me for the moment. Rony Anyways, thanks for the pointers, trying them out now. For some reason, the machine doesn't seem to actually reboot when I type reboot from the ssh terminal, but rather it just logs out, so it takes some time to get feedback (I need someone there physically to reboot). -- Ubi dubium, ibi libertas (where there is doubt, there is freedom) ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
On Thu, Mar 08, 2012 at 06:09:33PM +0200, ronys wrote: I've had luck with 'sudo telinit 6' in cases where the reboot command failed. There's also a /proc variable that will force a reboot when written to, but its name escapes me for the moment. /proc/sysrq-trigger Read 'man proc' Also note that writing 'b' to it is similar to unplugging the power cord, so use with caution. If you suspect a normal reboot won't work you might want to write there 's' (sync), 'u' (umount/mount readonly), then 'b' (boot). I know there are people that are used to even more complex sequences... -- Didi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
How do I disable NetworkManager in favor of dhcp setup?
I have a redhat 6 desktop based system that exhibits a behavior where sshd fails to start on startup despite being enabled and requires manual startup after user login. I want to enable remote access before there is actual user login on the system I believe I pinpointed the problem tp NetworkManager being installed and enabled, which means that no network connection is actually configured before a user is logged in. I want to know how to remove NetworkManager and enable automatic network connection startup before sshd is started. /etc/network/interfaces doesn't exist, so I'm not sure how this is supposed to be achieved these days (under debian it's still there, just not active by default). It used to be possible to define the interface as auto dhcp in there to get the behavior I want. Will just adding that file do the trick is it supposed to be done differently? Thanks ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
On Thu, Mar 08, 2012 at 12:21:02AM +0200, Micha wrote: I have a redhat 6 desktop based system that exhibits a behavior where sshd fails to start on startup despite being enabled and requires manual startup after user login. I want to enable remote access before there is actual user login on the system I believe I pinpointed the problem tp NetworkManager being installed and enabled, which means that no network connection is actually configured before a user is logged in. I want to know how to remove NetworkManager and enable automatic network connection startup before sshd is started. /etc/network/interfaces doesn't exist, so I'm not sure how this is supposed to be achieved these days (under debian it's still there, just not active by default). It used to be possible to define the interface as auto dhcp in there to get the behavior I want. Will just adding that file do the trick is it supposed to be done differently? On RedHat it's in /etc/sysconfig/network-scripts/ifcfg-interface-name, see 'man ifup' there. A working (for me, currently) example: /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 NM_CONTROLLED=yes ONBOOT=yes HWADDR=xx:xx:xx:xx:xx:xx TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME=System eth0 UUID=---- Note that although the above says 'NM_CONTROLLED=yes', I do not have NetworkManager installed so I do not know if it affects anything. -- Didi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
On 03/08/2012 12:21 AM, Micha wrote: I believe I pinpointed the problem tp NetworkManager being installed and enabled, which means that no network connection is actually configured before a user is logged in. No, it does not mean that at all. Simply set your eth0 connection to be a system connection to resolve your problem. On a wider note, I, too, used to hate Network Manager. It seemed like such an over complication in relation to such things as: /etc/network/interfaces doesn't exist, so I'm not sure how this is supposed to be achieved these days (under debian it's still there, just not active by default). The thing that finally broke me in was the utter impossibility of setting up a WPA connection without it. It was then easier to learn how to live with it than to fight its installation (and, on Debian, all you really have to do is uninstall it, and perhaps also avahi, which I still hate). The thing is, network manager brings unity (I know, bad pun) to an area that used to diverge so much between the distributions. I can't really call that a bad thing. Unlike what its reputation suggests, the global configuration isn't so cryptic. Just create a text file under /etc/NetworkManager/system-connections. Ugly uppercase apart - quite straight forward. I'd like the GUI managers to be more consistent, but that is really a minor quibble compared to the situation before NM. Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I disable NetworkManager in favor of dhcp setup?
On 03/07/2012 08:47 PM, Shachar Shemesh wrote: On 03/08/2012 12:21 AM, Micha wrote: I believe I pinpointed the problem tp NetworkManager being installed and enabled, which means that no network connection is actually configured before a user is logged in. No, it does not mean that at all. Simply set your eth0 connection to be a system connection to resolve your problem. On a wider note, I, too, used to hate Network Manager. It seemed like such an over complication in relation to such things as: /etc/network/interfaces doesn't exist, so I'm not sure how this is supposed to be achieved these days (under debian it's still there, just not active by default). The thing that finally broke me in was the utter impossibility of setting up a WPA connection without it. It was then easier to learn how to live with it than to fight its installation (and, on Debian, all you really have to do is uninstall it, and perhaps also avahi, which I still hate). The thing is, network manager brings unity (I know, bad pun) to an area that used to diverge so much between the distributions. I can't really call that a bad thing. Unlike what its reputation suggests, the global configuration isn't so cryptic. Just create a text file under /etc/NetworkManager/system-connections. Ugly uppercase apart - quite straight forward. I'd like the GUI managers to be more consistent, but that is really a minor quibble compared to the situation before NM. Shachar And what about those of us on embedded systems or others that offer only text-based interfaces? I'm trying to solve exactly this problem on a BeagleBoard via ssh, and can not use the GUI. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il