Wednesday, April 27, 2011

Inside Mac OS X 10.7 Lion: New Wi-Fi Diagnostics tool

Apple has added a new Wi-Fi Diagnostics utility to monitor the performance of wireless networks, record events, capture raw network frames, and log diagnostic data that can be sent to Apple by users for troubleshooting.

The new app is in the hidden /System/Library/CoreServices folder, where Mac OS X stores a variety of utility apps that are integrated into the Mac desktop, including the Dock, Finder, Software Update, and Archive Utility.

Users can launch the tool by Option clicking on the Wi-Fi Menu Bar icon, which then presents an otherwise hidden "Open Wi-Fi Diagnostics" option (below).


Lion Wi-Fi



Mac OS X 10.7 Lion sets, finds, corrects insecure folder permissions

Mac OS X 10.7 Lion makes system wide changes to standard folder ownership and permissions to enhance security, finding and recommending changes where necessary.

Apple reportedly informed developers that a number of folders in the System and Local file system domains would be changing their default permissions in Lion. This includes many system and Library folders moving from 775 (writable by the admin group) to 755 (writable only by root). This change prevents modification of core system files without authenticating as the root user.

The only remaining local Library folders that will support admin group writing include Caches, Fonts, Java, QuickTimeStreaming, Receipts and Tomcat; all others require root access to modify.

A developer reports to AppleInsider that this changes the required permissions on installed printer queues, but that the system handles this by simply noting after installation that a correction is needed. Once the user approves of the change, the system adjusts the permissions as it records the issue in the CUPS error log (below).

Lion CUPS


Another Mac OS X Lion, feature related to Auto Save (described earlier in our report on Auto Save, Versions and Time Machine), is also getting a new setting in System Preferences.

Under the Appearance pane, a new option to lock Auto Save documents after a specific time interval has been added in Lion DP2. The previous setting was to default at two weeks, with no option to turn the lock feature off.

Lion auto save file lock

Inside Mac OS X 10.7 Lion: AirDrop local file sharing

Mac OS X 10.7 Lion introduces a new feature in the Finder named AirDrop, designed for easy file sharing between nearby systems.

AirDrop has nothing in common with DropBox, a cloud-based file sharing service more akin to iDisk. Instead, AirDrop allows users to discover nearby users and share files with them directly, without needing to configure a common WiFi network.

For users who are already on the same network, it's long been possible to set up File Sharing, exchange account information and then perform file transfers. However, this involves some relatively complex technical understanding that many users find confusing, despite Apple's efforts to simplify things.

The concept of infrastructure mode networking is similar to meeting people on Facebook, where everyone logs in and can exchange messages easily, even with new people. The problem with this kind of networking, however, is that it requires a sophisticated central entity managing the network, accounts, and all of your shared messages (the job FaceBook does).

If you don't have an established network, you're now in the position of being at a party in a room full of strangers. You'll need to approach people and exchange pleasantries in person, something you won't need the infrastructure of a system like FaceBook to do. Of course, to do this, you'll need to all speak the same language, you might need an introduction, and others will have to want to talk to you.

That type of "ad hoc" networking can already be done between systems using a protocol like Bluetooth, which can introduce two devices and support simple file transfers. Bluetooth is rather slow however, and involves a layer of security that involves a PIN exchange. WiFi is much faster, but users typically use it in "infrastructure" mode, which assumes that you have a central base station negotiating the network transaction for you (and, like Time Capsule, perhaps also providing a shared disk).

Lion's new AirDrop makes basic file exchange between nearby users as simple as Bluetooth, as fast as WiFi, and as easy as drag and drop, with layers of security and personalization that combine with Apple's easily understandable user interface to make a conceptually complex task easy to initiate even for non technical users.

Three similar solutions

There's already a couple emerging standards aiming to do what AirDrop does. The developers of Bluetooth (which functions like a wireless USB link) have released Bluetooth 3.0+HS, which speeds up Bluetooth file transfers by initiating a connection over Bluetooth and then switching to WiFi to actually send the data.

The developers behind WiFi (which is expressly designed to provide wireless networking rather than being intended to support wireless peripherals like Bluetooth) have codified WiFi Direct, a new protocol that allows a WiFi enabled device to act more like Bluetooth on the side: finding other devices, establishing a temporary secure link, and then supporting direct file transfers or printer connections, for example.

Apple's AirDrop isn't based on either protocol, but works similar to WiFi Direct. It allows Macs (and likely in the future, iOS devices) to discover nearby systems capable of AirDrop, negotiate a secure ad hoc connection via WiFi (even if both systems are already connected to different WiFi base stations), then presents a simple interface that depicts each discovered user, allowing for files to simply be dropped on an icon to begin a transfer. The receiving user only needs to accept the transfer. It's as simple as shaking hands with a stranger.

AirDrop vs Bonjour

Note that Apple's Bonjour technology (formerly called Rendezvous) does something different: it helps systems on the same local (infrastructure mode) network to advertise and discover available services (such as shared printers, iTunes or iPhoto libraries, or Apple File Server shares), without having to manually configure a centralized DNS to allow finding what's available.

AirDrop works a bit like Bonjour without an existing network, enabling discovery of non-networked systems available and willing to set up a temporary connection. AirDrop's technology is currently used solely for file transfers in the Finder, but it is potentially useful for a variety of tasks (including printing or trading contacts), especially on mobile devices.

It appears AirDrop acts like a Bonjour for SSID (WiFi network name) advertisements which other WiFi interfaces can browse and connect to, as opposed to the traditional Bonjour role of AppleTalk-like IP DNS advertisements on an established network.

Inside Mac OS X 10.7 Lion: iChat 6 adds Yahoo IM, account integration, web page sharing

Apple's iCal 4.0 in Mac OS X 10.7 Lion's second Developer Preview adopts an iPad appearance and a new annual view.

Following the footsteps of Address Book 6.0, iCal 4.0 adopts an appearance similar to the iPad Calendar, with a leather bound top and pages that appear to be ripped off from the top edge.

Apart from the novelty "leather" menu bar, the overall look and feel of the app is nearly identical to the previous iCal, apart from a new Year view, which is both new to iCal and also to both the iPad and MobileMe versions of Apple's Calendar apps.

The iPad version of Calendar uses the same brown leather look as Lion's new iCal, but more closely matches the layout and design of the MobileMe Calendar, with a quick date selector at the bottom and a List view missing from Mac OS X's iCal.

Both the iPad and MobileMe calendars present a Day view as an open book, Week and Month views as a tear off calendar pad, and a List view that depicts upcoming event in a spiral bound section next to a torn-page Day view.

Lion's iCal presents the same torn page look for every view. Also different between the MobileMe and Lion version is the To Do list, which is represented as a tear off pad next to the calendar; in Lion's iCal, the To Do list is a conventional list that doesn't quite fit into the "torn page" appearance.