Can't change DNS via terminal

10.4.8 xServe G4
My DNS has been changed by my provider. DirectoryService.error log is this; Attempt #1 to initialize plug-in LDAPv3 failed.
Will retry initialization at most 100 times every 1 second.
this is my ethernet connection:
sudo networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Built-in Ethernet
Here, I'm trying to change the DNS setting which I've already change in the network prefs pane:
sudo -setdnsservers "Built-in Ethernet" xxx.xxx.xxx.x xxx.xxx.xxx.xxx
sudo: please use single character options
Password: (it lets me enter it)
Built-in Ethernet: Built-in Ethernet: No such file or directory
I don't know what it wants. I've also tried out of depsparation; "Automatic" or Built-in Etherrnet
what am i missing?

nevermind. I left out networksetup from the command. it works fine now. sorry for the unecessary question.

Similar Messages

  • Can't change DNS server setting on airport express

    new airport express, comcast cable ISP, i cannot change the DNS server settings, they are greyed out.  why  is there no way to change this?

    Mark-
    Did you get the AE to actually use the OpenDNS servers?  I have the new AE and Airport Utility 6.3.1 and while I can enter the OpenDNS server settings (208.67.222.222 and 208.67.220.220), they don't work.  When I use a Wi-Fi connected device (my iPhone, for example) it sill uses the Comcast DNS settings, totally ignoring the OpenDNS settings.  I don't know when they stopped working, but they worked in the past.  I've used the old Airport Utility as well (5.6) and it says the OpenDNS settings are active, but they aren't.
    I want to use the OpenDNS settings for Wi-Fi connected devices in my home for content filtering.  If anyone knows of a DOCSIS 3 cable modem that allows setting DNS servers, that would be an option too, but unfortunately, my Motorola SurfBoard SBG6580 does not.

  • Can't change video via Javascript

    Hi all,
    I know this has been covered, but I've tried those solutions and things just aren't working.
    I think the issue is that I can't obtain the Strobe playback object.  Here's the code I'm embedding:
    <video width="460" height="260" class="video" controls="controls">
        <object class="swfvideoplayer" type="application/x-shockwave-flash" data="/etc/clientlibs/foundation/video/swf/StrobeMediaPlayback.swf" width="460" height="260">
            <param name="movie" value="/etc/clientlibs/foundation/video/swf/StrobeMediaPlayback.swf" />
            <param name="allowFullScreen" value="true" />
            <param name="wmode" value="opaque" />
            <param name="flashvars" value="src=../../../../../content/dam/HMI/bill_stumpf_710.flv/jcr:content/renditions/cq5d am.video.hq.m4v&javascriptCallbackFunction=onJavaScriptBridgeCreated&name=swfvideoplayback &autoPlay=false&loop=false" />
            No video available.
        </object>
    </video>
    jQuery code like this (below) will get me *something* I can use, but nothing changes on screen.  When I say "I can use it", I mean I'm not getting errors thrown.
    var $swf = $module.find('object')[0];
    That returns me an object I can call the following on without errors:
    swf.Stop();
    swf.StopPlay();
    swf.Rewind();
    swf.LoadMovie(1,"http://10.10.10.163:4502"+ newVid + '/jcr:content/renditions/cq5dam.video.hq.m4v');
    These methods are outlined here: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html. 
    My javascriptCallback function never gets called, either, so I can't get the player using the code in jsdemo:
    function onJavaScriptBridgeCreated(playerId)
                    function onJavaScriptBridgeCreated(playerId)
                            if (player == null) {
                                    player = document.getElementById(playerId);
                                    // Add event listeners that will update the
                                    player.addEventListener("currentTimeChange", "onCurrentTimeChange");
                                    player.addEventListener("durationChange", "onDurationChange");
                                    // Pause/Resume the playback when we click the Play/Pause link
                                    document.getElementById("play-pause").onclick = function(){
                                            var state = player.getState();
                                            if (state == "ready" || state == "paused") {
                                                    player.play2();
                                            else
                                                    if (state == "playing") {
                                                            player.pause();
                                            return false;
    I can't get the player variable, so I have no access to "pause" or "play2" or "setMediaResourceURL".
    What am I missing?  Any thoughts on how to obtain a handle to the Strobe swf player?  Given that the class of the swfobject is "swfvideoplayer", shouldn't this work?
    document.getElementById("swfvideoplayer");
    or, since I used a "name" parameter in my flashvars (see the embed statement, above), shouldn't this work?
    document.getElementById("swfvideoplayback");
    Neither work. :-(
    Thanks,
    Bret

    Hi,
    did you check http://osmf.org/dev/1.6-sprint-2/hello-world-jquery-plugin.html ?

  • Can't delete files via terminal!?

    Hey there,
    after I deleted my timemachinebackup I wanted to kick it out of the trash, but I got negative numbers... so I read a bit in some forums and tried it with
    "sudo rm -rf /Volumes/Mac HD/.Trashes/$UID/*"
    "sudo rm -rf /Volumes/Mac HD/.Trashes/*"
    "sudo rm -R /Volumes/Mac HD/.Trashes/$UID/*"
    But it seems like nothing works for me... terminal askes me for my password and after I typed it nothing happens and the HD got the same free space like before...
    My somebody help me?
    Thanks!

    roam is absolutely correct.  You MUST protect the path information so that spaces are not seen as commad line token separators.
    Also be very VERY careful using 'rm' especially when also using 'sudo' as the combination can be the extremely dangerous to your data.
    sudo rm -r /Volumes/Mac\ HD/.Trashes/$UID/*

  • HT4625 And how can I disable this via Terminal?

    I'd like to set the screensaver to the loginwindow. But I'm not sure. Is it save? Or are there some risks?
    And how can I disable the screensaver at the loginwindow? (I haven't got workgroupmanager.)
    Thanks for any answers

    To turn it off, use:
    sudo defaults delete /Library/Preferences/com.apple.screensaver loginWindowIdleTime
    sudo defaults delete /Library/Preferences/com.apple.screensaver loginWindowModulePath
    All other issues are covered by the article.
    (65168)

  • How to check folder sizes of the root directory on my VPS/Dedicated server via Terminal?

    Hi,
    I have following issue.
    I have a VPS with Linux OS and I'd like to check size of the folders as well as remaining space on my server.
    How can I do that via Terminal?
    I would appreciate any input.

    login into your VPS server via terminal and cd into the root of your hosted space.  Then use the df -h command to see the listing
    for i.e.
    df -h /volumes/volume_1
    Filesystem             Size   Used  Avail Capacity iused      ifree %iused  Mounted on
    //john@ds00/volume_1  457Gi   12Gi  445Gi     3%       0 18446744073709551615    0%   /Volumes/volume_1
    for you it would be something like:
    df -h [email protected]/share (ip address)

  • Send iMessages in OS X via Terminal

    Hello,
    i want to send pictures in iMessage via Terminal, Konsole / AppleScript.
    osascript -e 'tell application "Messages" to send "Hello World" to "John"'
    but there is an error:
    31:67: execution error: Messages got an error: Can’t make "John" into type buddy, text chat. (-1700)
    (John is a right contact)
    And how can I send pictures via Terminal?
    osascript -e 'tell application "Messages" to send "/pictures/pic01.png" to "John"'
    How can I tell OS X that I want to send a document and not a text?
    Thanks for your help!

    Hi,
    In the beginning iChat was AIM Only.
    Much of the AppleScript written for the app is written with this is mind.
    "picc-in-chars" are treated as Files whether they are sent as File Only with no Chat open or as Files within the Chat (which then displays the pics in most cases).
    The Auto Accept Script  may give some clues.
    It reads this for the Receipt of files and pic-in-Chats.
    To access this go to the Messages > Preferences > General section.
    At the bottom is  drop down for AppleScript with an option to show the Folder.
    This no longer displays the ~/Library/Scripts/Messages folder that Messages 7.x.x did (as did earlier version of iChat) that were used in the Alerts tab.
    If you open  the Script you can see it refers to "theBuddy" for some of the other Events.
    I am not sure this can be applied to the iMessages side of things.
    The Dictionary for Messages has this
    Your Script also appears to think you have a Pictures Folder at the top level of the Hard Drive (Along with Applications, Library, System, Users  etc.)
    Did you mean your home folder/Pictures (As In ~/Pictures)
    The Dictionary also defines "Buddies" as being related to specific Services
    this may include iMessages.
    I was once sent this script that displays  a Status messages that refers to who you are chatting with by using the name of the window (it has  section to exclued other windows)
    As text
    using terms from application "Messages"
        on av chat started
            tell application "Messages"
                set allChatWindows to every window
                set completed to false
                repeat with currentWindow in allChatWindows
                    set windowname to the name of currentWindow
                    if (not completed) then
                        if ((windowname is not ¬
                            "Audio/Video") and (windowname starts with ¬
                            "Audio" or windowname starts with ¬
                            "Video")) then
                            set status message to windowname
                            set completed to true
                        else if (windowname does not contain ¬
                            "General" and windowname does not contain ¬
                            "Doctor" and windowname does not contain ¬
                            "Activity" and windowname does not contain ¬
                            "File" and windowname does not contain ¬
                            "Accounts" and windowname does not contain ¬
                            "Messages" and windowname does not contain ¬
                            "Alerts" and windowname does not contain ¬
                            "Audio/Video" and windowname does not contain ¬
                            "Chax" and windowname does not contain ¬
                            "AIM" and windowname does not contain ¬
                            "Contacts" and windowname does not start with ¬
                            "Chat" and windowname does not contain ¬
                            "Chats" and windowname does not contain ¬
                            "Bonjour") then
                            set status message to "Audio Chat with " & windowname
                            set completed to true
                        end if
                        delay 0.2
                    end if
                end repeat
                set volume input volume 85
                delay 0.2
                set volume output volume 80
                delay 0.2
                set status to away
            end tell
        end av chat started
    end using terms from
    The end bit tweaks your volume Input and output from your regular settings.
    I hope that give you some clues.
    10:18 pm      Saturday; January 18, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • How can I change my bank account details on iCloud ?? I have been sent instructions via email from Apple but they don't appy ? Can anyone help ? Thanks in advance

    How can I change my bank account details on iCloud ?? I have been sent instructions from Apple via email and they don't appy ?? Can anyone help ? Thanks in advance

    You have to change it using iTunes on your computer, as explained here: Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support.  (This article: iCloud: View or change your iCloud payment information no longer works with iOS 8 or Yosemite.)

  • How can I change the color of the highlighted text when using the FIND function in Terminal?

    When searching for text in the Terminal's buffer, the matched text is highlighted using a color which seems to be computed from the background's color. I'm using a black backgroud and the finder's highlighter is grey. How can I change this? I'd like to specify the foreground and background colors of the matching text. I couldn't find an appropriate setting in the terminal's settings, nor in the default settings using the command "defaults".

    In my .bashrc file, I have enabled a couple of grep environment variables.
    GREP_OPTIONS='--color=always'
    GREP_COLOR='00;38;5;226'
    The latter is a vivid yellow.
    From the shell, I can search my history:

  • Ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut of wacom pen click, i now have to click on the image title bar, how can i fix this please?

    ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut or wacom pen click, i now have to click on the image title bar, how can i fix this ?

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • WLC 2504 can't change WAP name or switch off CDP via WLC gui

    Hi All,
    Please can you assist? I have 1 x Cisco WLC 2504 & 2 x Cisco WAP AIR-CAP1602I-E-K9 running 7.4.100.60.
    All three devices are installed and working correcty within a corporate environment. However, there are a few tweaks that I would like to do, to tidy up the configuration and switch certain elements on or off. For example, my core networking hardware is Huawei and I would like to switch off 'CDP' on the WAP's as the associated error messages are filling up my logging buffer on my switch. So, I https to my WLC, locate the WAP in question, goto 'interfaces' and untick the box for 'CDP state' hit apply, then I get the following error message "controller name is mandatory when controller ip address is configured" and then the tick reappears!
    At present I have two WAP's. Both have static IP addresses and both are reachable on the network. The one WAP did allow me to change the name to something meaningful, but the other WAP would not let me and still has the default MAC address as its name. I have the same issue, when I try to change the name on the WAP it says "controller name is mandatory when controller ip address is configured"
    I have also tried to CLI directly in to the WAP to make these alterations, but as soon as i launch 'putty' it quits out. I guess this is locked down once the WAP's associate with the WLC.
    And around I go.... Someone must have been in this situation, what am i missing? Thanks in advance!

    Hi Andy,
    By default SSH & Telnet is disabled for WLC controlled APs. So you have to enable it first via WLC GUI in order to access the AP via telnet or SSH.
    Wireless -> Select your AP -> Advanced -> Tick Telnet/SSH boxes.
    If you could not change AP name via WLC GUI (it may be a bug), but as I said earlier try to change it via WLC CLI (not AP CLI itself). SSH  to your WLC & then try the following.Old AP name is the one with its mac address.
    (WLC) >config ap name
    (WLC) >save config      
    Are you sure you want to save? (y/n) y
    Configuration Saved
    HTH
    Rasika
    *** Pls rate all useful responses ****

  • Can I change the loops chords via a controller keyboard or other?

    Hi,
    I'm new to composing with GB. I mainly record my real playing on my Korg Keyboards through a mixer and a USB audio interface but I just got a bundle of Apple Loops that come with Sountrack and want to use them and create music with the loops.
    MAJOR QUESTION: Can I change or modify a loop's notes? For example, it plays a C major, can I change a part of it to be F major then another part G major and so on or are they unchangeable?
    I'm also planning on purchasing the new Korg MicroX which is also integrated with GB via Plug-in and will be able to save my GB settings and Korg settings through GB for each project. Pretty cool. But just wanted to make sure on that chord change issue.
    I know I can use the controller to play the GB software instruments and play melodies and will be able to hook the MicroX as midi to modify the combies and sounds while recording in midi mode but would also like any clues on the loops please.
    Thank you in advance...
    Carol

    That simple huh
    Thanks man... sorry for my dumb questions... I'm still new with Software editiing, I'm always used to play live and edit on my onboard sequencer since I have a Pa1xPro but I love the loops in this GB and intend to use them fully!
    Thanks again...
    Carol

  • I have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found.help

    have iMac osx  version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found please help !!

    You need to restart the iMac and hold down the Command and R keys immediately.
    You will then have the utilities drop down and you choose Terminal
    When Terminal opens, type exactly:
    resetpassword
    and press Return.
    When the Reset Password window opens, select the user for which you want to change the password.
    Enter the new password twice, and then click Save.
    Accept the next dialog window,
    And then Apply
    When finished click the apple at the left side of the menu bar, and the Restart.

  • How is possible change an administrator user to standar via terminal?

    HI to all!
    How is possible change an administrator user to standar via terminal (unix command)?
    thanks a lot
    Simone

    Thank you Mr Hoffman!
    i have found this command:
    dscl . -append /Groups/admin GroupMembership shortname
    it's working, what do you think about it?

Maybe you are looking for

  • Unable to save PDF to offline folder

    Using Windows 7, have a network folder mapped to drive P.  This folder is set to Always Available Offline.  When we are connected on the network, and the folder is Online, a user can fill out the pdf form, and Save or Save As to the P drive, and ever

  • Camera Profiles Beta 2 in LR 2.3

    I just downloaded the beta 2 camera profiles from labs.adobe.com. They appeared as advertised in Camera Raw 5.3 but all I get in LR 2.3 under Camera Calibration is Profile:    "Embedded" I did restart the computer but still no luck. Is there a step I

  • Error commiting update

    Hello again, We have a function that executes periodically, updating semantic data (removing and adding triples of different resources). But occasionally, that same method has thrown the exception listed below, with is strange because nothing changes

  • Calling the osb service from java

    Hi all, i am trying to invoke osb service at a remote host which is accessed with no proxy settings in the broswer I followed "code 2" in the below link to create the java client in the jdeveloper https://kr.forums.oracle.com/forums/thread.jspa?threa

  • Refreshing a JTable

    Hi again, I have another issue, regarding refreshing a couple of JTables. I am using a procedure from a db2 database to populate a JTable. The JTable contains a list of extract tables contained in the database. What I need to do is be able to able to