Add a user to a group on OSX
Quick and easy adding of a user to a group on OSX
sudo dscl localhost -append /Local/Default/Groups/thegroupname GroupMembership theusername
Quick and easy adding of a user to a group on OSX
sudo dscl localhost -append /Local/Default/Groups/thegroupname GroupMembership theusername
From the commandline: –
dscl . list /Users
Nice and simple;
pmset sleepnow
If you’re using finder on the Mac and you can’t see files with a ‘.’ in front of them (.ssh etc) then use the following from a terminal: –
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
So, I’ve been working on an iOS project in Unity and wanted to build on a PC and just use a Mac for the signing step. This allows me to throw processing power at the build (the PC) and just use a low-end Mac Mini to handle the less labour intensive signing.
Technically, a Mac isn’t needed in the pipeline (PC’s can handle the sign) but I’m still a bit sceptical about signing final release builds on a PC, and would prefer to keep things safe by signing on the hardware and tools that Apple recommends.
Quick tutorial on setting up an OSX slave that can be used from the PC…
As mentioned above in point 3.2.2, the credentials for connecting to the Mac have to be set up. After clicking the “Add” button do the following: –
And that’s it. When you launch the node it should connect to the Mac and you’ve got a Mac slave. I’ll add another post on how to setup the signing soon.
We want to be able to login to a mac using ssh but don’t want to type a password every time. This is done by allowing Remote Login for a given user on the Mac and adding a public key to the Mac for the PC you’re logging in from.
That should do it. The next ssh jenkins@JENKINS_SLAVE will login without asking for a password
Also, worth noting that Sierra or above will need to be a 2048 bit rsa or they won’t work. See here for more info
I got this message (again) this morning and needed to open the application anyway. Unfortunately, “System Preferences->Security & Privacy” has the “Anywhere” option removed by default in El Capitan, Sierra and High Sierra (and above I assume). To get it back, just do this from a terminal: –
sudo spctl --master-disable
This will re-enable the option in the settings panel by disabling the security check. Obviously, don’t do this unless you know what you’re doing (see here for more details)
Hope it helps
Quick note so I don’t forget this for next time…
ssh-keygen -f ~/.ssh/[keyname]
e.g. ssh-keygen -f ~/.ssh/myuser
This will generate two files: –
myuser.pub <- public key
myuser <- private key
The latter of the two files is your private key. Keep it secret, keep it safe. The former is your public key. That’s the one you’ll need to supply to someone to get access to a remote server that you’re going to ssh to
oh, and one other thing. You may need to chown the .ssh directory to 600 so it has enough rights to be accessed for the login. (chown -R 600 .ssh)
The code for the hierarchy display was a mess so I’ve given it a rework. I now have an editor in C# with an embedded C++ DX11 interface. The hierarchy display shows entities and components used in the current scene and I’ve integrated bullet so I’ve got a working physics system. Feel like I’m making some progress now…
Just spent an evening getting my iMac hooked up again so I can start on the iOS implementation of the code. Apple have done a nice job of reworking the certificate/identifiers/devices/provisioning profile pish and it’s now usable. It took me about 30 mins tonight to clean out the Mac and rebuild everything from the ground up. Way better than the day that it used to take due to bugs and poor instructions!
So I can now build a test app on the iMac which is reading from the PC harddrive via a share. This allows me to use VS and avoid the nightmare that is XCode. I’ve installed synergy (http://synergy-foss.org) on both the PC and the Mac so the mac shares my keyboard and mouse so all I need to do is move the mouse over xcode and hit F5 to get a build onto the iPad… nice!
X360 was approved by Microsoft today so that’s one out of the way. PC, PS3, iOS and Android to go…