Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Servo mac3 reprovision #812

Open
5 of 17 tasks
edunham opened this issue Mar 9, 2018 · 2 comments
Open
5 of 17 tasks

Servo mac3 reprovision #812

edunham opened this issue Mar 9, 2018 · 2 comments
Assignees

Comments

@edunham
Copy link
Contributor

edunham commented Mar 9, 2018

This ticket is for my reference and testing the newly checklist-ified instructions from https://github.com/servo/servo/wiki/SaltStack-Administration, because it turns out picking things back up at the right spot after handling interrupts isn't something brains are optimized for.

  • Get password from ticket

  • Install latest or compatible Xcode and commandline tools from the Appstore
    If the app store version of xcode is incompatible with the OSX version:

    • Look up what version of xcode is required for the OSX version
    • Download that version from developer.apple.com/download/more (use search box)
    • When download is complete, double click the .dmg in downloads and follow the drag-and-drop instructions to install
    • If there's a gray 🚫 on the xcode icon, OS updates are required to run it. Click applications, click the updates tab, and let it reboot and install updates.
    • Run xcodebuild --install when connected via VNC viewer. The installation command creates pop-ups which must be clicked to successfully install xcode.
  • Verify the license:

sudo xcodebuild -license
  • Install brew and git and pip:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off
brew install git
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile
sudo easy_install -s /usr/bin pip
  • Download salt files:
curl https://raw.githubusercontent.com/servo/saltfs/master/.travis/install_salt.sh | sh -s osx
curl -O https://raw.githubusercontent.com/saltstack/salt/develop/pkg/darwin/com.saltstack.salt.minion.plist
  • Add the following to the com.saltstack.salt.minion.plist file just after the Label section:
     <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
        <key>HOME</key>
        <string>/Users/administrator</string>
    </dict>
sudo cp com.saltstack.salt.minion.plist /Library/LaunchDaemons/
sudo bash -c "echo '52.37.76.55 salt' >> /etc/hosts"
sudo mkdir /etc/salt
sudo mkdir /var/log/salt
sudo salt-run launchd.write_launchd_plist salt-minion
printf 'id: servo-mac10' | sudo tee /etc/salt/minion # replace servo-linux10 with the builder name 
sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.minion.plist
  • Set screen resolution to 1280x960 or else reftests will fail randomly

  • Create a standard user named 'Tom Servo', account name servo, give him a password, and log in.

    • Set up to autologin on reboot. LEAVE LOGGED IN (else reftests will fail)
  • Do the following to stop coreaudiod from using 100% of a cpu:

sudo launchctl load -w /system/library/launchdaemons/com.apple.blued.plist
  • And do this to stop mds/mdworker from using another 100% of a cpu:
sudo launchctl unload -w /system/library/launchdaemons/com.apple.metadata.mds.plist 
  • Delete any residual files which might be left in /Users/administrator/Downloads, as they're implicated in issues with FileStatsAgent.
@edunham edunham self-assigned this Mar 9, 2018
@edunham
Copy link
Contributor Author

edunham commented Mar 12, 2018

host failed some OS updates but they appear to have installed correctly on the second try

@edunham
Copy link
Contributor Author

edunham commented Mar 12, 2018

installed xcode but xcodebuild --install yields error complaining that it is a commandline tools instance. Re-installing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant