Tag Info

New answers tagged

1

You need to create a "bare" git repo: a repository that can never have files checked out. Everyone pulls and pushes from the server like normal, but nobody can actually work on the server (unless they make a non-bare clone). If you are creating a new repository called "my_bare_repo.git", you can make it bare like so: cd /Users/git (or whatever) git init ...


1

sudo systemsetup -setremotelogin on sudo systemsetup -setremotelogin off


1

The ; and && are interpreted by bash on the local machine. You can see this by running ssh 127.0.0.1 -t env && env: the second time, there will be no SSH_CONNECTION variable. You can quote the entire command to get it to work properly: ssh -t $host 'sudo softwareupdate -ia && sudo shutdown -r now' In my opinion, -t should only ...


0

No reason you couldn't do this. If you have already enabled remote login for ssh or screen sharing then you are good to go! If not then as you say use target mode to amend the settings.


0

I am not sure about the reboot issue, but setting up a script to run sudo commands without inputting the password is fairly easy. Take a look at Step 4 of this answer I previously wrote (it was for something else entirely, but the steps to enable running sudo without a password are universal). Note that actual command to run your script will change to sudo ...



Top 50 recent answers are included