0% found this document useful (0 votes)
75 views

Mac Commands

The document provides instructions for various Mac terminal commands: 1) It describes commands for fixing issues with preferences panes not opening, Time Machine backups, binding to Active Directory, and more. 2) It also includes commands for setting permissions and ownership of files, enabling remote login, setting up imaging automation, and killing security warnings for applications. 3) Further terminal commands are provided for setting login hooks, mounting NTFS drives, and creating compressed archive files.

Uploaded by

outlaw68
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Mac Commands

The document provides instructions for various Mac terminal commands: 1) It describes commands for fixing issues with preferences panes not opening, Time Machine backups, binding to Active Directory, and more. 2) It also includes commands for setting permissions and ownership of files, enabling remote login, setting up imaging automation, and killing security warnings for applications. 3) Further terminal commands are provided for setting login hooks, mounting NTFS drives, and creating compressed archive files.

Uploaded by

outlaw68
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Mac Commands Cant open Energy Saver, Spolight or Desktop preference pane.

sudo mv /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework.disable d Reapply 10.7.4 Update


Fixing a Time Machine When it says there is an issue with ownership.

diskutil info /Volumes/DRIVE NAME | grep Owners sudo diskutil enableOwnership /Volumes/DRIVE NAME

Terminal To Rebind a System that refuses to bind to AD. In terminal run the following command Sudo s Cd /var/db/dslocal/nodes/Default/config ls -1 Kerberos:* rm Kerberos\:AD DOMAIN.NAME.plist sudo killall DirectoryService then rebind the system sudo rm -rdfv /Library/Preferences/DirectoryService sudo rm -rdfv /var/db/dslocal/nodes/Default/config sudo sudo killall -USR1 DirectoryService /private/var/db/dslocal/nodes/Default/config/Kerberos:YOURDOMAIN.NET.plist To kill Remote Controls defaults write /Library/Preferences/com.apple.driver.AppleIRControllerDeviceEnabled bool no To Show Hidden Files (and Revert Back) To reveal hidden files defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder

To revert back defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder To Change Ownersip and Gourp of a file sudo chown newuser filename sudo chgrp newgroup filename sudo chmod permissions filename An item in the Library/Startupitems folder must have the owner of "root", the group of "Wheel", and permissions of "-rwxr-xr-x" (i.e. chmod 751 /Library/Startupitems/file name) Permissions include read (4), write (2), execute (1), and no permission (0). So chmod 755 /File would mean Owner can read/write/execute (4+2+1 = 7) Group can read/Execute (4+1 = 5) Everyone can Read/Execute (4+1 = 5) To Set Up Image Automation Go to the netinstall-restore mount on the desktop of sctxsvr01 Go to netinstall-restore/Applications/Utilities/NetRestore Select preferences from the NetRestore Menu Select Enable Full Automation, and select the required images from the drop down menus. Time Machne Wont Work After Updating OS - Download EFIStudio if you don't have it - Launch EFIStudio; in the "Device" area, click on the field were it says "Display" and change it to "Ethernet" - Click on "Add Device" button below and in the new Editor window click on the "Write to com.apple.Boot.plist" button - Enter you password, close the program and reboot Mounting a toasted NTFS drive sudo mkdir -p /Volumes/C-DRIVE sudo /usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/C-DRIVE -olocale=en_US.UTF8,force,auto_xattr,defer_auth,defer_permissions,volname="C-DRIVE"

Login Hooks In Terminal type: sudo defaults write com.apple.loginwindow LoginHook /Library/Management/Script name Next type the following in Terminal: sudo chmod +x /Library/Management/Script Name To delete login hook sudo defaults delete com.apple.loginwindow LoginHook Allow Remote Login sudo systemsetup -setremotelogin on Fix ARD Sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all restart # Prefer 32-bit execution for Python 2.6.1 on Snow Leopard $ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes fix ARD on 10.6.7 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all Kill the This application was downloaded off the internet warning Sudo xattr -d -r com.apple.quarantine /Path/to/application/ Details.txt

http://casper.scotch.wa.edu.au/initialboot/sctqueryserial.php?Serial=xxx Create a tbz.2 file


cd ~/Desktop/ tar jcvf SCTInitialBoot2012.tbz2 SCTInitialBoot2012/

You might also like