Maintenance

  • Home
  • Log in
  • « Setting up a Jenkins server to build eXist dist-war
  • teiJenkins machine: enabling unattended upgrades »

Setting up a Mac for use in HCMC labs

Posted by gregster on 07 Dec 2011 in R & D

We need to create a default profile for users so we don't have to add software licenses and so forth every time we have someone new start work.

Default profile
===============
Add all apps and launch each one of them as an admin user. If you don't you can have problems launching them as a standard user.
Create a user called "default" - do not set a password.
Log in as "default"
Launch all apps and configure them appropriately. Clear the cache, history & cookies in each browser.
Clear the "default" user's caches. Go to /Users/default/Library/Caches & delete all the files in this folder.
When the set up looks good open the "Keychain Access" utility. Select "Login" from the "Keychains" area then select the "File" menu and chose "Delete Keychain login".
Log out and back in as an admin.

Note that the following *only* applies to the English profile. I assume you have similar work to do for each profile you work on.
To set our new profile as the default, open a terminal and
Become root: sudo su
Head over to the profiles directory: cd /System/Library/User\ Template/
Back up the default profile: tar czvf stock_profile.tar.gz /System/Library/User\ Template/English.lproj/
Delete the default profile directory contents: rm -rf /System/Library/User\ Template/English.lproj/*
Copy your fresh profile over: cp -R /Users/default/* /System/Library/User\ Template/English.lproj/
NOTE: make sure that this copies over any hidden directories and files
This process *will* cause permissions on the default profile to be hosed, so restart the machine and run "Repair Disk Permissions" from the "Disk Utility" app

oXygen XML editor
=================
Set oXygen vmoptions to be a bit more useful - you may need to change the -Xmx2048m to something lower if you don't have enough RAM. Run this sed one-liner to make the changes inline:
sudo sed -i 's/-Xss650K -Xms128m -Xmx512m -XX:SoftRefLRUPolicyMSPerMB=10 -XX:MaxPermSize=256m/-Xss64m -Xms128m -Xmx2048m -XX:SoftRefLRUPolicyMSPerMB=10 -XX:MaxPermSize=512m -XX:+UseParallelGC/g' /Applications/oxygen/Oxygen.app/Contents/Info.plist

Corporate bling/optimizing
==========================
Default login screen wallpaper is here: /System/Library/CoreServices/DefaultDesktop.jpg - replace it with a branded UVic jpg

Turn off Dashboard, it's a waste of RAM: sudo defaults write /Library/Preferences/com.apple.dashboard mcx-disabled -boolean YES

This entry was posted by Greg and filed under R & D.

Maintenance

This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent.
  • Home
  • Recently
  • Archives
  • Categories

Search

Categories

  • All
  • Announcements
  • Hit by a bus
  • Labs
    • Activity log
    • Documentation
  • Notes
  • R & D
    • Activity log
    • Documentation
  • Servers
    • Activity log
    • Documentation
  • Tasks

All blogs

  • Academic
  • AdaptiveDB
  • Admin
  • Announcements
  • CanMys
  • Cascade
  • CGWP
  • ColDesp
  • Depts
  • DVPP
  • Endings
  • HCMC Blogs
  • Landscapes
  • LEMDO
  • Linguistics
  • Maint
  • LondonMap
  • Mariage
  • MoM
  • Moses
  • Pro-D
  • Projects
  • ScanCan
  • HumsSites
  • Wendat

This collection ©2026 by admin • Help • Bootstrap CMS