Enabling/disabling applets from the Terminal in OS X

As of the massive security snafu, I to toggle applet support on and off fairly frequently in OS X. I've come to find that the Java Control Panel in OS X crashes (complaining about a problem with Sparkle) about 1 in 3 times and once it's crashed, it can't come back up again without restarting the machine.
Is it possible to toggle applet functionality at the command line instead of having to use this severely broken Control Panel?

Internet recovery has limitations on the types of wifi network it will connect to if you have an 'open' network it may not show up…
OS X: About OS X Recovery
If you can use a wired ethernet connection if available.
Rebooting the router may not hurt if you have access to that - but it will affect others on the network for a brief period.
It does sound like your router is setup not to hand out DHCP leases - these are responsible for giving the Mac a local IP address. Nowadays this is non-standard networking setup & will make recovery mode fail. One thing you could do is share the internet connection from your friends Mac, but that would require a cable between the two computers. At least then his Mac would run DHCP & give your Mac an IP address to make internet routing work.
This covers how to share an Internet connection assuming you have the required cable & adaptor.
http://osxdaily.com/2012/01/05/enable-internet-sharing-mac-os-x/
You could also resolve it by changing the router setup to hand out addresses via DHCP, but that requires admin access to the router, find the router manual & see how you enable DHCP on it.
The ethernet adaptor will also fail if the router is not giving out addresses on the wired LAN.

Similar Messages

  • How to enable a trusted site from the terminal?

    I have a group of about 100 Macs, with Safari 7.
    I would like to be able to via script, to configure Safari to open specific sites automatically when a PDF is open. Is there a default write command that allows me to do this?

    I have no problem compiling my NB projects from the terminal.
    It could possibly be a classpath problem is the reason you are getting your errors. However, I cannot speculate much more unless you post the error output you are getting.
    Please do so. Thanks.

  • Import and trust a self-signed CA certificate from the Terminal

    Hello there,
    i have a problem: I would like to import and trust a self-signed CA(root) certificate from the Terminal to the System.keychain.
    My request is to create a installation script to install the Cisco AnyConnect VPN Client and the needed certificates.
    For the import i have used the following command:
        sudo security import certificate.cer -k "/Library/Keychain/System.keychain" -A
        The Option "-A" says:
    Allow any application to access the imported key without warning (insecure, not recommended!) <- From the Mac Developer Library
    The command reportet: 1 certificate is importet ... but ... the certificate is not trusted.
    What do i need to do to set this certificate as trustworthy at the terminal?
    Thanks for your help and best regards
    Benjamin
    P.S. The command: sudo security add-trusted-cert -d -r trustRoot -k “/Library/Keychains/System.keychain” “/private/tmp/certs/certname.cer” doen't run, i get an error message. Found on http://derflounder.wordpress.com/2011/03/13/adding-new-trusted-root-certificates -to-system-keychain/

    Hello Linc Davis,
    thanks for your answer and sorry for my mistake, because i had already changed the last argument but for this discussion i had only copy this example.
    But your answer show me the right way, big thanks.
    I had entred the following command (see the last argument):
         sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "~/Downloads/mycert.cer"
    ... and i get the following message:
        ***Error reading file ~/Downloads/mycert.cer
         Error reading file ~/Downloads/mycert.cer
    Today i changed the last argument to:
         /Users/User/Downloads/mycert.cer
    and its run.
    Many thanks!
    Benjamin

  • How do I start firefox from the terminal, using a specific proxy configuration, without creating a whole new profile?

    When I use Firefox at work I must use a proxy, however when at home I want to connect with no proxy. I'd like to have two launchers for Firefox, one for work and one for home. To do this I need to configure Firefox from the terminal.
    After searching on the internet the only solution I could find was to launch Firefox with two different profiles, one for work using the proxy, and another for home. However if I do this, my bookmarks and saved passwords will not the same for both profiles.

    Right click on the desktop and choose 'Create Launcher'. There enter the details so start the program directly not via a script. This did the trick for me for another program.

  • How can i launch application from the terminal in 32-bit mode?

    how can i launch application from the terminal in 32-bit mode?
    everytime i have to check and uncheck the finder's info panel and it's really annoying, thanks!

    ''Courtesy of cor-el''
    https://support.mozilla.com/en-US/questions/823873
    Other users should note that Firefox has public release versions of 64bit only for Mac And Linux; not for Windows, yet.

  • [Solved] Launching Graphical Programs From The Terminal

    Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
    Last edited by brando56894 (2011-07-26 04:17:11)

    brando56894 wrote:
    I put it in my .bashrc and when I reload .bashrc I get this:
    bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
    bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
    Remove that '&' and try again. (remember to reload the .bashrc)
    jasonwryan wrote:What, exactly, did you put in your .bashrc?
    He used your function but with "my" '&' - w/o 'nohup'.
    Last edited by karol (2011-07-26 04:25:55)

  • Sending mail from the terminal app

    I was wondering if anyone could tell me how to send an email message from the terminal app. I've been trying to figure it out from the man pages and a book I bought, but I can't get anywhere. I don't mean using OSX Mail, but composing an email message and sending to someone else.
    I've been trying to make sense of the man pages (mail and sendmail), and tried to, for example send a message to my gmail account, according to what I thought I understood from the man pages:
    mail [[email protected]]
    Subject: Test (then I pressed control -D)
    EOT
    Null message body; hope that's ok
    but when I check my gmail account, there's nothing there.
    What am I missing?

    Jun T. wrote:
    But there is a (high) possibility that Gmail's server requires authentication (or certification) to connect to it.
    I wonder if they're simply silently dropping emails in certain cases. I forgot earlier that I have a Gmail account. If I send an email from the command line on my home computer, which is on Comcast, the mail log shows that I successfully connect to Gmail, the message is sent and accepted by Gmail, but the email never arrives in my inbox. I've tried several times with the same result.
    However, emails from a web server from work get through to Gmail without a problem. So I'd bet it's a case of them not delivering mail from Comcast IP addresses.
    For grins, I also tried sending to my Yahoo email account from my home computer and their server at least refuses the connection and I get an error message stating that it's because it's a residential IP address.
    In this case you need an SMTP client (=a software which directly sends the mail to the Gmail server) which supports authentication.
    I think this might also be possible with Postfix by editing the configuration files. I know I had to set up authentication to send emails to my work address directly from my home computers, but I haven't been able to get the same thing to work with Gmail yet. If I get a chance, I'll look into it again later tonight.
    charlie

  • Run a .scpt (AppleScript) from the terminal?

    Is there a way to execute a saved AppleScript (.scpt) from the terminal?
    I have tried *osascript /Users/path/to/script.scpt* and it says "execution error: No user interaction allowed. (-1713)"
    No difference if I use sudo or not.

    You may need to save the script as an app rather than as a compiled script.
    The issue is that if your script includes any user interaction (e.g. the 'display dialog'), then it has to run in the GUI.
    As a .scpt file, the script is technically a document, and that document needs an application, so just opening it normally will launch a script editor.
    Conversely, saving it as an app will allow the app to run standalone, so you can just use the standard open command:
    <pre class=command>open /Users/path/to/script.app</pre>
    You'll still be able to open and edit the script with Script Editor, but the .app has the ability to stand on its own.

  • How can I edit an AppleScript from the terminal?

    I'd like to edit an AppleScript from the terminal. Does Mac OS X have built in support for this or do I need to get a 3rd party editor?

    Have you tried using vim (a.k.a. vi)?
    vi /Library/Scripts/iChat/Auto\ Decline.applescript
    At least in this case, it's just a textfile. The 'file' command shows it to be:
    file /Library/Scripts/iChat/Auto\ Decline.applescript
    /Library/Scripts/iChat/Auto Decline.applescript: Mathematica, or Pascal, Modula-2 or 3 code text
    Hope this helps.
    Andy

  • Mac mini won't visit websites or do ping from the terminal.

    I'm having some issues with my internet connection.
    The Mac mini does have good wireless connection to my router (a Belkin) but most of the time it won't open any websites (or even ping xxx.xxx.xxx.xxx from the terminal). Then suddenly it will and works for some minutes and then it won't again.
    I can connect to my wireless router via 192.168.2.1 and it says the internet connection is on.
    Does anyone have any idea on what the problem can be and perhaps how to solve it?
    The Airport in the Mac mini is a Broadcom BCM43xx 1.0 (5.10.91.27).

    Welcome to the discussion forums!
    During the times that you can't ping xxx.xxx.xxx.xxx, are you able to connect to your wireless router via 192.168.2.1 ?
    If yes, then it seems the difficulty is somewhere between the router, your dsl/cable modem, and your ISP (Internet Service Provider).
    When things are working OK, are you able to ping xxx.xxx.xxx.xxx successfully?

  • Cannot "enable directory listing" from the wadm CLI

    With SJSWS 6.1 sp1 up to sp11, there was a documented bug that caused directory listing to work even though the ACL was:
    acl "default";
    authenticate (user, group) {
      prompt = "Sun ONE Web Server";
    allow (read, execute, info) user = "anyone";
    allow (list, write, delete) user = "all";With SJSWS 7.0, this bug was fixed. The default installed ACL is exactly the same from 6.1 to 7.0. e.g. the "list" right is given only to [all] authenticated user, and not everyone. So requesting a "GET /images/" will give you a 401 unauthorized, as should have happened in 6.1, which causes your browser to prompt you to login.
    By default, 7.0 webserver configs are created with directory listing enabled with "index-common". But it can also be disabled, directing the user to a defined static file on the web server disk. i.e.:
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error" path="/path/on/disk/notFound.html"In either case, out of the box, neither enabling nor disabling directory listing matters because the default ACL denies directory listing in the prior case, and denies the "notFound.html" response in the later. Note "allow (list) user = all" requires authentication for the "list"privilege.
    To fix this, you change the ACL so the "list" privilege is in the first ACI, i.e., 'allow (read, execute, info, list) user = "anyone";'
    The problem is that even though the ACL file can be modified in the Admin Web GUI, it cannot be modified from the the wadm CLI.
    So, because of this, technically one cannot truly enable directory listing (wadm enable-directory-listing) using wadm. The best you can do is manually edit the existing ACL, or create a new ACL file and set that new file using wadm.
    I don't even see a way, using wadm, to dump new content into the ACL file. Without the GUI, you are stuck. And you cannot perform remote administration for this feature using wadm.
    If we admins are creating TCL scripts to automate creating and configuring webserver configs, this feature cannot be configured.
    I would like to know if I am wrong, and how I could resolve this using the wadm CLI alone.
    And if the default is going to remain that the "list" privilege requires authentication, this should be documented in the SJSWS7 documentation for enabling and disabling directory listing.

    pull-config does not work in this case because of two reasons:
    1. you must still manually edit the ACL file (can already do that on the admin server)
    2. and you must make that change on a node which has the configuration
    In my case, I want to remotely manage the configuration using wadm. But I do not want to log into one of the nodes in the server farm.
    And I want to avoid having to edit the ACL file manually if possible, or through the GUI which requires manual intelligent point-and-click efforts.
    Seems like my only bet is to:
    1. create the config via the wadm tcl shell
    2. then outside of the wadm command, execute some script that can perform a scp to the admin server, or a ssh for a local copy of a previously written ACL file - which requires a lot of extra setup to make that happen.
    3. then get back into wadm to execute the other tasks
    I want to avoid step #2.

  • How can i set the "Keep the following number of major versions" to a limit suppose 20 and then disable it from the users so that they cannot change the value?

    I want to set the value of "Keep the following number of major versions" in the versiong settings of a documnet library to a limit say 20 and then disable the option from the users so that they cannot them. Is it possible thorugh some custom coding?

    Hi Moumita10,
    Just curious about that how the custom CSS code works in your environment if put it in the “LstSetng.aspx” page.
    In my environment, it hides the "Keep the following number of major versions" setting in the “LstSetng.aspx”
    page after applying the custom CSS style there.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I distinguish between applets from the servlet end??

    What I'm looking for is just a way to distiguish between one applet from another on the servlet side. I know the session name and id will be helpful in this case. I was wondering, can I get the name of the client applet(Ex: appletClientOne or appletClientTwo) so that I can keep track of which messages to send to specific applet.

    Yes. Store the name of the applet in a cookie or HTML hidden input tag. Your other option is to connect to different URL's on your Servlet. Finally, you could use a combination of the above, and then set which applet a user is using in his/her HttpSession.
    - Saish

  • Remove DNS entries and reset from the Terminal

    I have a DNS service running on my Mac Server and it seems to be screwed up, because I can not remove any entries.
    Initially, it let's me remove them...but when I click save...they all appear again!
    What I want to do is to remove all entries manually and do anything else that will reset all of the DNS settings and let me start from scratch.
    Can anyone help me?

    I'm having a weird problem with my dns as well. I've done some research and have not been able to test it yet because the server is located at a clients business.
    However, as far as I can tell, os x server keeps it's config files for the network here...
    /Library/Preferences/SystemConfiguration/
    DNS is located here...
    /var/named
    and here...
    /etc/dns
    The name of the DNS server in the terminal is named. You can type man named in the terminal to learn how to stop and start it and other things about it.
    Before tinkering with any of the files, I would recommend making a backup of them first. Hope this helps!

  • Navigating between applets from the same signed jar (trusted CA) gives err

    See [http://www.chrisnewland.com/java-7-update-21-signedunsigned-error-switching-between-applets-in-the-same-signed-jar-trusted-ca-339] for my investigations so far.
    Clicking a link to navigate between applets contained in the same signed jar (signed by a trusted CA) pops up an error dialog complaining about a signed/unsigned code mix.
    Loading each applet in a fresh browser works fine.
    If you click from applet 1 to applet 2 via a non-applet page then both applets run without problem.
    [EDIT: This is behaviour is new to 7u21]
    Edited by: Chris Newland on Apr 17, 2013 3:19 AM

    I tried that (Adding Trusted-Library true) to the jars and even the 3rd party jars.  I still get the pop up and this error:
    Exception in thread "thread applet-com/travelers/prefillapplet/PrefillApp.class-1" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)

Maybe you are looking for

  • Displaying thumbnail images in another panel when it  mouse clicked

    hi, I am using JAI, what i am trying to do is i am decoding the tiff file and creating thumbnail of that images and adding thumbnail images to one panel and enlarged images to another panel using DisplayJAI. Now when i will click i thumbnail images o

  • Supplier Entry

    Hi ! While setting up oracle payables. I am having problem defining supplier. It errors out saying FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-04068. ORA-01403: no data found Could someone suggest what setups/profile options

  • I changed my email on my apple ID now I can't update my apps or access my purchase history

    My old email was closed so I signed in to my applied and changed to my new email. Now I cannot access my purchase history or update my apps. Please any help would be appreciated

  • TS3899 yahoo contacts don't show up

    Hello, I have set up yahoo mail on my iphone 5c and I can get/receive emails but no contacts have synced over. I do have the contacts button turned on. Any ideas?

  • Welcome page should be displayed first no matter which page you run

    Hi, we have a project in that few jspx pages are there... no matter which page i run after authentication i should get the welcome page first i tried to put this functionality in task flow by making welcome page as default activity for all taskflows