UNIX Commands to disable Expose and Dashboard

Teacher looking to block/disable Expose and Dashboard on iMac 2.2 gHz running 10.6.1
I use ARD 3.2 and want to use a UNIX command to disable features on the students computers. If you know other Commands, maintenance scripts, permissions, etc..those would be helpful as well.
Thanks for your time and help.
David

Hi David
To disable Dashboard:
defaults write com.apple.dashboard mcx-disabled -boolean YES
You have to restart the Dock afterwards:
killall Dock
You still have to tear Dashboard off the Dock although you could amend the com.apple.dock.plist If you wanted to? Amend the persistent-apps tile data settings. To re-enable Dashboard at a future date:
defaults write com.apple.dashboard mcx-disabled -boolean NO
Restart the Dock again with the same command.
Not sure if there is a command to disable Expose? I think some of its settings can be found in com.apple.systempreferences.plist? If it looks like it has what you want you should be able copy it either using the Copy feature in ARD or sending a Unix command like cp (man cp) instead.
Alternatively apply the plist to an OD Group as a managed preference assuming you've an OD environment?
Tony

Similar Messages

  • How can I disable expose and dashboard in Maverick?

    Any suggestions would be MOSt appreciated. Right now both of these keep popping up when using the Macbook pro trackpad AND the mouse. We are not using them anyway and want them disabled.
    Thanks, Martha

    Thank you both!
    I had already unchecked everything in mission control but I noticed that there was a place to select mouse buttons so I changed buttons down there. I had to select something for the secondary button (I had both right and left clicks on my iMac mouse set to primary button but there is no setting there on Maverick for it) so now the secondary button is set for "desktop" and we have to make sure we use only the left click.
    As far as the trackpad goes, I took off the secondary option for that so now we don't click accidentally on anything else.
    Now I'm looking for a way to disable the lit keyboard but only found settings as to how long it's on. I did have it on 5 seconds but when we used it, it kept going on and off and I think it's using up more battery power going on and off constantly so now it's set to 1 minute.

  • UNIX command for disabling Firewall in Leopard?

    I'd like to use ARD to send a unix command to all my Macs running Leopard that will set the OS's application firewall to "allow all incoming connections." I believe that's the default setting, but I've run into some machines that are setting specific access - not sure how, don't really care, just want to turn it off.
    I've been reading up on /usr/libexec/ApplicationFirewall/socketfilterfw but the Help seems incomplete and I'm not sure this will accomplish what I'm after.

    defaults write /Library/Preferences/com.apple.sharing.firewall state -boolean No
    followed by a reboot works like a charm. thanks for you help.

  • Analyzer API command to disable Navigate and Open button

    Hi,I would like to pass the parameters to Analyzer Java Web Client to disable Navigate and Open button.Is there any posibility in Analyzer API to do this?Thanks,Grofaty

    Hi,My system is:- Essbase 6.5.3- Analyzer 6.1.1

  • Expose and dashboard prefs

    I use the active screen corners to activate expose and my screensaver but I was wondering if there is a way to control the size of the area my mouse must hit. It seems that sometimes if I go to close a window that is near the edge of the screen (the close button) expose kicks in. can one adjust the size of the active area?

    tell application "System Events" to key code 111 --F12
    else if theResultstring is "Expose 2" then
    tell application "System Events" to key code 101 --F9
    else if theResultstring is "Expose 3" then
    tell application "System Events" to key code 109 --F10
    else if theResultstring is "Expose 4" then
    tell application "System Events" to key code 103 --F11

  • 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*

  • Unix security and privacy setting unix command via apple remote desktop

    Could someone guide me on the unix command to set System Preferemces Security & Privacy to xx minutes [see screenshot please] via Apple Remote Desktop.
    https://dl.dropbox.com/u/5485939/osx_screenshots/sys%20pref%20security%20privacy .png
    Thank you,

    Pereference tend to be stored for the computer as a whole
    /Library/Preferences/
    or specifcally for the user
    /Users/USERNAME/Library/Preferences/
    well when I set required password for XX minutes... I see that
    /Users/USERNAME/Library/Preferences/com.apple.screensaver.plist modfication date & time changes to the current time & date... hMMM maybe the setting we want is stored here? Can we test this?
    If I check require password and then do the terminal command:
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see
        askForPassword = 1;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    turn it off
    run the terminal command;
    defaults read ~/Library/Preferences/com.apple.screensaver
    I see:
        askForPassword = 0;
        askForPasswordDelay = 0;
        tokenRemovalAction = 0;
    so I can turn it on with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    and I can turn it off with
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool FALSE
    So if a user is logged into a computer. I could send unix command as current console user.
    defaults write ~/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    BUT what if the user is logged out? or there are more then one user on the computer?
    then I could run unix command as user root and send
    defaults write /Users/USERNAME/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    (replace USERNAME with the user's short name.)
    but what if I don't know the user name? or names
    send unix command as root
    ls -al /Users/
    get back a list of folders
    bob
    surely
    shares
    and then do
    send unix command as root
    defaults write /Users/bob/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    defaults write /Users/surely/Library/Preferences/com.apple.screensaver askForPassword -bool TRUE
    you could also do some thing like
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 5
    if you want to change the period of time to lock to 5 seconds
    or
    defaults write ~/Library/Preferences/com.apple.screensaver askForPasswordDelay -integer 900
    (900 seconds  / 60 seconds = 15 minutes)

  • Excute Unix command Using PL SQL

    Greeting,
    how can I execute shell unix commands from PL SQL and without passing by the Java virtual machine, because my database server is not very performant to support the heaviness of Java.
    Thank you for ur help!!!

    Is this what you need ?
    TEST@db102 SQL> create table test(dir varchar2(100), url varchar2(200));
    Table created.
    TEST@db102 SQL> insert into test values('/tmp','http://otn.oracle.com');
    1 row created.
    TEST@db102 SQL> commit;
    Commit complete.
    TEST@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [ora102 work db102]$ cat /tmp/wget.sh
    #!/bin/bash
    rm -f /tmp/index.html
    /usr/bin/wget -P $1 $2
    [ora102 work db102]$ sqlplus test/test
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 29 17:11:28 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    TEST@db102 SQL> DECLARE
      2     v_dir   varchar2(100);
      3     v_url   varchar2(200);
      4  BEGIN
      5     select dir, url into v_dir, v_url
      6     from test;
      7     DBMS_SCHEDULER.CREATE_JOB(
      8     job_name=>'testjob',
      9     job_type=>'EXECUTABLE',
    10     job_action=>'/tmp/wget.sh',
    11     number_of_arguments => 2,
    12     enabled => FALSE);
    13     dbms_scheduler.set_job_argument_value('testjob',1,v_dir);
    14     dbms_scheduler.set_job_argument_value('testjob',2,v_url);
    15     dbms_scheduler.enable('testjob');
    16* end;
    TEST@db102 SQL> /
    PL/SQL procedure successfully completed.
    TEST@db102 SQL>sorry for lost indentations, but tags do not help us these days....

  • Unix Command Disabled in Startup Items

    I have a MaXtor One Touch II. After installing the software, during the Restart, Mac advised me that the security settings for an unknown (to me) file needed to be fixed or disabled. I disabled it and have now realised it was a UNIX command to watch the One Touch button. I found the file using System Profiler and it lies domant in the Startup Items.
    How do I enable it again?

    I don't know what mechanism is used to disable the "StartupItem" in this situation, but I have read that one way is by creating an invisible ".disabled" file in the top level of a given startup item's folder. If this is the case here, there are a few ways to get rid of the item but since there aren't a lot of details in your post, I'll suggest a generic method. Try opening "/Applications" > "AppleScript" > "Script Editor.app", paste these lines, and click "Run":<pre>set theItem to (choose folder default location path to startup items)
    set ppath to quoted form of (POSIX path of theItem & ".disabled")
    do shell script "mv " & ppath & " ~/.Trash" with administrator privileges</pre>Choose the folder corresponding to the specific startup that is to be enabled, and provide the "admin" username and password at the prompt. If the "startup item" has been disabled by another method, the script won't find a ".disabled" file so it should just fail harmlessly.
    However, there have been issues with other third party startup items being improperly programmed so that they required incorrect permissions in order to function. If this is the case, the "security settings" dialogue may continue to appear, despite choosing the "fix" option. If that happens, check the Maxtor website for updated software.

  • Unix command to click button on dialog box and close windows?

    I administer an elementary school computer lab of 35 eMacs all with OS 10.4.7 and with ARD 3.0. Our network server configuration requires a mounted server on each desktop in order to administer certain software packages we use. Every morning at start-up I have to walk around and manually click "Connect" on the dialog boxes. Then, with this configuration, each time a server is mounted, it opens up a Finder Window on the host machine so I've got to walk around and close windows on all the machines. I'm sure there must be an AppleScript or Unix command that I can set up to do these two tasks but I've not found it (or learned how to write it) in a few days of searching. Any suggestions?
    Thanks,
    Dan

    OK guys,
    I just succeeded in saving the AppleScript command as an application. I put it in the Login Items just after the servers. It worked beautifully! No more open windows exposing sensitive files to the risks of elementary students (how come the mounted volumes always appear on the desktop even when the "hide" button is checked?). It would be great if the mounted volumes were not showing at least in a setting like a school computer lab.
    Now, I'm still dealing with the mounting process requiring me to manually click on "Connect" every time. The Student account doesn't even have a password just to make such things easier. Still the process displays this:
    (Oh well, I guess I can't insert a ScreenShot.)
    Here's what it says: Connect to the file server "server name."
    Connect as: Registered User
    Name: "account name"
    √Remember password in keychain
    (and then two buttons) Cancel or Connect
    That's where I'm at right now. My district Tech. Support folks say that there's no way to avoid the dialog box but John seems to do it OK. They also pointed me to an online source (www.bombich.com) that I haven't yet checked out.
    Thanks again,
    Dan

  • Commands disabled in Crystal Dashboard Design

    Hi,
    I've a big problem with an installation of Crystal Dashboard Design:
    starting to use the product I saw that some commands are disabled.
    Some commands like SAVE, SAVE AS or Export to Powerpoint or Outlook are disabled.
    Some of you know this problem?
    Thank you in advance
    Alessandro

    Hi,
    It sounds like the install might not have been completed properly. Please re-install the Flash player  once and test it. Incase it does not fix, please re-install the Xcelsius application. Make sure you have logged on to the system as Administrator.
    Thanks,
    Amit

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • How to execute unix command through odi and store the result in table

    I have to reconcile  if data is loaded in table from csv file or not . I have to create a oracle data integrator package/interface/procedure to execute unix command to count number of rows in the csv files and store the count result in a table then i have to query the loaded table and count number of rows there and store in the table and have to compare is counts are same or not,  Please assist me how to make package/interface/procedure to  execute unix command and store result in oracle table.
    Thanks in Advance

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • Having trouble in running a unix command and getting the output

    Hi,
    I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
    import java.io.*;
    public class RunCommand {
        public static void main(String args[]) {
            String s = null;
            try {
                Process p = Runtime.getRuntime().exec("cat UNIX_ASCII_TEXT_FILE | A_UNIX_PROGRAM -d");
                BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
                // read the output from the command
                System.out.println("Here is the standard output of the command:\n");
                while ((s = stdInput.readLine()) != null) {
                    System.out.println(s);
                // read any errors from the attempted command
                System.out.println("Here is the standard error of the command (if any):\n");
                while ((s = stdError.readLine()) != null) {
                    System.out.println(s);
                System.exit(0);
            catch (IOException e) {
                System.out.println("exception happened - here's what I know: ");
                e.printStackTrace();
                System.exit(-1);
    }The error message that I am getting is
    Here is the standard output of the command:
    SLu|%%$$=
    Here is the standard error of the command (if any):
    cat: cannot open |
    cat: cannot open A_UNIX_PROGRAM
    cat: cannot open -dLooks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.

    You might read this article and see if its approach works.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Cannot Drag and Drop Computer Name onto saved unix command

    I am using ARD 3.3. When trying to drag a computer from Scanner to a Unix command on the sidebar, it does not populate in the task. You have to manually open the command, and then drop into the Computer list. Deleting the com.apple.remotedesktop.plist will correct the problem for about 1 day, but then it goes back to normal. Is there a setting that I am overlooking?
    Thank you.

    I reinstalled ADE and also changed the USB port I was using. No problems.
    I've called BN tech support twice and they've been very helpful.

Maybe you are looking for

  • Hp deskjet aio auto scans every time it's turned on

    deskjet 340 aio every time I turn it on (if it's connected to my computer {windows xp pro}), it automatically opens scan window, scans (usually a blank page cuz nothings in the scanner) and opens a photo software program.  How do I change these setti

  • Unable to locate original files in a second library

    Hi everyone! I just got a new christmas cd, and opened my second itunes library (which I use to keep all my holiday music separate from everything else), only to find that itunes is unable to find the original files of all my music (with the little !

  • Including java script in struts

    Hii All, I wanted to use some java script function on onclick of button. like on click on calendar image i should invoke the cal control writtern in java script. Its a pure struts application. can any1 tell me how to include java script in struts ?

  • MP-4 Takes Unusually long to Render: Is this format the worst to render?

    I usually do my projects from my canon camera and the rendering of clips occurr very quickly. I just brought in some MP4 clips and they are taking 15 minutes or so to render a 1 minute clip. Is this format unusually long to render? I use streamclip t

  • Using BT Infinity 2 with asus n55u

    Hi, I was looking everywhere for a solution to my problem, which is that i cant get a connection to my asus n55u router ive tried everything to get it connected to bt but to no avail does anyone have any info on how to get it connected?