Top Ten Mac OS X Tips for Unix Geeks
Lisa writes "There are big differences between Mac OS X and
Unix machines. In this MacDevCenter article, Brian Jepson has assembled ten
tips to help achieve a smooth transition from Unix to OS X."
← Back to Stories (view on slashdot.org)
from the um,-install-debian-instead? dept
Wouldnt that defeat the purpose of using OSX?
I'm kidding, I'm kidding... jeez...
-B
Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.
had a brief segment last night showing the top 10 Mac OS X killer tips.. the link is here with some nifty tricks for your Mac..
If you're looking here for something insightful or thought provoking, you're probably looking in the wrong place.
I did not (and still don't?) now have anything against MacOS X but that articles makes it sounds like everything is turned up side down. Really, I had the belief that Mac OS X is just about same as everything else *nix. However, this article did good work in convincing something else.
I run entirely Solaris and Linux as my desktop environments. My wife has an iBook with OS X (not Jaguar yet). I do most of the administration on it for her, which has been fun since I hadn't used a Mac since 1989...and OS X is the most usable (for me) that I've found. I could almost use it as a workstation...except for screen real estate issues. I'm amazed that there seems to be no default way of running virtual screens in OS X -- which keeps me from being able to work effectively when I have to wade through dozens of terminal sessions on one box (and 'screen' isn't sufficient).
Short of running one of the X11 WMs described, does anyone have a native Aqua virtual window tool?
Actually its Option - Apple - Esc. That gets you to 'force quit'.
> The question that arises is not how to convert but WHY for God's name?
.. a bummer.
Because all other OS's go beep beep beep and eat your paper, and it was a really good paper. then you have to do it again and its not as good because you did it fast this time which is...
That and saving Christmas.
I don't need no instructions to know how to rock!!!!
And while Aqua is not open source, quite a few of the other components are. Like Darwin and all of it's parts. And everything you can get with Fink. And XDarwin (the XFree86 implementation). And all of that stuff. Working correctly, and with eye candy too.
The first is to select the file in the Finder, and drag it to a new location while holding down the Option and Command keys (or select Make Alias from the File menu). This creates a Mac OS alias that Cocoa, Carbon, and Classic applications can follow. However, Unix applications will ignore those links, seeing them as zero-byte files.
You can also create a link with ln or ln -s. If you use this kind of link, Unix, Cocoa, Carbon, and Classic applications will happily follow it.
I have no knowledge of the reasons for this design decision, but why isn't it just "All links are symlinks, no matter where they came from"?
Having links that the gui creates be incompatible with the command line, but having links the command line makes be compatible with the gui, just creates complication.
Apple's been on this site before... The Interface Hall of Shame
Pssst! It's because we wish to sounds divinely unprejudiced. This is a safe way of doing it while holding our defenses. *...dont tell anyone else*.
It's a directory dammit! Not a freakin' folder!!!
Thank you.
Now back to your regularly scheduled beowulf "jokes", first posts, goatse.cx links, trolls and astroturfers.
You are correct in what you're saying about Apple. Things would be a lot worse - in fact, we might not have much at all, just MacOS 7.xx on more expensive hardware. Or the PC revolution might not of happened at all. Who knows - and it's all academic anyway. Apple could not now - nor will they ever - have too much power in the PC space, so we can play with thier toys without needing to worry about feeding a monster.
That being said, OS/X is in of itself cool. It's pretty, stable, reasonably fast and it is *nix under the eye candy. Geeks like that. Being an Apple product is secondary to the fact that it's a really nice OS.
Soko
"Depression is merely anger without enthusiasm." - Anonymous
There's an editting error on the 2nd and 3rd lines of the table of directories in the article.
.trash - This directory contains files that have been dragged to the Trash.
./vol - This directory maps HFS+ file IDs to files.
AFAIK, it should read:
Isn't it suposed to be ~/.trash - in your user directory?
I don't own a Mac but I see 'em on the Sreen Savers.
Ever dream you could fly? Get up from the Flight Sim. I Fly
That reads like a logical fallacy. According to Rob, most Slashdot readers never post. It'd be more accurate to say "most Slashdot posters". Even then, there are wildly divergent belief systems in place. It wouldn't surprise me to learn that a significant portion of Slashdot readers were interested in useful, attractive mergers of proprietary and Open Source software.
how to invest, a novice's guide
Overpriced compared to what, exactly? Some beige box held together with duct tape? Probably so. Compared to equitable hardware (INCLUDING quality of internal parts and after-purchase support) probably not.
Score: -1 (Redundant)
NetInfo connection failed for server 127.0.0.1/local
In no particular order: /bin, add it to /etc/shells, and change root's shell and your shell. /home from somewhere. /etc 'cause most of that stuff is ignored.
* Forget tcsh and get bash, copy it to
* Go to The Fink Package Database and snag a ton of cool Open Source apps.
* Mount
* Usually stay away from
* Forget sudo and enable root access (I forget how, I don't have an OS X box in front of me), then use su.
* Don't delete ~/Library, that's where all your preferences are saved.
* Load XDarwin in rootless mode and run x2x way cool.
* Get the absolute latest autoconf, automake, etc that recognize Darwin.
* Don't forget to click "Require Password" in your screen saver.
* Put your own pictures in, er, somewhere in your home directory (don't remember where) so the screen saver can display them in its slide show.
Now if only the WM had "focus follows mouse" and iTunes played Ogg Vorbis.
Yes, Apple does get a better response these days... and why shouldn't it? They've clearly got a clue since OS9, and while not everything is open source, much of it is. They also seem committed to standards and interoperability. While Microsoft is busy mangling standards so that customers are compelled to buy other Microsoft products to assure everything works, Apple has become a vendor that actually cares about playing well with others.
My day job still requires me to write code for Windows, and I've got an old box loaded up with Red Hat's distro at home... but it's the iBook I have the most fun with these days, digging into Cocoa. It is pretty and a pleasure to use, yes, but under the hood it's packing a serious OS with a BSD pedigree.
The iBook may have cost more than a Windows laptop, but I feel it was worth it... especially in light of a very good set of developer tools that came with the unit, the equivalent of which would have set me back several hundred dollars with Windows.
If you think Slashdot is an Apple love-in without merit, go back and find praise predating recent versions of OS X. Slim pickings, I'd say.
Good grief. Can't this just be a "news for nerds" site? Who said Slashdot needs/wants/has a political agenda?
Patrick Doyle
I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
Their suggestion to use sudo is good advice for *any* Unix, not just MacOS X. Since I started to use it, I've reduced the time I spend as root by 80%, which probably reduces my chances of making a really ugly mistake by the same amount. I have to shake my head when I see people who do all their work in Unix as root -- it is only a matter of time before you make some fatal typo.
On the other hand, their advice to use tcsh/bash as a sudo command is poorly thought out. How is that any better than su? Better to use sudo with a few simple commands and scripts that need root for 80% of cases, and use su for the rest.
The question that arises is not how to convert but WHY for God's name?
So you can stop wasting time making the computer work, and actually get something done?
I read on Microsoft's web site that you can only use roman numerals in OS X.
This space intentionally left blank.
Friend, FreeBSD isn't UNIX. UNIX is a trademark, and FreeBSD can't be called UNIX.
Besides Mac OS X contains a complete FreeBSD 4.4 distribution-- it is, in fact, a superset of FreeBSD-- so OS X is just as much a UNIX operating system as FreeBSD is.
I write in my journal
I think you'll find that most people aren't Open Source advocates in the sense that RMS is. I'm happy to puchase/use closed source stuff provided that:
1) it is worth how much I pay
2) they are generally open in other ways (file formats, etc.)
You'll find that most people on Slashdot like Apple because they have really cool ideas, and actually INNOVATE. Microsoft on the other hand hardly innovates much at all, but to their credit they do buy up businesses that innovate so for the most part the end user can't tell the difference. At the very core of things, people on slashdot like Mac OSX because it looks cool and it's UNIX.
I bet if you looked at the access_logs for Slashdot, you would find more Windows systems accessing the site than Linux/BSD systems. I have never seen a real advocation of Open Source operating systems on commodity hardware on Slashdot outside of the 'RMS Appreciation Society' crowd. Plus you can run Open Source OSes on many "non-commodity" hardware systems from DEC, Sun and Apple.
Byte for Byte, Mac OS X kicks the rear end of the Open Source desktops. Why? Because not only can it run great closed source apps like M$ Office and Adobe Photoshop, it can also run Open Office and the GIMP. Best of both worlds. I wouldn't run it on a server (yet - XServe is sweet) because Linux and BSD are cheaper solutions and wouldn't want to waste the great Apple hardware which looks better on my desk than a closet.
Don't get dis Mac OS X because you can't afford Apple hardware. I can't afford a top of the line Ferrari, but that doesn't make it a crappy car.
People might like to think that Apple is somehow better than Microsoft, but trust me - if they had Microsoft's monopoly, their behavior would be no better, in fact, given that they would have a monopoly on hardware too - things would be much worse.
Trust you? Why? Because you are parnoid? Sheesh! You still have a choice. Microsoft got their "monopoly" because people liked their products and bought them not because they were the only game in town. Apple has done very well at 5% -- they are not going broke any time soon.
Strange women lying in ponds distributing swords is no basis for a system of government.
But they DON'T have MS's monopoly, and so therefore they actually innovate and improve their products. Linux, on the other hand, does a good job of scratching other people's itches. I'm not a programmer, nor do I wish to become one, and the slapdash nature of the Linux/FreeBSD/whatever UI is not appealing to me. No dis, mind you, it's just not for me.
The MS monopoly is the critical distinction. Me, I'm not a zealous open-source advocate. I think it's a good system and a good philosophy, but I am willing to pay for good quality, well designed software and hardware. Apple gives me that. Microsoft does not. Linux sure doesn't, either.
Why yes, I AM a rocket scientist!
OSX - a closed source operating system
/. to promote your dark overlord, please say so.
Can you say "open"?
People might like to think that Apple is somehow better than Microsoft
If you work for Microsoft and are trolling
In the meantime, Apple is better than Microsoft, and not just "somehow". They have better software, better hardware (althought I am using a microsoft mouse with my mac...I love the little wheel), their stuff looks better, works better, is more innovative, etc.
I've been using Macs and PCs since the 80's, I've followed the evolution of both, I'm not some one-side zealot. I'm telling you: The only things Microsoft has over the mac are 1-Popularity (more people use it because more people use it, vicious circle), 2-Cheap ass hardware (you get what you pay for), and better CD management (but the floppy thing is lamer than a one-legged lemur). Oh, and 4-Wheely mice (although they do make mac drivers for 'em, yay!).
if they had Microsoft's monopoly, their behavior would be no better
There are so many things wrong with this sentence, I'm having trouble replying. Ok, lets see...
Many people HATE microsoft, while many people are just in love with apple. Why is that? Because of Microsoft's behaviour. The very behaviour that led them to a monopoly position. So if Apple had the same attribute as Microsoft (a lousy attitude and a monopoly), people's attitude to Apple would be the same as it is towards Microsoft. Big fat DUH.
Your FUD bothers me.
You can't take the sky from me...
No more /dev/dsp clusterfuck. No more wondering how to turn on anti-aliased fonts in X... or did you only enable them for GTK apps... or was that KDE aps...
In short, OS X is a great OS because you don't have to spend time fucking with things you don't care about, you can spend your time actually doing your work, leaving you that much more time to play.
wanna irritate a 'switching' unix geek?
create root owned directory called "-p" or some suitable switch-like string
you can't delete it, or move it, or rename it.
rm -rf "-p" nope
rm -rf \-p nope
rm -rf '-p' nope
rm -rf * nope
try mv, ls, chown, chmod, anything! it won't let ya do it. And even when authenticated as an admin the finder won't delete it.
Finally I was able to chown -R from a higher level directory and then whack it via finder. But what a PIA!
why the enthusiasm for encouraging people to switch to OSX - a closed source operating system made by the poster-child for locking people into overpriced hardware?
Because OS X seems to deliver on all of the promises that Linux has been making for years.
While I love open-source software, I switched to a Mac because I got sick of waiting for the open source community to start making a useable desktop. Linux and the BSDs are fantastic on servers, but whenever I used either as my primary machine I found myself wrestling with the system a lot more than I wanted to. I don't want to learn the intricacies of my Xfree86 config files. I don't want to find where Red Hat hid Apache today. I just want to fire up my Dev Tools/Word Processor/Photoshop and get to work. I got away from Windows because I was sick of fighting with my machine. Why would I want to go back to that?
OS X is the first system since BeOS that does all the unixy stuff that I want without sacrificing aesthetics or ease-of-use. Overall the system is clean, intuitive, and I don't have to wrestle with it on a daily basis. Amazingly, it doesn't seem to sacrifice any flexibility or power for its' simplicity. When Linux makes me as productive as OS X, I'll go back in a second. Until then, you can pry my iBook out of my cold dead fingers.
This
I don't think that's going to happen, and I think Apple is shooting themselves in the foot with that assumption. UNIX users like open systems: that come from multiple vendors and have open specifications. If they didn't, they would have moved to Windows long ago.
Sure, there are some UNIX users that really go for the OS X pretty look and are happy with a BSD-like system call interface and a C compiler. But I think for the most part, OS X enjoys popularity among UNIX users only to the degree that it is UNIX compatible. If Apple wants to be in the UNIX market in the long term, rather than just receive a brief shot in the arm from a few UNIX converts, they need to make a long-term commitment to interoperating more with UNIX systems, and they need to give up dreams of "transitioning" UNIX users to Mac OS X.
Macs are definitely more expensive, but it's not quite as bad as your numbers indicate. You ordered extra RAM and hard drives from Apple; *never* do that, their markups are insane. A stock dual 867 with a GeForce 4Ti is $2050. From third parties, get 1 GB of ram for $250, 2 80 GB drives for $250, a Firewire CD-RW for $150, and you're at $2700 with a better system than you got from the Apple store. Still more than the Dell, but the difference is reduced by half.
How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
I hate to point out nitpicky but important points (OK, well no I don't) but:
"a transition away from UNIX and toward MacOS X"
That's sort of like a transition away from birds but towards ducks. Here the author is assuming MacOS X is somehow not a *NIX... an assumption that's been proved wrong here many times before. MacOS X is a subset of UNIX, just look up any UNIX history.
Sadly, even the original story submitter made this mistake: "There are big differences between Mac OS X and Unix machines." Sorry, that's not correct unless it's specified what other type of UNIX we're comparing OS X to.
After all, even the O'Reilly article author himself says "These tips will show you the differences between Mac OS X and other flavors of Unix" (my emphasis) MacOS X is a UNIX. Let's get it straight.
lookup does not run in single user mode, but runs in multi-user mode (the normal mode of operation).
The files are actually kind of wrong as of 10.2, as the flat files do get consulted in multi user mode, and do so before the NetInfo database does.
ie,
See how 'FF' gets consulted before 'NI' ? This means that the flat file does get looked at. 'DNS' is self explanatory, and 'DS' stands for Directory Services like LDAP...
i don't read slashdot anymore.
Obviously the dollar-sign is a parser character right? Watch this:
Right? Okay...
Hmmm, obviously the - is not a character that the shell thinks is special, it just passed it straight through to echo
Ah, there's your reason, putting a backslash in front of a character that isn't otherwise parsed by the shell, just passes that char on through to the program.
If you pass a -- (two-dashes) to a GNU-ish (getopt and friends) program it'll stop parsing commandline options, and accept things like -p as an argument, and not a commandline option.
HTH!
When this story was posted over at MacSlash, somebody replied with a tip of their own, which I've found to be quite nifty.
What it involves is logging out, then logging back in as user ">console", with no password. You might have to select "Other User" or whatever that option is called, on the login screen. That'll allow you to skip Aqua, and just have a nice full-screen terminal to work with, instead.
our entire development department and company backend is 100 percent linux (mostly RedHat). we just hired a new developer whose laptop is running OSX.
since he was going to be a remote user, he attempted to get his laptop up to speed with the necessary compilers, python modules and other development pieces.
after two days, he gave up in frustration, went to the nearest CompUSA, bought a new laptop and installed RedHat 8.0.
now, he is a happy, development camper.
now, i don't know much about OSX. so my question is, can OSX easily be used as a competent developer platform?
of course for the sake of keeping up, here's my top ten:
In other words, Apple is taking a big step here and embracing open-source about as much as you can expect a big corporation to do. Sure they don't give away the whole farm, but they are promoting an environment which is at least friendly to open-source even if it isn't 100% open.
Sapere aude!
...but from a design point of view, OSX is an anathema. This article just makes it clearer: OSX is, not a port of MacOS or an enhancement of Unix, but a bloody (and fatal?) collision between the two, where both lost what clarity and integrity they had by attrition to the other.
What? Have you actually *used* it? How about this explanation instead: they've managed to create one unified operating system that keeps some very diverse users happy. If you're an end-user technophobe, what you see is a very nice, clean, end-user system, far nicer than Windows, and without the 10 years of cruft that OS9 had accumulated. On the other hand, if you understand computing, you have a complete Unix-ish system, again, without a lot of the cruft that other Unix systems have accumulated. The Apple engineers deserve major kudos for keeping the "collision" under control as well as they did... they of course have backward compatibility to deal with, too.
Yes, the file copy stuff is a little ridiculous, but geez, the complaints on that level are pretty few, considering how much elegant functionality there is in there otherwise.
My mother has a name brand PC, it cost about $1000 when it was new. My mother-in-law has an iMac. It cost about the same.
The monitor on the iMac is way way way sharper, and edges and corners can be used.
The built in speakers on the iMac while they suck suck less then the speakers on the PC. I expect the sound hardware on the iMac is better too, but I don't know 'cause the speakers on the PC hide it.
Other then that, I don't see a reason the hard drive on the Mac would work better, or the RAM.
But hey, who cares about all that crap. The absolute most important thing? I get next to zero help calls about the Mac. It Just Works. Really. Honest. When they buy hardware that has a Mac sticker on it and plug it in the it doesn't screw up all the existing settings. They don't seem to get a bizzilion little auto-start crap-lets every few months. They don't end up with some commercial software they buy overwriting half a dozen important system files with some other version of the files an having stuff no longer work.
In short the Mac does the most important thing possible: it doesn't screw up as much as a windows box.
To me it is worth the extra money to hear from my relatives less. Or in a less cynical mind, to hear them talk about interesting stuff when I hear from them, not about computer problems.
Now maybe you want the fastest CPU in Mhz, I just want the one that "does the job" the fastest. "Does the job" includes time for the user to figure out how to do the job, and the time lost if it crashes part way through. For me "does the job the fastest" is frequently a Unix box. I mean if I do it a lot, I probably already wrote a program to do it, and I've been using Unix forever, so that'll be a Unix program. I'm not most people though. Most people can (gasp!) get stuff done faster on a box that coddles them. So a Mac or a Wintel box. And of the two? It seems the Mac really does a better job way more offen then people think.
Don't beleve me? I tell you what, for the price difference between my in-law's iMac, and my mom's PC will you take her tech support calls?
Bash shell is included in 10.2
[Computer:~] acomjean% bash
bash-2.05a$ yes
y
y
y
y
y