Mac OS X: Bash scripts series-10

Source: Internet
Author: User
Document directory
  • 1.1 The Computer Administrator can set the function that requires admin to control the airport, which is provided for the first time in Mac OS X 10.5 leopard. It is easy to achieve in the GUI environment, see:
  • 1.2 settings in Snow Leopard:
  • 3. Disable finder from displaying the shared machine list in sidebar:
  • 5. Force Safari 4 to open a new webpage in the tab
Mac OS X: Bash scripts series-10
-- Preferences examples

 

Here are several examples of modifying system behavior by modifying plist files:

 

1.1 The Computer Administrator can set the function that requires admin to control the airport, which is provided for the first time in Mac OS X 10.5 leopard. It is easy to achieve in the GUI environment, see:

 

 

Corresponding shell:

Plistbuddy-c "add $ currentset: Network: interface: EN1: Airport: requireadmin bool yes"/library/preferences/systemconfiguration/preferences. plist

 

1.2 settings in Snow Leopard:

 

Corresponding shell:

Plistbuddy-c "add $ currentset: Network: interface: EN1: Airport: requireadminpowertoggle bool yes"/library/preferences/systemconfiguration/preferences. plist

2. Forbid the user to open the shell of the preferences of the finder:

Defaults write com. Apple. Finder prohibitfinderpreferences-bool Yes

 

3. Disable finder from displaying the shared machine list in sidebar:

Plistbuddy-c "set: networkbrowser: customlistproperties: COM. Apple. networkbrowser. backtomymacenabled no"

Plistbuddy-c "Set
: Networkbrowser: customlistproperties: COM. Apple. networkbrowser. bonjourenabled
No"

Plistbuddy-c "Set
: Networkbrowser: customlistproperties: COM. Apple. networkbrowser. connectedenabled
No"

 

4. Automatic update prohibited

4. 1 disable automatic update of Mac OS X:

Softwareupdate -- schedule off

 

4.2 Disable Automatic Updates to MS Office 2004:

Defaults write com. Microsoft. AutoUpdate howtocheck-string "Manual"

 

4.3 Disable Automatic Updates to MS Office 2008:

Defaults write com. Microsoft. autoupdate2 howtocheck-string "Manual"

 

4.4 disable automatic update of Adobe CS3

Sed-I ""'s: <autocheck> 1 </autocheck>: <autocheck> 0 </autocheck> :'/
/Users/$ user/library/application/support/Adobe/updater5/adobeupdaterprefs. dat

 

4.5 disable automatic update of Adobe cs4

Sed-I ""'s: <autocheck> 1 </autocheck>: <autocheck> 0 </autocheck> :'/
/Users/$ user/library/application/support/Adobe/updater6/adobeupdaterprefs. dat

5. Force Safari 4 to open a new webpage in the tab

Defaults write com. Apple. Safari targetedclickscreatetabs-bool true

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.