Setting the hostname on your Mac

Setting the hostname on your Mac using scuttle

  1. Open a terminal.
  2. Type the following command to change the primary hostname of your Mac:
    sudo scutil –set HostName <new host name>
  3. Type the following command to change the Bonjour hostname of your Mac:
    sudo scutil –set LocalHostName <new host name>
  4. Optional: If you also want to change the computer name, type the following command:
    sudo scutil –set ComputerName <new name>
Like this:
 sudo scutil --get HostName
 sudo scutil --get LocalHostName
 sudo scutil --get ComputerName

How to automount an SMB share in Mac OS X

How to automount an SMB share in Mac OS X

  1. Connect to your network share, in Finder, Select Go, then Connect to server
  2. Enter the credentials for your login to your network drive and tick the ‘remember in keychain’
  3. Open system settings, select users and groups then click on login items
  4. Drag the icon for your network drive from your desktop to the startup items.

Moving a Lightroom catalog from PC to Mac

Something along these lines,
On your Windows PC

  1. Select File then Export to Catalog
  2. Select a name and location for the new export catalog
  3. Wait a long time for it to copy the catalog file and all your photos to the new location.

On your Mac

  1. Create a new Catalog in your desired location
  2. From the File menu choose Import from Another catalog
  3. Chose to either
    1. Import files and leave them where they are
    2. Copy files to another location and then import
  4. Option a is quicker, but doesn’t move the files
    Option B is slower, but will move the files to another location if thats what you want.

 

Take pictures of the screen on your Mac

Press Shift-Command-3 to take a picture of the whole screen. To capture just part of the screen, press Shift-Command-4.
To take a picture of a window, press Shift-Command-4-Space bar, move the pointer over the window, then click. To cancel, press Escape before you click.
After you take a screenshot, it appears as a PNG file on your desktop.

Become super users (root) on Mac OS X

 

  • From the Apple menu choose System Preferences….
  • From the View menu choose Users & Groups.
  • Click the lock and authenticate as an administrator account.
  • Click Login Options….
  • Click the “Edit…” or “Join…” button at the bottom right.
  • Click the “Open Directory Utility…” button.
  • Click the lock in the Directory Utility window.
  • Enter an administrator account name and password, then click OK.
  • Choose Enable Root User from the Edit menu.
  • Enter the root password you wish to use in both the Password and Verify fields, then click OK.
  • Or from Terminal when logged in as an admin user –
    dsenableroot to enable,
    dsenableroot -d to disable