prospective_user asks:
"I
am a heavy user of Unix, spend most of my time running Linux and am
considering getting myself an iBook, after seeing a considerable
amount of exposure Macs/Apple have in both Slashdot and the O'Reilly
Network. Given that MacOS X is based on FreeBSD/Mach, I suppose that the usual
Unix libraries and environments (like ncurses and tcl/tk) are
available in MacOS X (which I hope is true, for text-based
applications). In fact, I'm concerned about the Unix side of MacOS X
and also plan on running Debian/PPC on it, but I plan to primarily use
MacOS X. So, before having an (uncertain) investment in a new platform, it
would be reasonable to have a bit more of background on it and thus,
the questions: how well does MacOS X support traditional Unix
applications? For instance, how do the following applications run
under MacOS X (which I use the most): teTeX, GNU Emacs, mutt and
fetchmail?" Note that the submittor isn't asking if OSX is or is
not a Unix; we've
fielded
that question already. No, the question here is where does OSX
differ from the other unicies.
"Also regarding the investment in a new platform and coming from the
x86 world, I'm a bit interested about the PowerPC performance in
comparison to what I could get with a x86 notebook. I've read some
articles and pages that suggest that PowerPCs may not be fast (or, in
fact, may be quite slower than their x86 counterparts):
Some of the sources I've read are:
these
pages, from
D. J. Bernsteins's website, and
this article on
processor performance from the
GMP website.
Also, as some later questions, can the portable Macs be plugged to
non-mac monitors? And does MacOS X feature a packet filter like Linux
or other BSDs do?
Any comments and experiences with these machines are welcome.
Thanks."
Actually, you can open up GUI apps from the console.
try "man open" at the command prompt.
and from what the guy was asking originally, i've had no problems running GNU software. I got BASH to compile and set it up as default shell, i've gotten VI to compile, and GNU Emacs seems to run just fine (even m-x tetris is available).
The CLI is a different world from the GUI, but you can turn on all most options to allow the finder to see hidden directories, the whole nine yards. Check out some Mac tip and trick sites...Admittedly it's not default in the OS and you have to peek around, but come on, y'all like UNIX, so why get lazy about learning the tricks of this system.
It runs nearly all of my favorite open source unix apps, including the X applications. I am personally using mutt, gvim (that's vim with the GTK frontend), nethack and a few others. I like the new operating system very much, and even though bits of it don't look like unix, that's usually because they're NeXTish instead.
It's also probably reelevant to mention that the GNUstep libraries are mostly source-compatible with Apple's Cocoa API, so you can compile GNUstep apps and they'll work just like "native" OS X apps. Plus the development tools are all completely free (unlike the other major commercial desktop OS).
These are the exact same complaints aired in 1988 when the first NeXT machines shipped with NeXTstep 1.0. I agree with everything you've said. But keep in mind, Mac OS X is its own funky flavor of unix for a reason. I just wish NetInfo was optional. NI is a dream on a large NI network (I used to help admin 320 NeXTstations across our Math department), but it's a pain for someone that doesn't need its offerings.
Ignorance or Evolution? It's hard to say. But I can tell you I've been happy with Mac OS X thus far. Final Cut Pro 3.0 works perfectly. My digital cameras (USB still photo and FireWire MiniDV) integrate fine. OmniWeb 4.1 is looking to be a great new browser (plans for 4.2/5.0 are sounding awesome). And yet I can still run all of the goodies I'm accustom to on my Sun and my Linux box.
That said, OS X is not for someone who wants Linux in the first place. If you want the X Window System, if you want GTK or Qt, if you want GNOME/KDE/etc... do yourself a favor and build a Linux box. Running these under OS X is possible, but a kluge.
Mac OS X is a whole new world. Learn its ways and tools, compute with peace.
Hope this helps.
Whether you call it Unix at all depends on your definition. Depending
/bin, /sbin, and /usr are
/etc/passwd is essentially a stub. There is
/etc/inittab. There are few useful things in /usr/lib, /usr/share,
/etc, but /Library and /System/Library are full of goodies
/System/Library/Perl and /System/Library/OpenSSL). There is no
/Users (which through some automount magic
/Network/Users with the local /Users) Again, this system is
/System/Library and build your own
on whether you look at OSX from a kernel perspective, as a development
platform, a unix user, or a unix administrator, it can vary between
being a "true unix" to something very foreign.
It most looks like unix if look at a system call interface (aka
section 2 of the man pages. Things like open, read, write, close,
fork, and exec). The user commands (section 1 of the man pages. Things
like ls,cp, and rm) exist but all of
entirely hidden from the GUI. For actual user commands, they are in
some ways rather spartan (traditional BSD versions, not all-singing,
all-dancing GNU versions.) but there are some rather interesting
additions (emacs, tcsh, pico, gcc, autoconf, and gnu tar.)
Standard Unix system libraries (section 3 of the man pages
fopen,fread,printf,system,and popen) exist as a "non-preferred"
interface. The command line utilities are built against them, but
building an arbitrary tarball developed under linux might show some
compatiblity quirks. (those same quirks might exist trying to port to
FreeBSD) Most of the file and process oriented tasks can be done in
the OS X specific libraries with an API entirely unlike the POSIX ones
in libc. (This isn't anything new really, these OS X libraries are the
updated versions of what came with the first NextStations in 1987.)
Shared libraries are somewhat different than what probably currently
exists in FreeBSD. I bet it started because NeXT implemented shared
libraries before the became standard in BSD, but they need to continue
their own system because it hooks into the object oriented IPC
framework that is much of what the makes the system interesting.
From a system administrators standpoint (I guess to keep my analogies,
section 4 (device files) and section 5 (configuration files)) things
are radically different.
no
/var, or
(like
/home, instead there is
merges
inherited from NeXT.
As a user, its a modern mouse and windows type of system. Its slightly
more interapplication oriented, less monolithic application oriented.
Like my friends who used NeXT systems in the past, there seem to be
two ways to deal with the system peculiarities. The first is to assume
that the system is a very stripped down Unix system, ignore whats in
/Library and
/usr/local/{bin,lib,share}. The other way is to buy into its
weirdness.