Step 1: Create a folder for all your repositories
Ssh to your My Cloud instance (in my case called cloudy). The password is something you need to set in the web console.
ssh sshd@cloudy cd /usr/share mkdir git
Step 2: Create a git user
| [ | |
| { | |
| "id" : "73F3F654-9EC5-4876-8BF6-474E22029A49", | |
| "assets" : [ | |
| { | |
| "url" : "http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/comp_GL_G004_C010_v03_6Mbps.mov", | |
| "accessibilityLabel" : "Greenland", | |
| "type" : "video", | |
| "id" : "D388F00A-5A32-4431-A95C-38BF7FF7268D", | |
| "timeOfDay" : "day" |
| # mount the drive as read/write | |
| mount -rw / | |
| # create a directory for "disabled" extensions | |
| mkdir /Volumes/Macintosh\ HD/Library/ExtensionsDisabled | |
| # view files that exist in your Extensions folder but not the recovery partition | |
| kexts=`comm -23 <(ls /Volumes/Macintosh\ HD/Library/Extensions|sort) <(ls /Library/Extensions|sort)` | |
| echo $kexts | |
| # Tested on OSX Yosemite 10.10.4 | |
| # there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b | |
| # XXX TODO | |
| # should I disable com.google.Keystone.Agent ?? | |
| # http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
| # Stop DS_Store file creation on network connections | |
| # restart Finder afterwards |
Step 1: Create a folder for all your repositories
Ssh to your My Cloud instance (in my case called cloudy). The password is something you need to set in the web console.
ssh sshd@cloudy cd /usr/share mkdir git
Step 2: Create a git user
| #!/usr/bin/env bash | |
| # Close any open System Preferences panes, to prevent them from overriding | |
| # settings we’re about to change | |
| osascript -e 'tell application "System Preferences" to quit' | |
| # Ask for the administrator password upfront | |
| sudo -v | |
| # Keep-alive: update existing `sudo` time stamp until `.macos` has finished |