The network library is intended for client computers bound to a network domain server. A domain server acts as a central repository for configuration information -- mostly user accounts, but also (among other things) mount records. Mount records tell the client computers to automatically mount a certain file server share point automatically. If you use this to tell all the clients to mount a particular share point on /Network/Library, then you can put Preferences, Fonts, etc folders inside that share point and they'll be automatically available on all clients in the network domain.
This used to be a common way to manage network clients in NextStep (the predecessor of OS X), but is very rarely used in OS X. There are better ways to do most thing now, like putting managed preference settings directly in the network domain. At this point, the network library is more of a historical artifact than anything else...
Q: "How can I force airport to die?"
You can disable Wi-Fi (aka "AirPort") by using the networksetup
command.
In order to do this, you have to know which "en" port AirPort is using. Usually it is either en0 or en1. You can find out for sure by using this command:
networksetup -listnetworkserviceorder
and looking at the output.
For example, here is the output of that command on my MacBook Air:
An asterisk (*) denotes that a network service is disabled.
(1) Bluetooth DUN
(Hardware Port: Bluetooth DUN, Device: Bluetooth-Modem)
(2) USB Ethernet
(Hardware Port: USB Ethernet, Device: en2)
(3) Wi-Fi
(Hardware Port: Wi-Fi, Device: en0)
(4) Bluetooth PAN
(Hardware Port: Bluetooth PAN, Device: en1)
As you can see in the third entry, mine is 'en0'. Therefore, to turn off Wi-Fi on my Mac, I use the command:
sudo networksetup -setairportpower en0 off
turning it back on again, as you might expect:
sudo networksetup -setairportpower en0 on
Note that I am on 10.9 and so things may be slightly different, but I do not think they will be significant. At one point Mac OS X's networksetup
command may have referred to this as "AirPort" instead of "Wi-Fi" but I think that was back in Snow Leopard (10.6).
Best Answer
Try
networksetup
... Fromman networksetup
.. NOTE must be an admin to run it.You can make changes to many OSX network settings using similar tools to linux platforms, using networksetup ensures everything running is properly informed, settings are saved, and upon reboot those saved values are still usable (exactly as if you had used System Preferences) - see this answer to another networking questions that talks about how that works.
In this particular case the
-setwebproxy
and-setsecurewebproxy
options change the proxy settings for a particular network service - e.g. HT user3439894 - these set the proxy on the Wi-Fi network service.Depending on the actual network configuration will need to choose the appropriate service..
AND to turn off then look for
You can also use locations to quickly switch between network configurations - these are much easier to setup in the GUI. System Preferences -> Network (Edit Locations on the Locations dropdown). However, once setup, network setup has an easy way of switching (assuming you had a location named viaProxy or _to revert standard -