Terminal command to disable airport 10.7

I have a couple labs that need to have Airport turned off. I would like to just push a command through ARD.
Any help would be great!

10.8:
sudo networksetup -setnetworkserviceenabled Wi-Fi off
Older: "AirPort" in place of "Wi-Fi".

Similar Messages

  • Is there a terminal command to disable the "Boing' sound ?

    Hello, Everyone
    I was wondering if any one knows if there is a terminal command that can
    be used to disable the "boing" sound that folders and files make (in Tiger)
    as they are being moved about the desktop and or into finder windows.
    A couple of people have looked in the System preferences,usual areas but
    can not locate the file for this "Boing" sound. If any one knows I would love
    the answer. TIA for reading this & any help.; )
    Regards , Eme
     Power PC G4 (3.3) ♥ iMac Flat Panel 10.3.9 ] 15 Alum.PowerBook Tiger   Mac OS X (10.4.6)   AEBS & iMac Intel Core Duo 2gb
    Message was edited by: Eme~

    Mine doesn't make a sound when I do this.
    I presume you have unchecked the "Play user interfacesound effects" > in System Preferences> Sound. The other OP wants to disable only the infamous boing. I found both the files you wrote of. Thank you very much !
    I just needed to summarize this & then undoing if so desired.
    Bill, please what would the command be for undoing this action ?
    Launch Terminal and type this: sudo gzip
    enter ~~
    password prompt,
    then this : /System/Library/PrivateFrameworks/ScreenReader.framework/Versions/A/Resources/S ounds/SpringForward.aiff
    Is this correct ?
    Thanks so very, very much for your expertise, patience and sharing it with me.~ Eme
     Power PC G4 (3.3) ♥ iMac Flat Panel 10.3.9 ] 15 Alum.PowerBook Tiger   Mac OS X (10.4.6)   AEBS & iMac Intel Core Duo 2gb

  • Terminal command to disable "You have forced ****to quit"?

    It happens often enough to be a pain. I have gone to Console prefs and selected "Automatically send diagnostic and usage data to Apple"
    I still get the dialog box with the choice to Ignore or Report.
    Is there a terminal command that would rid me of having to make that choice, as I always choose "Ignore"?

    I did change My Settings. Thanks. Something I didn't think of. The force quits are from Mail, Aperture, and Safari. They're not frequent, and a force quit fixes the problem, but I'd like to avoid the dialog.
    For example, here is an Aperture freeze from Console:
    3/31/10 9:56:15 AM Aperture[3761] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
    /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
    3/31/10 9:56:15 AM [0x0-0x14e14e].com.apple.Aperture[3761] Aperture: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
    3/31/10 9:56:16 AM Aperture[3761] NSExceptionHandler has recorded the following exception:
    NSAccessibilityException -- "AXChildren" attribute unsupported by: <RKColorLabelPickerCell: 0x103baa990>
    Stack trace: 0x7fff81c4da2c 0x7fff815c90f3 0x7fff882b89b9 0x7fff83711f7e 0x7fff8391df30 0x7fff8391dfdf 0x7fff839216ca 0x7fff8209a03d 0x7fff820a3c92 0x7fff8207f541 0x7fff881fd201 0x7fff881fb8df 0x7fff81152ada 0x7fff811528df 0x7fff81152798 0x7fff836d3a2a 0x7fff836d3379 0x1002aab8e 0x7fff8369905b 0x10199d8a6 0x100002944 0x2

  • Terminal Command to disable/enable Safari Sound?

    Does anyone know of a command (or even a 3rd party utility) which would allow for sound control/mute for Safari only?
    I do not like to be disturbed by the sound of animated gifs/popups etc. when I am listening to my iTunes while browsing the internet.
    Thank You!

    You could hijack Safari's sound with Audio Hijack Pro.
    <http://www.rogueamoeba.com/audiohijackpro/>
    If you are just going to mute the sound, you can use it without buying a license key.

  • How to disable Airport via Terminal?

    I need to disable Airport from Terminal because I have a bunch of G4 iBooks that kernel panic upon login unless booted in safe mode. But in safe mode Airport IS off (that's part of why I suspect it's causing the KPs) - so I can't use System Preferences to 'turn it off' so that it remains off upon normal restart. All of these machines are running OS 10.4.x.
    At Mac OS X Hints, I found Enable and disable Airport from the command line which would be perfect - however when I use this command (sudo ifconfig en1 down), the result is "interface en1 does not exist".
    In safe mode, System Preferences, I CAN delete the Airport configuration - but that's an 'undoable' action & I'm not sure it's wise. Any suggestions?

    Thanks, twtwtw. I know that at least some of these machines were not cloned, because some of the system versions predate the first image I used for that purpose. Some probably were cloned, but they operated for a couple of years before this began.
    The (safe mode) output is:
    admin$ ifconfig
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
            inet6 ::1 prefixlen 128
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
            inet 127.0.0.1 netmask 0xff000000
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0<> mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            ether 00:14:51:9c:dc:d2
            media: autoselect (none) status: inactive
            supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • What is the Command to disable Printer Sharing via the Terminal?

    What is the Command to disable Printer Sharing via the Terminal?

    cupsctl is the command.
    man cupsctl(8)
    Hope that helps.

  • How to disable airport so that standard users can't reenable it ?

    Even when I disable airport interface from the command line :
    sudo ifconfig en1 down (what requires sudo privileges)
    a standard user can reenable it ! Strange behaviour compared to linux or windows OS.
    If someone knows how to block airport, please let me know.
    Thanks

    Hello,
    Thank you for the answers.
    All users are standard users.
    The option I was searching for is in System Preferences - Network - AirPort - Advanced - Require admin password for : Disabling or enabling AirPort. The other two options could be useful too.
    I think I'll add this to my base image. In the meantime I'll try to apply the settings via Apple Remote
    I didn't find the exact settings to enable the 3 options from the command line, if you know how to do this please tell me.
    I found a few very useful commands though :
    Disable/Enable airport from the command line
    networksetup -setairportpower en1 off/on
    That's the command I will use when all machines will be configured with "Require admin password for : Disabling or enabling AirPort". If it's not configured the user can reenable airport.
    Disable/Enable airport service from the command line :
    networksetup -setnetworkserviceenabled AirPort off/on
    That's the command that can help when you haven't block the users yet. A standard user can reenable the service but he needs to know the command as well as how to use terminal.
    p.a

  • Terminal Commands for Bluetooth?

    Hello,
    When looking at my system settings via the System Info function, I learn that there is a discrepancy between the actuall settings and whatever I belive is going on based on the System Preferences window.

    (My post didn't show up in it's entirety. Here is my complete post)
    Hello,
    When looking at my system settings via the System Info function, I learn that there is a discrepancy between the actual settings and whatever I believe is going on based on the System Preferences window.
    I have shut down all Bluetooth functionality using System Preferences, a I have disabled Bluetooth in the network settings. When viewing System Info, Bluetooth is enabled, live and well with specific custom settings. Does anyone know of a Terminal command(s) to shut down and prevent Bluetooth from working (I'm mainly concerned with file sharing but would like to shut down all functionality.
    Also, the same for the Airport as well.
    Danke

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • [SOLVED] Looking for a terminal command or key binding to exit Openbox

    I've searched the forums and googled, but I haven't been able to find the answer.  I'm sure I've missed it somewhere...
    I start my openbox session with 'startx' from the command line. I would like a terminal command or a key-binding to be able to exit openbox and return to the command line. I just don't like using the menu with my notebooks touchpad.  I just can't seem to figure out what command is used. The menu.xml file lists the command as "Exit", but typing that in a terminal just exits the terminal.
    Any help appreciated.
    Last edited by badfrog88 (2010-09-05 19:08:43)

    gorky wrote:ctrl-alt-backspace won't do the job?
    IIRC, it's disabled by default in xorg-server 1.7 and newer.
    @ badfrog88
    Ctrl + C will kill (almost) any running app you point it to.
    Last edited by karol (2010-09-05 19:17:29)

  • Is there a terminal command that will close quicktime player once a video is finished?

    I'm running a python program that uses subprocess.call(['open', '-a', "Quicktime Player", filename]) to open a video and defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1 starts it automatically. I'm wondering if there's a terminal way or a python way to close the video once it's finished.

    Hi, Thanks for the reply, I appreciate it.
    What do you mean by "pick up"?
    I mean to show what the DNS numbers are that the router is using.
    They are not entered in the DNS server field in Networks, TCP/IP tab.
    If you mean refresh the client settings, the DNS settings are obtained as part of the DHCP lease (or PPP connection in the case of PPP).
    The user/ OP is actually using PPPoA, when i googled PPPoA.. seems he is using Cisco perhaps.
    http://en.wikipedia.org/wiki/Point-to-PointProtocol_overATM (Asynchronous Transfer Mode)
    "PPPOA or PPPoA, Point-to-Point Protocol (PPP) over ATM, is a network protocol for encapsulating PPP frames in ATM AAL5. It is used mainly with cable modem, DSL and ADSL services.
    It offers standard PPP features such as authentication, encryption, and compression. If it is used as the connection encapsulation method on an ATM based network it can reduce overhead slightly (around 0.58%) in comparison to PPPoE".
    Essentially the original poster removed the OpenDNS #s from his DNS server field in the TCP/IP tab (b/c they seem to make Adobe.com inaccessible to him)
    removing them & allowing his router to "pick them up from the ISP" seems to solved his problem.
    However he can not, find what the numbers are that are being utilized,
    b/c they are not entered as usual in the Network, & part of the DHCP lease,
    or in Airport admin Utility.
    I/ we wondered, if there was a Terminal command that will show what the
    numbers are that are being used .
    Does that help clarify what I mean? Sorry to be so long winded.
    Eme '~[ )♥♪

  • Is there a Terminal command that will pick up DNS numbers?

    Hello all,
    Is there a Terminal command that will pick up the DNS numbers utilized by a router?
    The router options don't show any, though the router is set to use PPPoA to pick them up.
    I kindly TIA,
    Eme '~[ )♥♪

    Hi, Thanks for the reply, I appreciate it.
    What do you mean by "pick up"?
    I mean to show what the DNS numbers are that the router is using.
    They are not entered in the DNS server field in Networks, TCP/IP tab.
    If you mean refresh the client settings, the DNS settings are obtained as part of the DHCP lease (or PPP connection in the case of PPP).
    The user/ OP is actually using PPPoA, when i googled PPPoA.. seems he is using Cisco perhaps.
    http://en.wikipedia.org/wiki/Point-to-PointProtocol_overATM (Asynchronous Transfer Mode)
    "PPPOA or PPPoA, Point-to-Point Protocol (PPP) over ATM, is a network protocol for encapsulating PPP frames in ATM AAL5. It is used mainly with cable modem, DSL and ADSL services.
    It offers standard PPP features such as authentication, encryption, and compression. If it is used as the connection encapsulation method on an ATM based network it can reduce overhead slightly (around 0.58%) in comparison to PPPoE".
    Essentially the original poster removed the OpenDNS #s from his DNS server field in the TCP/IP tab (b/c they seem to make Adobe.com inaccessible to him)
    removing them & allowing his router to "pick them up from the ISP" seems to solved his problem.
    However he can not, find what the numbers are that are being utilized,
    b/c they are not entered as usual in the Network, & part of the DHCP lease,
    or in Airport admin Utility.
    I/ we wondered, if there was a Terminal command that will show what the
    numbers are that are being used .
    Does that help clarify what I mean? Sorry to be so long winded.
    Eme '~[ )♥♪

  • Unix command to disable DVD drive?

    My DVD drive on my 20" intel imac is failing to eject the disk. It won't come out. I have done everything like restarting with the mouse held down etc etc. I am going to buy a cheap external DVD writer as a solution. The drive however is making a noise every 10 secs in what I guess is in an attempt to read the disk or eject it? What ever the noise is I want it to stop! Is there a command I can type in the terminal to kill or disable the drive so it quits trying to do what it is doing?
    Thanks in advance.
    Martin.

    Ask at the Unix forum under OS X Technologies. BTW, this Terminal command should eject the disc:
    *drutil eject -drive internal*

  • Filevault encryption paused, despite reset of PRAM and using terminal commands

    I have been trying to partition my HDD but am unable to because file vault encryption is paused - and has been since October 2014.
    I attempted making a new user to see if this would bypass it, but it didn't.
    I have reset the PRAM and have repaired the HDD both in recovery and normal, neither work.
    I have also used terminal command "sudo fdesetup disable" to attempt turning it off, but that doesn't work either.
    Help please??
    Harry

    If you don't already have a current backup of all data, back up before proceeding. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Start up in Recovery mode. When the OS X Utilities screen appears, select Disk Utility.
    In the Disk Utility window, select the icon of the startup volume from the list on the left. It will be nested below another disk icon, usually with the same name. Click the Unlock button in the toolbar. When prompted, enter the login password of a user authorized to unlock the volume, or the alternate decryption key that was generated when you activated FileVault.
    Then, from the menu bar, select
              File ▹ Turn Off Encryption
    Enter the password again.
    You can then restart as usual, if the system is working. Decryption will be completed in the background. It may take several hours, and during that time performance will be reduced.
    If you can't turn off encryption in Disk Utility because the menu item is grayed out, you'll have to erase the volume and then restore the data from a backup. Select the Erase tab, and then select
              Mac OS Extended (Journaled)
    from the Format menu.
    You can then quit to be returned to the main Recovery screen. Follow these instructions if you back up with Time Machine. If you use other backup software, follow its developer's instructions.
    Don't erase the volume unless you have at least two complete, independent backups. One is not enough to be safe.

Maybe you are looking for