Skip to Content

Make smart financial decisions with DailyFinance
AOL Tech

Terminal posts

Filed under: iPod Family, iPhone

3.0 firmware release expected at 10am PT/1pm ET, quick Terminal tip to check

Hey, iPhone 3G owners: Please do not download the 2,1 firmware files listed below. They are for the 3G S and will not work on your phone. Read the whole post for details. The correct firmware for the 3G will start with "iPhone1,2" instead.

If you were up all night waiting for the new iPhone OS to arrive, you're in good company -- we were too, until we began getting Twitter reports from users in Hong Kong and Sweden that the local carriers sent out SMS alerts to their customers suggesting when they could download 3.0. Those times both align with a 10 am PT/1 pm ET go time, and that's when we're calling it for now; Engadget concurs. That's why you're still seeing 2.2.1 as the most current version in iTunes; the new version hasn't been released yet.

Those with a command-line bent and an inability to wait without doing something can launch Terminal and type in the following every few minutes to see whether 3.0 has launched, rather than repeatedly clicking the Check for Upgrade button in iTunes (note that the up-arrow in Terminal reloads the previous command):

curl -s -L http://phobos.apple.com/version |\
grep -i restore |\
grep '_3.' | open -f

The results will look something like URLs ending with this:

iPhone2,1_3.0_7A341_Restore.ipsw
iPhone2,1_3.0_7A341_Restore.ipsw

The model number indicates which unit has downloadable firmware. As of right now, only the iPhone 3G S firmware has been updated. That's the 2,1 iPhone model. Yes, the 1,2 iPhone 3G model was considered a revision of the first generation 1,1 iPhone as it only had moderate hardware changes. The two iPods are 1,1 and 2,1 for the first and second generation.

(No, for those wondering in the comments, you cannot download the 2,1 firmware and install it on your iPhone or iPhone 3G -- it will only work with the 3G S.)

To download, copy the URL and paste it into Safari's download window or use any other favorite method to retrieve the firmware. Then hold the Option key and click Update in iTunes. Navigate to the firmware (the ipsw file), select it, and 3.0's good to go. Of course, you can also download directly through iTunes as soon as the update is available.

Filed under: Terminal Tips, Leopard

Terminal Tips: Rebuild your Launch Services database to clean up the Open With menu

TipsProblem: Some piece (or pieces) of rogue software have cluttered up your Open With contextual menu, which you can see by right-clicking or control-clicking any document in the Finder. This problem seems to be most prevalent with virtual machines that allow you to open documents with Windows applications, but tend not to clean up after themselves. After having both Parallels and VMWare installed on my MacBook Pro, my Open With menu was a mess.

Solution: Lucky for me, I noticed David Chartier's question about this on Twitter around the same time as I was wondering what to do about it. Some friendly person pointed him to a posting on Apple's discussion forum (also noted on Mac OS X Hints here and here), noting that running a specific command in a terminal window will rebuild your launch services, which repopulates the Open With menu with a current list of applications, without duplicates. It worked perfectly for me, but beware, on my system it took about 10 minutes to complete, and I suspect it could take more on a sufficiently gummed-up system.

Here's the Leopard version of the command (the path to the tool is different in Tiger, see here). I broke it into three lines for readability, but the \ at the end of the line is bash-speak for "keep on going with the same command" -- you can copy and paste it directly and it should work, or if you type it on one line without the backslashes, it will also work fine.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\
LaunchServices.framework/Versions/A/Support/lsregister -kill\
-r -domain local -domain system -domain user
If, preferring to avoid the Terminal, you want a handy GUI app to rebuild the Launch Services database with a couple of clicks, check out Titanium's OnyX or Maintenance utilities, both free of charge.

Filed under: Terminal Tips, TUAW Tips

TUAW Tip: Moving your home folder to another disk (or moving it back)

In ye olde times, with "Mack OSe 9," many users chose to keep their personal files, work, and documents on a different physical disk from their startup disk. It was a safety measure: If one disk goes down, at least the other won't. There was no structural reason to keep files in a particular disk location, other than keeping them out of the System Folder.

I visited a client yesterday whose drive scheme was set up exactly like this, and he wanted to be (finally) upgraded to Leopard. I wasn't sure how Leopard would handle the fact that his Users folder had been moved to a different drive, so (knowing I had backups of his entire system) I cautiously proceeded with the installation.

After the installer finished, Leopard had created a fresh, blank Users folder on the startup disk with a home folder bearing the same username. This wasn't exactly the answer I was looking for. I had to link, somehow, the new Users/hisname folder with his existing user folder on the other volume.

Turns out, Leopard handles this much better than previous versions of Mac OS X. Read on to find out how.

Continue readingTUAW Tip: Moving your home folder to another disk (or moving it back)

Filed under: Software, iTunes, Ask TUAW, Leopard

Ask TUAW: tracking your iTunes purchases, quitting processes, doing a clean OSX install and more

Once again, it's time for another edition of Ask TUAW: the place where we try to answer all of your Mac and Apple-related questions. This week we're taking questions about tracking your total iTunes purchases, forcing processes to quit, doing a clean install of OSX and more.

As always, we welcome your suggestions for this week and questions for next time. Please leave your contributions in the comments for this post. When asking questions, please include which Mac and which version of OS X you're running. If you don't specify, we'll assume you're running Leopard on an Intel Mac.

Dima asks:

I would like a way to require a password when the computer wakes from sleep, but not to require a password for just the screensaver. Is there a way for me to accomplish this?

The only way I know of to accomplish this would be to modify the plist file for the screensaver via the Terminal. However, unless this is really important to you, I would not advise doing it. If you want to do it, proceed at your own risk.

Either way, here's the command to enter in the Terminal if you want to try it.

defaults -currentHost write com.apple.screensaver askForPassword -int 0

This will set it so the computer only asks for a password after waking from sleep and not after the screensaver.

Frank asks:

In my finder window, next to my drive's name, there's a number in parentheses. it used to be a (2), but recently it changed to a (3). What does this number mean?


Continue readingAsk TUAW: tracking your iTunes purchases, quitting processes, doing a clean OSX install and more

Filed under: Software, How-tos, Tips and tricks, TUAW Tips

TUAW Tip: Stop Backup.app from bouncing

TJ Luoma recently shared the solution to an annoying problem. Specifically, he wanted to keep Backup's icon from frantically jumping in the Dock like so many hepped-up toddlers in a bouncy castle. The Backup icon typically bounces in the Dock for a minute two before it even begins backing up any data.

We know what you're thinking, "Just go to the application's preferences and disable the Dock animation." The problem is that Backup has no preference pane! Fortunately, TJ found a fix.

While browsing "defaults read com.apple.backup" in Terminal (as suggested by a Twitter helper), he found
"Backup Timer" = 120
Realizing that's how long the app is supposed to wait (and toss its icon up and down) before executing a backup, he entered
defaults write com.apple.backup "Backup Timer" 1
which forced it to bounce only once. Alternatively, you could install Dockless, which prevents running apps from showing up in the Dock (or vice versa). Check out TJ's post and enjoy!

Filed under: Terminal Tips

Terminal Tip: Enable half-star ratings in iTunes

Do you like giving ratings to songs in iTunes? If so, then you've probably noticed that you are only able to rate songs on a full-star basis, not enough granularity for some music fans... there's a longstanding AppleScript hack to enable half-stars, but now there's an easier way around this issue. Macworld's Rob Griffiths found a work around, involving a simple Terminal tip to enable half-star ratings.

To enable half-star ratings, close iTunes, and open Terminal (/Applications/Utilities). Once you have Terminal opened, type the following command and press enter:
defaults write com.apple.iTunes allow-half-stars -bool TRUE
When you reopen iTunes and rate a song, you will be able to give half-stars. That simple. If you wish to make things normal again, open Terminal and type the same command, replacing "TRUE" with "FALSE."

Filed under: Terminal Tips

Terminal Tip: Enable Safari web inspector


Perhaps you are a web developer, or maybe you're just nosy. Either way, looking at certain websites' CSS, HTML, and Script documents can be fun. If you are a Safari user, you can easily look at the loading documents in the Activity View (Window > Activity), but what if you want to take this a step further? You can with the Safari Web Inspector, and you can do it by enabling the Safari "Develop" menu.

To enable the Safari Develop menu, just close Safari and type (or copy/paste) the following command into Terminal.app (/Applications/Utilities):

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

Once you enter the command, you will be able to launch Safari, load a webpage, and click Develop > "Show Web Inspector" to see the page attributes. You will be able to see the documents, stylesheets, images, and scripts.

Update: As of new versions of Safari, you can enable the Develop menu by going to Safari > Preferences > Advanced, and click on the "Show Develop menu in menu bar." Thanks to everyone in the comments for pointing this out!

Want more tips and tricks like this? Visit TUAW's Terminal Tips section today!

Filed under: Terminal Tips

Terminal Tip: Change Time Machine backup interval

Sometimes you want your Mac to be backed up more frequently than usual. If you want to instantly back up using Time Machine, you could click on the menu bar item and select "Back Up Now," but what if you want to change the backup interval indefinitely? With this Terminal Tip, you can do just that.

Time Machine is set to automatically back up every hour, but if you would like to change it to every half hour, you can use the following Terminal (/Applications/Utilities) command:

sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 1800

You will need to authenticate as an administrator, since this command is run under a "sudo." The time interval is measured in seconds, so you can enter any time you wish there; just make sure it is in seconds. By default, Time Machine backs up every 3600 seconds (every hour). If you wish to revert to the original, just replace "1800" with "3600."


Want more tips and tricks like this? Visit TUAW's Terminal Tips section!

Filed under: Terminal Tips

Terminal Tips: Enable "path view" in Finder

When you open a Finder window and start browsing to a folder, do you lose track of the path to that folder? If you do, the Terminal command below will enable path view in the Finder -- this means that you will see the directory path to the current folder you are browsing in the title bar, instead of only seeing the name of the current directory.

To make directory paths visible atop Finder windows, open Terminal.app (/Applications/Utilities/) and type the following command:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Once you run the above command, you will also need to restart the Finder, so you can either type "killall Finder" and hit return, or use the Force Quit option under the Apple menu to relaunch it. The Finder will restart, and you will start seeing the paths to directories in the title bar.

Update: As some have pointed out in the comments below, this Terminal command will only work with Mac OS X Leopard (version 10.5).
Ups

Want more tips and tricks like this? Visit TUAW's Terminal Tips section!

Filed under: Terminal Tips

Terminal Tips: Install software updates from the command line


Sure, you could update your Apple software by opening Software Update from the Apple menu. But what if you're inclined to use a command line interface, or maybe you need to update a remote machine via SSH? There's a way to complete a software update in Terminal.app. Here's how.

If you want to do an automatic install of all the updates for your particular Mac, first log in as an administrative user. Then open Terminal.app (located in /Applications/Utilities), and type (or copy/paste) the following command:
sudo softwareupdate -i -a

and hit Return. Next, you'll be prompted to enter your password; do so, and then hit Return. The application will then look for available updates, download them, and then install them. You will see the progress in Terminal. If no updates are available, Terminal will let you know.

This command replicates the functionality of the normal Software Update utility. However, you can use it on other machines in the background via SSH remote login, or you could apply a specific update rather than the full list of available patches. To see all the command options, type man softwareupdate at the Terminal prompt.

Want more tips and tricks like this? Visit TUAW's Terminal Tips section!

Filed under: Terminal Tips

Terminal Tips: Play Tetris in Terminal


Terminal boasts some cool, but hidden features that we like to call "Easter eggs." These "eggs" are hidden features that the developers build in (mostly for fun or laughs), that don't have anything to do with the functionality of the program.

One of these "eggs" is the ability to play Tetris in Terminal. Here's how to do it. First, open a new Terminal.app (/Applications/Utilities) window and type "emacs," then hit enter. After the screen loads, press "escape," then "x." Type "tetris" (lower-case) and hit enter. There you have it, a fully playable game of Tetris. Use the arrow keys to control the blocks.


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Filed under: Terminal Tips

Terminal Tips: 5 ways to navigate with ease

How many times have you been in Terminal and wished you could navigate around with a little more ease? In this Terminal tip, we will show you 5 must-know tips for working with Terminal.app.

1. Change your current directory
If you want to change the current directory you're in, just type: cd /change/to/dir. For example, if I wanted to change the directory to my Desktop, I would type: cd ~/Desktop .

2. List files and folders in the current directory
Now that you're in a directory, you might want to get a listing of what's there. To see this, just type ls.

3. See which directory you're in
If you've navigated your way into an unknown land, typing pwd will display a path listing to the directory you're in.

4. End a running script/program
If you're running a program/script (for example: ping google.com) then you might think you have to close the Terminal window to exit. That's not true. To stop a running script or program, just press control + C.

5. Clean up your mess
If you have several of commands on the screen and want to "freshen-up" your Terminal window, typing clear will remove all commands you have typed up to that point, leaving you with a clean slate.


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Filed under: Terminal Tips

Terminal Tips: Make the Dock spring loaded

Spring-loaded Dock items, just like spring-loaded Finder items, are supposed to save you time by allowing you to drag a file over the folder/icon, hover for a few seconds, and have the application/folder open. Some people like these spring loaded items, while others don't -- with this Terminal "hack," you can either enable or disable this Dock feature. To enable it, open Terminal.app (located in /Applications/Utilities/) and type the following command, pressing enter:

defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean YES

To disable spring loaded items, replace the "YES" in the command above with a "NO."


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Filed under: Terminal Tips

Terminal Tips: Disable Spotlight in menu bar

Are you tired of accidentally opening spotlight by pressing command + space? With this simple Terminal "hack," you can rid your precious menu bar of Spotlight for once and all. Just open Terminal.app (located in /Applications/Utilities/) and type the following command:

sudo chmod 0 /System/Library/CoreServices/Spotlight.app

You will be required to authenticate as an administrator, then the command will run. While you are still in the Terminal, type "killall Spotlight" to turn off the spotlight service right then. Spotlight will suddenly dissappear from your menu bar. To get Spotlight back, just type the following command back into Terminal:

sudo chmod 775 /System/Library/CoreServices/Spotlight.app

After a few seconds, Spotlight will reappear in your menu bar. Note that this does not remove Spotlight from Finder windows, only from the menu bar.


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Filed under: Terminal Tips

Terminal Tips: Personalize Terminal.app


Tired of the bland, black and white look of Terminal.app (/Application/Utilities)? By tweaking the preferences in Terminal, you can easily change the theme, and look of your Terminal windows. Open Terminal and click Terminal > Preferences (or press command + ,).

Clicking on Settings will allow you to see the available themes. Terminal ships with several nice themes including basic, grass, homebrew, novel, ocean, pro, and red sands. In addition to using these, you can create your own by clicking the "+" button at the bottom.

You can tweak a theme by clicking the theme and using the options in either the "Text" or "Window" tabs. You can change the font style/size, text color, type of cursor, color of cursor, etc. When you are ready to make the these your default, just click the default button at the bottom of the theme list. Now all of your Terminal windows will load with the settings you specified.


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Tip of the Day

Holding the Command key (aka the Apple key) and pressing Tab will cycle through your open applications. It's easier to Cmd-Tab if you are Copy (Cmd-C) and Pasting (Cmd-V) to and from various applications.


Follow us on Twitter!
TUAW [Cafepress]

Sponsored Links

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor
Apple Texas Hold 'Em

 

More Apple Analysis

AOL Radio TUAW on Stitcher