computers:mac_basic_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computers:mac_basic_setup [2012/02/07 12:36] – [Ownership and permission] chkuo | computers:mac_basic_setup [2020/08/07 12:40] (current) – chkuo | ||
---|---|---|---|
Line 5: | Line 5: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * MS Office available from the IPMB IT office (AS site license) | ||
==== Optional ==== | ==== Optional ==== | ||
Line 15: | Line 15: | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | * [[http:// | ||
===== System Preferences ===== | ===== System Preferences ===== | ||
* Energy Saver: Computer sleep = **never**, Display sleep = **10 min**, shutdown when UPS battery level is **below 20%**, **enable** start up automatically after a power failure. | * Energy Saver: Computer sleep = **never**, Display sleep = **10 min**, shutdown when UPS battery level is **below 20%**, **enable** start up automatically after a power failure. | ||
* Print & Fax: add lab printer | * Print & Fax: add lab printer | ||
- | * Network: set up lab intranet using AirPort | + | * Network: set up lab intranet using DHCP. If using a desktop with ethernet connect, turn off Wi-Fi |
- | * Bluetooth: **off** | + | * Bluetooth: **off** |
* Sharing: set **Computer Name**, enable **File Sharing** and **Remote Login** | * Sharing: set **Computer Name**, enable **File Sharing** and **Remote Login** | ||
* Accounts: disable **Automatic login**, display login window as **Name and password**, enable **Show input menu in login window** | * Accounts: disable **Automatic login**, display login window as **Name and password**, enable **Show input menu in login window** | ||
Line 33: | Line 38: | ||
* Assign one external hard drive for each mac workstation as the Time Machine backup drive. | * Assign one external hard drive for each mac workstation as the Time Machine backup drive. | ||
+ | ===== Network ===== | ||
+ | * Use Terminal, type '' | ||
+ | * e.g., '' | ||
+ | * IPv6; often cause problems | ||
+ | * to disable: '' | ||
+ | * to enable: '' | ||
- | ===== Ownership and permission | + | ===== xcode ===== |
- | * Use '' | + | < |
+ | # Mac OS X 10.9.4 | ||
+ | xcode-select --install | ||
+ | </code> | ||
+ | |||
+ | ===== Extended Attributes ===== | ||
+ | Some files may have extended attributes, for example: | ||
<code bash> | <code bash> | ||
- | $ cat / | + | chkuo@mesquite[~]$ ls -l |
- | # / | + | -rwxr-xr-x@ |
- | # m h dom mon dow user command | + | -rwxr-xr-x |
- | 0 * * * * root / | + | |
- | 1 * * * * root /bin/chmod -R a+rw / | + | |
</ | </ | ||
+ | |||
+ | The '' | ||
+ | <code bash> | ||
+ | chkuo@mesquite[~]$ ls -@l * | ||
+ | -rwxr-xr-x@ | ||
+ | com.apple.FinderInfo | ||
+ | com.apple.TextEncoding | ||
+ | -rwxr-xr-x | ||
+ | </ | ||
+ | |||
+ | To get rid of these extended attributes: | ||
+ | <code bash> | ||
+ | chkuo@mesquite[~]$ xattr -d com.apple.FinderInfo file1 | ||
+ | chkuo@mesquite[~]$ xattr -d com.apple.TextEncoding file1 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Newline characters ===== | ||
+ | Mac OS X and Unix uses different characters to denote newline break. This can cause problem when you need to manipulate files in Finder and Terminal. To convert between the two, use: | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # change linefeed from unix to mac | ||
+ | for x | ||
+ | do | ||
+ | echo " | ||
+ | tr ' | ||
+ | mv " | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | Or: | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # change linefeed from mac to unix | ||
+ | for x | ||
+ | do | ||
+ | echo " | ||
+ | tr ' | ||
+ | mv " | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | ===== Job scheduling ===== | ||
+ | In addition to the use of '' | ||
+ | <code bash> | ||
+ | sudo launchctl load -w / | ||
+ | </ | ||
+ | |||
+ | To turn it off again, use: | ||
+ | <code bash> | ||
+ | sudo launchctl unload -w / | ||
+ | </ | ||
+ | |||
+ | To check if the '' | ||
+ | <code bash> | ||
+ | cat / | ||
+ | <?xml version=" | ||
+ | < | ||
+ | <plist version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | For more details, read [[http:// | ||
+ | |||
+ | |||
+ | ===== Maintenance ===== | ||
+ | ==== Check Time Stamps ==== | ||
+ | Check when the maintenance scripts were run: | ||
+ | <code bash> | ||
+ | ls -al / | ||
+ | </ | ||
+ | |||
+ | Output should look like this: | ||
+ | <code bash> | ||
+ | chkuo@mesquite[~]$ ls -al / | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | </ | ||
+ | |||
+ | ==== Manual Execution ==== | ||
+ | In case the computer was shut down when the scripts were scheduled to run. | ||
+ | |||
+ | <code bash> | ||
+ | sudo periodic daily | ||
+ | sudo periodic weekly | ||
+ | sudo periodic monthly | ||
+ | </ | ||
+ | |||
+ | Or, to run all three at once: | ||
+ | <code bash> | ||
+ | sudo periodic daily weekly monthly | ||
+ | </ | ||
+ | |||
+ | ==== More Info ==== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
computers/mac_basic_setup.1328589373.txt.gz · Last modified: 2012/02/07 12:36 by chkuo