Slashdot Mirror


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."

22 of 533 comments (clear)

  1. The Screen Savers... by Tha_Big_Guy23 · · Score: 5, Informative

    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.
  2. Re:Remember.... by teamhasnoi · · Score: 5, Informative

    Actually its Option - Apple - Esc. That gets you to 'force quit'.

  3. Re:Where's my...Unix? by WatertonMan · · Score: 5, Informative

    I think you'll find that the variations aren't so much variations from Unix, but from Linux. Many of the differences the article outlines are simply "hiding" the Unix from newbies (i.e. dangerous directories) and can easily be over ridden.

    The article's comments about NetInfo are a little off as well. OSX has been moving to using NetInfo less and less. 10.2 tends to utilize many more traditional ways of doing things.

    I should add that most of those elements are hold overs from NeXT and the Darwin team appears to be making it more like a traditional BSD.

    BTW - if you want a good Finder replacement with more Unix tools try Path Finder. It has lots of nice things such as creating SymLinks rather than Aliases etc. (Although Aliases are more powerful, but most Unix tools don't recognize them)

  4. Errors on the table in the aritcle by netringer · · Score: 4, Informative

    There's an editting error on the 2nd and 3rd lines of the table of directories in the article.

    AFAIK, it should read:

    .trash - This directory contains files that have been dragged to the Trash.
    ./vol - This directory maps HFS+ file IDs to files.

    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
  5. Re:Virtual window management? by iSwitched · · Score: 5, Informative

    I just plunked down a whopping $20 for Codetek's Virtual Desktop (www.codetek.com).

    Its a damn fine piece of software and was the final addon that made Aqua perfect for me.

    --
    "That naive cube! How long must I suffer this!" --Sheldon J. Plankton
  6. Re:Virtual window management? by PghFox · · Score: 5, Informative

    Space.app, which is free as in beer, in one such solution that provides multiple virtual desktops on Mac OS X. VersionTracker is to Mac OS X what Freshmeat is to Linux.

    --
    --- Fox
  7. Re:Where's my...Unix? by mosch · · Score: 5, Informative
    everything is turned upside down? Did you follow the same link I did? The startup procedure is different though it still just runs shell scripts. The filesystem is laid out differently, and it uses NetInfo instead of /etc/hosts, /etc/group and /etc/passwd.

    Is it a big change? yes. Is the whole world upside down? ummm.... no. You still have a shell, all the standard unix utilities and most everything is done the Unix way, even when it's done through the GUI. Personal Web Sharing is Apache. Windows File Sharing is Samba. Printer Sharing is cups. The firewall is a default deny ipfw setup.

    Sounds like Unix to me. Though admittedly I'm biased, since I really like the fact that I'm posting this message from a unix box (OS X 10.2.1) that's currently running Illustrator, Photoshop and Quicken, while charging up my iPod.

  8. Re:WHAT? by Twirlip+of+the+Mists · · Score: 4, Informative

    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
  9. Re:Where's my...Unix? by Twirlip+of+the+Mists · · Score: 5, Informative

    it uses NetInfo instead of /etc/hosts, /etc/group and /etc/passwd.

    I do feel compelled to point out that OS X actually uses lookupd for host name resolution, and lookupd can be configured to use any number of sources for name-to-address mappings. Under 10.2 and later, lookupd is configured to look in /etc/hosts first by default. So unless you're using 10.0 or 10.1, /etc/hosts will work just the way you think it should.

    More info can be found in the lookupd man page.

    --

    I write in my journal
  10. Re:My Top 10 by Twirlip+of+the+Mists · · Score: 5, Informative

    * Forget sudo and enable root access (I forget how, I don't have an OS X box in front of me), then use su.

    Uhhh... why? If your suggestion resulted in some kind of improvement I might be convinced to go along, but why mess with things that don't need to be messed with? There's no reason at all to enable the root account on your OS X machine. If you absolutely, positively have to have a root shell, you can always use this little trick:

    % sudo su -
    Password:
    #

    --

    I write in my journal
  11. Re:I hate to state the obvious but.... by bnenning · · Score: 5, Informative

    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.
  12. Re:tip: command line fun by khuber · · Score: 5, Informative
    Also remember that the program will never see your quotes or backslashes which is why all the things you tried are equivalent to rm -rfp. -- tells rm "no more options follow", and ./-p gets passed in directly and it doesn't look like an option to rm.

    There's nothing magical going on here, it's just the difference between escapes that are processed by the shell before the program ever sees them and correct parameter syntax.

    -Kevin

  13. no.... by netsrek · · Score: 4, Informative
    Actually, you weren't half right, you were not right at all.

    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,
    Dictionary: "Network Configuration"
    LookupOrder: Cache FF DNS NI DS
    _config_name: Network Configuration


    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.
  14. Re:you're missing the point by Type-R · · Score: 4, Informative
    Uh... The slash does escape the character...
    echo $TERM
    xterm

    Obviously the dollar-sign is a parser character right? Watch this:

    echo \$TERM
    $TERM

    Right? Okay...

    echo -
    -

    Hmmm, obviously the - is not a character that the shell thinks is special, it just passed it straight through to echo

    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!

  15. A wonderful full-screen console by caseyc · · Score: 4, Informative

    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.

  16. Mac OS X Hints website by develop · · Score: 5, Informative
    a great website for these kind of tips is http://www.macosxhints.com. it has tips and advice coming in daily from all over the place and a forum to give your opinion on the tip. i really suggest folks interested in the article check it out.

    of course for the sake of keeping up, here's my top ten:

    1. kill processes by name
    2. fixing command-line typos before hitting enter using Option-S
    3. creating a talking cat in Jaguar
    4. use gcc_select to switch compilers
    5. open urls from the command line
    6. search macosxhints from the commandline
    7. Replace iTools with your own web and mail servers
    8. Run Software Update from the Terminal
    9. Correct command line typos with carets
    10. AND THE BEST ONE! running the screensaver as your background
  17. Re:I hate to state the obvious but.... by Graff · · Score: 5, Informative
    Darwin is the most ho-hum part of OS X, because all of its Unix-like functionality is reproduced in other kernels (BSD, Linux, etc). The interesting parts are the GUI and the APIs that let it run Mac-specific software. These are all proprietary.
    Actually there are many other intresting elements to Darwin, which are being given back to the community in open-source form. Several of the more notable contributions are Rendevous (Zeroconf), Open Directory, the Darwin Streaming Server, OpenPlay, and the Objective-C extensions to GCC.

    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.
  18. Re:developer woes by WatertonMan · · Score: 4, Informative
    If this was back in the OSX 1.0 days you are right. With 10.2 it comes standard with a full Python distro along with the latest GNU tools. Further Fink has pretty much every tool compiled and debugged and installs them for you. This inlcudes X11 apps which admittedly once were a pain to run on OSX.

    So this isn't a problem anymore and hasn't been for quite some time.

  19. Re:I just can't understand what they were thinking by JMax · · Score: 4, Informative

    ...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.

  20. Re:Where's my...Unix? by Anonymous Coward · · Score: 5, Informative

    Aliases are sort of a hybrid between a symlink and a hard link. They keep track of the HFS file id of the target file.

    Prior to 10.2 the default behavior was to first check the file id, and if that file isn't there any more then check the file location. In 10.2 this behavior changed to be more like a symlink. First it checks the file location, then it checks for a file of the given file id.

    To sum up: aliases are more powerful than symlinks because they do everything that a symlink does (when accessed through the mac file apis, not the BSD ones), but can also still find the target file if it's been moved to a different directory.

  21. Re:developer woes by BlueGecko · · Score: 5, Informative

    Did you introduce him to fink? By default, the Mac comes with the entire GNU toolchain, plus perl, python, and a ton of other utilities. If he needed newer versions of perl or python, or if he something else (Ruby, MySQL, PostreSQL, X window, Ant, OCaml, LaTeX, even KDevelop and KDE for Pete's sake!) he just types in

    fink install python

    for example, and, after five to twenty minutes (depending on the package), he's got whatever he needed. It's as easy as apt-get and it's fully OS X native. Check out the link; there are 1600 packages so far and going up literally daily. So my question is, how experienced was your developer?

  22. bash is included in 10.2 by acomj · · Score: 4, Informative

    Bash shell is included in 10.2

    [Computer:~] acomjean% bash
    bash-2.05a$ yes
    y
    y
    y
    y
    y