Pandora's Box is a minimalist yet very powerful OS X utility that can help you make your own OS X bootable DVDs and USBs, in order to update your Hackintosh to the latest OS X version, or to simply customize the installation. Band-in-a-Box ® 2020 for Mac is 64-bit and fully compatible with Catalina! It works well with the latest plugins and 64-bit OS features and is also legacy compatible back to Snow Leopard 10.6.8. There are over 50 exciting new features in Band-in-a-Box ® 2020!
Click here to return to the 'Jump to folders quickly in Open/Save dialog boxes' hint |
It's snot recent (I'm sure you can do it in Tiger, event in Panther) but it's very useful. And you can drop the icon in the list too, not only at the top of the dialog. And you can do the same with dragging a file which is in the folder you want to display in the dialog. It's not necessary to drag the icon. Feeling bloo mac os.
I was surprised to think that this was a new hint. I found it posted in 2006.- Ben Rosenthal
MacBook Pro 2.8GHz - Snow Leopard
iPad 3G 32GB
Yeah, this is a pretty old hint. I think I remember reading it in MacWorld all the time, way back when I used to read MacWorld.
I think this is a great hint (I missed the 2006 version since I didn't start checking the hints daily unil '09 or so.) One of my favorite features is how you can drag a file icon into the list of files in an Open or [expanded] Save dialog and it will automatically jump to that folder (and select the file in the case of an Open dialog.) I did not realize I could just drag a folder to that folder dropdown - sounds like it might be a little more cumbersome, but useful in an unexpanded Save dialog. I also recently found out you can use the Go To Folder shortcut (cmd-shift-G) in an Open or Save box - In fact I should see if that's already posted here and submit it if not.)
Boxes And Foxes Mac Os 11
My youtube video mac os. If you have Default Folder (I still use it!), they have a great feature of people able to switch the Open/Save dialog to any of the windows/folders open in Finder (you just mouse outside the dialog box and hover over a Finder window). This is such a time-saver that it's the reason I keep using Default Folder.
I have looked for a LONG time for something like this for Windows. I know this isn't 'Windows OS Hints', but if someone knows of anything that can enhance Windows Open/Save dialogs (something more advanced that just customizing the Places bar), I'd sincerely appreciate it!
(and other tweaks)
Warning! Much has changed since10.3, so don't expect these to work (or be the best way to do things)on 10.4 (Tiger).Here are some notes on how I set up a few Apples running OS X10.3. I do not claim that this is the best way to go aboutdoing anything and some of this is very specific to my needs, but itseems to work. If you have any comments, corrections, orsuggestions on better ways to do any of this, please let me know!
Some of these things are trivial to do and the way to do them isfairly obvious, i.e., there's absolutely no trick to them. Howeverthey are listed here to remind me they should be done on a freshinstall (since I've already had to contend with this stuff threetimes).Topics:
Cluster-related topics:
Swapping Control and Caps Lock
After getting on the net, the next most important thing is getting thecontrol and caps-lock right (at least for those of us who refuse tostretch our pinkies and think the prominent caps lock key is pureevil). This fix comes from http://www.macosxhints.com/article.php?story=20020222094159459. Note that this fix will not work on a laptop (since the laptop doesnot use a USB keyboard).You want to do this as root, so you'll probably have to do this first:Now use vi or emacs or whatever editor you have andopen the file: Yes, that's quite a path!You will see, at line 25, something like this:Change that by adding the two lines shown here after the second:Then, as root still, do the following:Reboot and hopefully the control key will be where it's supposedto be!
It is my experience that this has to be redone after every minorupgrade of the OS (i.e., when 10.3 switched to 10.3.1 I had to re-dothis and then again with the switch to 10.3.2).
If you want to use an application to handle the dirty work for you,you may find ucontrol useful.(Thanks to Tim Heany for brining this to my attention.)
GNU Compiler
For this you have to get things from the Apple Developers site. Registration is free (you'll just get something like biweeklyannouncements from Apple about various development related things --it isn't too onerous, but probably not too useful for you either). You enter this information at http://developer.apple.com/. Click on the little 'Log In' text next to the arrow toward the top ofthe page.After logging in, click on 'Download Software' (in orange?) text onthe left side of the page. This expands a bit. Click on'Developers Tools' (again, on the left side of the page).
Checking things August 12th, things have changed from what waspreviously described here. It now appears you can simplydownload the XcodeTools1.5__CD.dmg bindaries (about 372 MB) as asingle-shot thing. Install this 'in the usual way.'
X Windows Applications, Fink, LaTeX, etc.
There are a few hoops to jump through and there is some orderdependence. You must have the compilerinstalled before you do the following.Do not install the Apple X11 server (well, not yet anyway). If youhave done that, then issue this command (which looks drastic, butwe'll fix it in a bit):The next step is to get fink going. Once you get 'FinkCommander'running, things are quite nice.
Go to http://fink.sourceforge.net/. Click on Download over on the left.
Click on 'Fink 0.7.0 Binary Installer' and install that (you may haveto click on an icon of a box being unpacked to get this going). Itshould go fairly smoothly and you will see a directory someplace (Ithink a Finder window pops up) labeled 'FinkCommander' (or somethinglike that). Open that directory and drag the FinkCommanderapplication to your Applications folder (I think a green circle with aplus sign will appear when you've dragged it to a place where it knowsits supposed to move to a new directory). Once you have it there,double-click on it to open it. I think you have to enter your passwordtwice before it will be happy.
Once it starts, you will see a long list of applications you caninstall. Rather than sorting through these collectively, it's mucheasier to use the 'Name' field in the upper right corner to get whatyou want.
Let's try to install grace (really xmgrace, you haveto type xmgrace at the command line). This is a greatplotting package (and free, of course). Details about grace can befound here. (But,you can skip this if you have no need for grace.)
After you install TeX (i.e., the tetex distribution), you should runtexconfig as the superuser.Under the dvips 'global' settings change the paper size toletter (just get it highlighted and hit return I think). Under thedvips 'cmd' settings, make sure you hit return with a blankentry so that output will go to a file instead of a printer.You will find that xdvi is broken. I have found that thisfixes things, although I'm not sure why:Hopefully that will do the trick! (Although I'm not sure why -- oneperson claimed [and I can't find it now] that you had to issue thecommandat some point, but I can't find any occurrences of ld1 or 1dl or such inthe Makefiles [and one should check after running configure].)Now, you need to get a X windows server going. That's covered next.
Do not do this until after you have installedfink!Go to http://www.apple.com/macosx/features/x11/download/. Fill in theinformation they request (don't forget to uncheck the box that saysyou want Apple spam), and click the 'Download X11' button. You mayhave to click on an icon of a box being unpacked or the installer maystart automatically. After installing it, fire up theserver and see what you get. I think you will get a xterm that isn'ttoo functional. I suggest you modify the fileto get the default xterm to be decent. The line I have in there nowreplaces their old xterm command (toward the bottom of the file) withthe followingFor you csh fans this would be something likeAlso, you can get the X11 application to launch similar xterms if youcustomize things similarly under the Applications menu (i.e., makesure X11 is the selected app, click on Applications and then click on'Customize.').Add to your .cshrc file or to your .bash_profile file. This way you should be able to type Xwindows commands from Terminal and they'll know how to start.
Start-up Chime
If you want to stop the start-up chime or control the volume, see:Colorizing ls Output
ls on the Mac can colorize the output like I'm used to onLinux machines. As noted by Aaron Whiteman: 'lswill respond to your terminal, so if it is set to something like'vt100' it won't display in colour. Use 'xterm' instead.' I have anissue with the xterm emulation in that when I read man pages they willdisappear once I stop reading them. Aaron's fix for that is to set thefollowing environmental variables:However, I have another issue with the default ls (having todo with its return value, but this may have been fixed in Panther). So, I downloaded the GNU ls (which ultimately lives in/usr/local/bin) and made an alias to that. Here's what hasto be done.Go to http://www.gnu.org/software/coreutils/ and then follow the link tothe downloads, i.e., http://ftp.gnu.org/gnu/coreutils/. Once there, select the versionyou want of 'coreutils', i.e.,coreutils-5.0.tar.bz2. (For some reason when I downloadedthis with Safari 3.1.1 it added an additional .tar to the endof the file name. Firefox didn't have this problem.)
Assuming you downloaded the .bz2 version of the tar-ball, youcan unpack it with a command such as
From the Terminal cd to wherever it unpacked and then typethe followingThen just alias your ls to whatever you like, but in/usr/local/bin. For example, something like this:for C shell or the following for bash
For those of you who like to get your colors just so, you may wantto check out TerminalColors which lets you tweak colors to your heart'scontent. (Thanks to David Lee for bringing this to my attention.)
Sleeping
I believe by default the Mac goes to sleep after a half hour or so ifit hasn't had any input. This is usually evil if you're running somejob as it doesn't notice that there is an active process running(since there are typically several active processes doing stuff).Go to the System Preferences.
Turtlebook mac os. Click in the Energy Saver (light bulb icon).
Click the 'Sleep' button at the top if you don't see a slider labeled'Put the computer to sleep when it in inactive for:'.
Slide this slider over to 'Never'.
It is okay to let the display go to sleep whenever (I have mine setfor 10 minutes or so).
By default ssh on the Mac is not set up to accept incomingconnections. So from the Mac you could use scp to copyingfiles in or out, but you couldn't sit at a remote machine and connectto the Mac. So, to get ssh started, issue this command:You should just have to issue that command once and it will then berunning the next time you reboot or whatever.Alternatively, Aaron Whiteman clued me in to the 'proper' way to startssh. Open 'System Preferences', choose 'Sharing', and select 'RemoteLogin'. Done!
Aaron also writes:
Look into 'SSH Agent' (http://www.phil.uu.nl/~xges/ssh/),which puts your ssh keys in the keychain, doing the same as whatssh-agent/ssh-add do on a unix box. It also has the added benifits ofbeing able to set env variables before you are completely logged in,so Terminal.app and any other MacOS application have them as needed. |
General instructions for generating keys (and getting this going on ageneric box) can be found here.
For the Mac, first generate these keys (and put the 'pub' part onthe machines you want to get to). Quoting the material from thesite mentioned in the previous link, you generate the keys by issuingthe command:This will prompt you for a password that you select (it doesn't haveto be your log-in password but it can be). If this commandsuccessfully executes, it should terminate by saying:To use the key on other hosts you will be connecting from, copy~/.ssh/id_dsa key to the other hosts using a command such as:Finally, make sure the public key is in the ~/.ssh/authorized_keysfile on the hosts you wish to connect to. You can do this with acommand such as: Note that could use scp to copy the file to the other host,but that will blow away any existing copy ofthe authorized_keys file. The command given above is saferin that appends information to any existing file (or creates the fileif it doesn't exist).
To get this to work on my cluster, where every node shares a commonhome directory, in the directory .ssh I issue the followingcommand:Also on the cluster I have the following in my .bash_profile.
That should, I believe, be it. When you log on to one of the hoststhe first time you will be prompted for the password you used togenerate the keys. However, after that, you should be able toaccess the host without a password for subsequent log-ins.
Kalvgvs plight mac os. If you use the application SSH Agent, click the 'Add Identity.'button. You want to add the id_dsa file. Enteryour password to unlock the keys and then you should be done! No moreneed to enter passwords for your ssh-related connections (well, untilyou log-out and log-in again or shut down SSH Agent).
If you use SSH Agent, be sure to go to its Preferences and check the'Make Agent Global' box.
Safari Download Directory
It can be annoying to have Safari download a bunch of stuff to theDesktop when you would rather it just go to the /tmpdirectory (where it will eventually disappear -- this directory ispurged on reboot and I believe files older than three days are deleted[see the /etc/daily script for details]).In the Preferences of Safari, click on 'General'. Beat making machine best buy.
You will see a menu item that says 'Save download files to:'. Clickon that and select Other.
Then the window comes up type command-shift-G (upper case). You will beprompted for a directory. Lincoln casino bonus. Type '/tmp'.
Now click 'Select' and hopefully you'll be all set.
Terminal Key Equivalents
The other thing you'll want to do is get your key-equivalents underTerminal to be such that they don't mess you up when you mistakenly doa emacs-ism with the command key instead of the 'option' key.First, you probably want to say you want the option key to act as themeta key. Do this by going to the 'Show Info' window(command-i). At the top, select 'Keyboard' from the menulist. Click on the box at the bottom that says 'Use option keyas meta key'.
Another thing that is helpful at times: I think by default theemulation is such that if you're looking at a man page or somethingand then you hit 'q' to get out of it the entire man page disappearsand you're original screen is displayed. No good. Itypically want to see what the man page just said while I struggleover some command.
In the Terminal Preferences (command-,), select 'vt100' in the 'Declareterminal type ($TERM) as:' menu.
To make it so that you have to hit command-shift-Q to quit Terminal,issue the following command at the command line (but not from theTerminal command line as noted below):Note the dollar sign before the Q. The '@' means command key and'$' means shift. IMPORTANT: Issue this command from anxterm when Terminal is not running. If you don't dothat, Terminal may overwrite your tweak the next time it closes.
There are other keyboard tweaks that are important for me. You cantweak this from the command line (using defaults), but I went directlyto the file ~/Library/Preferences/com.apple.Terminal.plist. I nowhave the following in there:
The first thing (i.e., the Open URL command) makes it so thatafter you select some text in a terminal window you can open it as a URL by hitting command-shift-U. The second thing makes it sothat you have to hit command-shift-W to close a window (important forthose used to hitting meta-W to select text in emacs).I believe you could do the same thing and avoid editing the file ifyou issue this command:Note that you can't issue these keyboard tweaks one at a time. The next time you write to the NSUserKeyEquivalents section it willoverwrite what was there (perhaps there is an append option but Ihaven't bothered to look).
More on emacs
TheBoxes And Foxes Mac Os Download
emacs I use comes from mindlube:http://www.mindlube.com/products/emacs/. You want to click on the link at the top of the page where it says'Download the new 10.3 build'. This should work whether you havethe X windows server installed or not.Since I like larger fonts than what you get by default, I added thisto my .emacs file
Installing the Apple Script Menu.
For the PostScript item discussed below, life iseasiest if you have the Apple Script Menu installed.Simply use the Finder to go to /Applications/AppleScript thendouble-click on 'Install Script Menu'. If this works properlyyou should notice something that looks like as S in the upper rightcorner of your screen (by the clock and the volume-controlicon). Supposedly this S is a scroll. I can see that.
Alternatively, for those averse to using the Finder, you can enter thisat the command line(Yes, those quotes are necessary because of the spaces, or you canremove them and put backslashes in front of the spaces.)
Getting PostScript from JPEG, GIF, PDF, etc.
For this to work (at least as described here), you must first have theApple Script Menu installed.If you have the need to convert a JPEG, GIFf, PICT, TIFF, PDF, or TEXT(RTF) file to PostScript, use the finder to select the desiredfile. Now click on the Apple Script Menu. Move the mouse over the PrintingScripts selection and then click on the Convert to PostScript thatappears in the other menu. You should notice in the Finder windowthat there is now a new version of your file with a .psappended. (The original is left unchanged.)
It is also possible to convert this script to an application so thatyou just drag files to it and it will convert them toPostScript. (But we won't get into that here.)
From any application on which you can print, you can also print tofile (and have the output PostScript or PDF). From the Apple helpinformation:
- Choose File > Print.
- Choose a printer from the Printer pop-up menu. Note: If you havenot defined any printers, you will need to make one up. Go to'/Applications/Utilities/Printer Setup Utility' and make up aprinter. (Don't worry that this doesn't exist -- we're printing to afile after all.)
- Choose 'Output Options' from the 'Copies & Pages' pop-up menu.
- Select the 'Save as File' checkbox, and then choose PostScript orPDF from the Format pop-up menu.
- Click Save.
Getting a Good System Beep.
In the old NextStep OS and in the first release of OS X they had a'system beep' called ChuToy. That's still my favorite althoughit isn't in current distributions. To rectify that, download this file and put it in/System/Library/Sounds/ (calling itChuToy.aiff). Then start System Preferences and selectChuToy as the system 'alert sound.'As Matthew Schinckel points out, it is probably a better idea to putthis in ~/Library/Sounds so that it doesn't get blow away when thesystem is upgraded.
These days it seems I'm doing a lot of work on various machines and Itypically like to run and edit the files locally. When all is saidand done, I want to sync the local file system where I've been workingto the central place where I keep my files. I have written a scriptwhich makes this fairly easy to do. I call this syncer andkeep it in a directory on my path. When I want to sync to the remotehost (which can be set on the command line but has a default valuespecified by the REMOTE variable in the script), I can justissue the command syncer -v (I like running this verbosely).For those interested in something much more sophisticated, you shouldcheck out unison. (Thanksto Derek Teaney for bringing this to my attention.)
Running a Command (Or Commands) on Client Nodes.
I have a cluster with one head node, named headmac.local andfour compute nodes named comp1.local, comp2.local,Boxes And Foxes Mac Os Catalina
comp3.local, and comp4.local. Only the headnode has a monitor attached to it. Assuming I'm logged onto thehead node, to run a command on each of the compute nodes, I use thefollowing script which I call run-on-clients:I have another version of this script, called run-on-all,which runs the command on the head node as well. To make use ofthis command rather painless, it helps to have set upssh-agent and ssh-add to do their things inaccordance with the instructions that one can find by following thelinks given in SSH and Friends. To use thiscommand to check the clock on each of the nodes, you would issue thefollowing command:You can also issue compound commands by enclosing the desired commandsin quotes. For example, to check on the contents of the /tmpdirectory on each of the nodes, you could issue the following command:With the quote, you can put things on multiple lines and then thesemi-colon separator is optional. Thus the following is equivalent tothe previous command:Installing Packages on Client Nodes.
Since the compute nodes do not have monitors, packages must beinstalled via the command line. The current clusterconfiguration is that a RAID is attached to the head node and each ofthe compute nodes mount the RAID as a remote volume. Becausecompute nodes do not have a monitor attached (and I don't currentlyrun Apple's Remote Desktop software), the GUI software-installerapplication cannot be run. There is an installerutility which provides the command-line equivalent of the GUIinstaller. Unfortunately it appears that one cannot installsoftware from a remote volume. It is nice initially to downloadpackages to the RAID, since then the package is at least visible toall the nodes. There is a way to issue a single command (well,perhaps 'single' is a misnomer) to install the package on each of thenodes. However, first, assume the package Fink 0.7.0Installer.pkg is installed on the local host. Then, one cansimply issue the command:Assuming the package is on the RAID, here is acommand which demonstrates how the package Fink 0.7.0Installer.pkg can be installed on all the client nodes using therun-on-clients command describedabove. Here is assumed the package is in the Desktopsubdirectory of the home directory (and, of course, that the homedirectory is mounted by each of the client nodes).Note that packages are not single files. They are bundles, i.e.,they appear as a single entity in the Finder, but they are actuallydirectories filled with various files. Since we can't installdirectly from the remote volume, tar is used to make a copyof the package in the /tmp directory. The package isthen installed from there.Another thing to note about the previous command! Since thesudo command is used to give superuser privlidges, you willbe prompted for your password. Unfortunately since you aretyping this on the local host but the command is being requested bythe remote host, your password will be echoed to the screen as youtype it. To avoid this, you can modify therun-on-clients script to turn off echoing, or you can wrap astty -echo and stty echo around the command. So,something like this:When you type that final stty echo it will not be echoed tothe screen (but subsequent input should be).
Path for LAM/MPI.
I use the LAM implementation of MPIto implement parallel code. On the client nodes it is essentialthat the path be set correctly to find the necessary LAM/MPIroutines. Therefore, assuming /usr/local/bin is nototherwise on your path (and that is where the LAM stuff has beenplaced), the following line should be in the .bashrc file:John Schneider's home page.