OS X Lion Keeps its Yummy UNIX Flavor

1. The Terminal. The terminal.app is, of course, sacred in OS X, and nothing much has changed there. Apple has even improved the terminal in Lion and showcased it as a major app and added new features such as the full-screen terminal window, new appearance and status controls, and drag-and-drop proxy icons

Terminal

2. X11. The X Window System, commonly called X11, is a GUI and network system developed in the 1980s that allows UNIX users to connect to other systems and run apps via xterm. There is a rich set of libraries and APIs to build those GUI apps. While the system is very outdated and has been supplanted by many other development systems, it is also a staple at many universities and research organizations. For that matter, UNIX was developed much earlier, and it remains viable — though drastically improved. So just being an older technology doesn’t mean it must automatically be eliminated from Lion. Customers still want and use X11.

X11

Despite that, there have been recent rumors that Apple would drop support for X11 in Lion, but apparently cooler heads prevailed, and X11 remains fully supported and even called out in Apple’s list of major Lion apps.

What good does it be to be a fully certified UNIX system and then drop technologies that are core to UNIX specialists?

3. NFS. The Network File System (NFS) is a UNIX-born system that allows users to mount file systems on remote computers as if they were local drives. Up through Snow Leopard, Apple used NFS v3, and while it worked for some, it was often unsatisfactory for very advanced users. One of the biggest complaints of my own customers when I was with Apple was from researchers having trouble with Apple’s implementation of NFS.

In Lion, Apple has implemented NFS v4 and touts that on its page of new features for OS X Lion (under the Networking heading.) Things should go better now with NFS experts using OS X Lion and a full implementation of v4.

Hexley
Hexley, the Darwin mascot

4. Samba. I have read, but not yet verified, that Apple was forced to remove the formerly bundled Samba software because Samna has moved to the more strict GPLv3 license, and so Apple cannot use it commercially. Apple is now supplying its own tools, and it’ll be interesting to see how that goes.

5. Enable Root User. In Snow Leopard, Apple moved the Directory Utilities from /Applications/Utilities to /System/Library/CoreServices. I tried following the Snow Leopard protocol for enabling and disabling the root user, but had no success doing that. It may be that Apple forgot to attend to that detail with changes in Lion, or, more likely, changed how it’s implemented. Here’s a reminder & reference on how to do it in Snow Leopard.

6. Web Server. Nothing seems to have changed with the Apache Web server, at version 2.2.19. You turn it on in System Preferences -> Sharing -> Web Sharing and all the configuration files are still in /etc/apache2.

Apache

7. Perl. Perl has gone from 5.10.0 in Snow Leopard to 5.12.3 in Lion. Perl 5.14 was released in May, but Apple is always conservative there. Because backward compatibility of Perl 6 with Perl 5 code is not a stated goal, it’s probably better to ship Lion with Perl 5 and let advanced users work with Perl 6 on an experimental basis. More details would cast us into a virtual religious discussion, but I welcome reader feedback.

8. ASLR Security. The implementation of Address Space Layout Randomization (ASLR) was considered technically incomplete and thus theoretically vulnerable in Snow Leopard. Apple hired a former National Security Agency vulnerability expert, David Rice, perhaps to oversee these kinds of details, and, according to an independent OS X security expert Charlie Miller, the Lion implementation appears to be much more robust. Vista was actually ahead of OS X in this regard.

In Lion, Safari adds sandboxing, something that Google’s Chrome browser has had for some time.

9. UNIX Shells. Nothing has changed here, and the default shell is still Bash. Here are the shells that are available in Lion.

UNIX shells

In Snow Leopard’s GUI, you had to know the secret incantation to see, for example the UNIX user ID, UNIX Group, and default login shell: System Preferences -> Accounts -> Select User -> Right Click -> Advanced Options. That’s because changing some of those values without expertise could lock you out of your account. It’s the same in Lion.

10. Text Editors. Nothing to see here. UNIX nutcases will be find that the standard UNIX editors, pico->nano, emacs, and vi->vim are still in place. Although the best UNIX X11 editor (IMO) is Nedit, it isn’t included and never has been. Too bad.

{End}

As you can see from the above, a casual perusal of the UNIX underpinnings suggests that not a whole lot has changed in Lion. It’s still the UNIX we’ve come to know and love. Of course, this brief summary isn’t meant to be a detailed change log of every UNIX feature, going from Snow Leopard to Lion. Rather, it’s to suggest that a little digging into Lion shows that we need not worry too much about Apple fundamentally changing the UNIX-y goodness of OS X Lion. No matter what Apple does on the topmost levels of the GUI to make it easier and more fun to use, like iOS, OS X Lion remains viable for the technical UNIX expert.

And that’s how it should remain.

_______________________

* Darwin’s mascot is Hexley. Darwin is, these days, primarily FreeBSD.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WIN an iPhone 16 Pro Max!