Wednesday, 13 February 2013

OS X Mountain Lion : Using Notes with your OS X Server… Round II

Some time ago I detailed instructions on getting OS X Mountain Lion Notes to work from your OS X Server. OK, in hindsight maybe I shouldn't have deleted that post LOL. However, Apple in their great kindness fixed the bug in OS X Mountain Lion 10.8.2 (build 12C60) that the instructions relied upon. In the meantime though one is still unable to enable Notes the normal way.

So yet again we're left with the decision to either using some other method of enabling Notes across devices, such as using iCloud, else finding yet another way to hitting Mountain Lion over the head to get it to work with your OS X Server.

Now I've been able to get Notes going in OS X Mountain Lion 10.8.2 (12C60 - or later if you've applied additional machine specific updates) although there's one big big caveat. These instructions seem to only work in an account that has never had an IMAP account added to the Mail, Contacts & Calendars System Preference. The moment a mail account has been added I've been unable to get the instructions to work. That ultimately means you need to do this in a new user account. Bummer! I haven't put a great deal of time into figuring out what the true reason why this is, so if anyone does manage to figure it out I'd appreciate you letting me know :-).

If you're prepared to go through the hassle of rebuilding your user account this is what you do…
  1. As a first thing you will need to add your OS X Server account(s) to an iOS device. Once you have done this add at least message to the mail inbox and at least one Note.
  2. Create a new user account. This can be a local or network user account as it seems not to matter as far as I can tell.
  3. Restart your computer and log directly into the new user account you created. Do NOT log into any other account.
  4. Launch and quit Keychain Access. This is not technically necessary although it does stop some errors that seem to appear with no real pattern to it.
  5. Launch Mail and immediately add your OS X Server IMAP account as a standard account, do nothing more than confirm that you can receive mail.
  6. If you need to add more than one OS X Server account, meaning you want Notes enabled for more than the one account, add the additional account in Mail now via the Accounts tab in Preferences.
  7. Once you have confirmed that IMAP is working for all accounts, quit Mail.
  8. Open System Preferences and go to the Mail, Contacts & Calendars panel. If all has gone to plan you should see your mail account(s) added as a standard mail account rather than an OS X Server account. Additionally, and this is the important bit, you should also see that both Mail and Notes enabled. If you see Notes enabled continue on. Otherwise, you need to start over by totally deleting the user account. Notes needs to have been automatically enabled - if you need to manually enable Notes at this point it isn't going to work.
  9. Add your OS X Server account(s) as an OS X Server in the Mail, Contacts & Calendars System Preference and enable all the services you want with a minimum of enabling Mail and Notes. Yes this is "doubling up" but we'll clean this up later. You should also notice that, yet again, when you go to enable Notes it'll just sit there with a spinning wheel not enabling. Don't worry about this… it is in fact enabled already.
  10. Quit System Preferences, reopen System Preferences and go to the Mail, Contacts & Calendars panel.
  11. You should now see that under your OS X Server account(s) that Notes is now enabled. Go to the standard mail account that was originally created and delete it. You should also note that both Mail and Notes have been disabled here (they were disabled by the enabling of the OS X Server account).
  12. Launch Notes. You may find it stalls or crashes on the first launch and you should also get an initial database failure. Upon relaunching Notes you should now see your OS X Server account(s). And now we're done!! :-D
UPDATE : This technique of enabling Notes from an OS X Server definitely does NOT work in OS X  Mountain Lion 10.8.4. I have only ever got it to work in 10.8.2 12C60 though to 10.8.3 12D78.

Wednesday, 26 September 2012

Safari 6: I hate you and your unified address & search bar!

Like some of you, hate is probably not the right word to use but I'm going to use it anyway when describing Apple's choice to be a follower rather than a leader with the implementation of a unified address and search bar in Safari 6.

Thing is, for the moment I just can't think of a stronger word to use! :-(

I simply don't get the choice that puts search, and the passing of information to Google, above and before the use of search domains. For those that don't know, search domains are, and I'm going to quote Apple's own Help document from within Mountain Lion here…

The search domains you enter in your Network preferences are automatically appended to names you type in Internet apps.

For example, if you specify the search domain apple.com, typing “store” in your web browser takes you to store.apple.com. Or, if you use campus.university.edu as a search domain, you can type “server1” in the Connect To Server dialog in the Finder to connect to server1.campus.university.edu.

That's all well and good, however, if I have a search domain of example.com and in my DNS a machine name of romeo.example.com, when I enter "romeo" into Safari 6 I'm not looking at the web site at romeo.example.com. Rather, I'm looking at search results about a Shakespearean lover boy from Google.

If I add say the following lines to my local /etc/hosts file…

172.24.1.25 romeo.example.com
172.24.1.25 romeo

… Safari 6 still wants to give me the same search results from Google. If I put into Safari 6 "http://romeo" it will then go to the right place but seriously, who does or expects that?!

This is simply WRONG… and I'm NOT HAPPY! For Apple… big FAIL!

Friday, 27 July 2012

Mountain Lion Server : Where art thou DCHP Server??

Just quick one to remind everyone who's thinking about upgrading to OS X Mountain Lion 10.8 Server that it does NOT come with a DCHP server. This for some is extremely important so before you go ahead and transition your server you might want to ready the full Features List for Mountain Lion Server.

Update : Apple has restored the GUI for the DHCP Server in Mountain Lion Server in 10.8.2.

Wednesday, 25 July 2012

Remote Login : Don't lose access to your Server

Like a lot of you, I manage my Servers through either the Server.app (and Server Admin Tools) and Apple Remote Desktop (ARD). For all of my day to day activities it's usually Remote Desktop as it's often simpler to manipulate things in the Finder.

However, there are times when having SSH shell access to your server is well worth having. For instance, just now I had the screensaver on one server (this one needs to be logged in to run a particular application) fail to give me the authentication window so I was unable to gain control of the system through ARD.

Without shell access my choices are rather limited here. Either blindly try to log out of the current user or Restart the system, through ARD. With shell access though I just needed to simply log in, use top to find the Screen Saver's process ID and then just kill the Screen Saver. Instant access to the Finder.

So before you think that using Terminal is too hard, it's always a good idea to remember to enable the "Allow remote login using SSH" option in Server.app (enabling Remote Login in the Sharing System Preference does the same thing) just in case you get stuck. Having the option there for you is always better than not having it.