Have Macs correctly refer to Ubuntu in dualboot mode

The BootCamp provided by Apple to allow dual-booting on Macintosh computers is designed for Windows. The Macintosh boot menu that appears when you hold down [Alt] during boot confirms this—even if you install Ubuntu, it will still read "Windows". There are some ways around this using OS X's own tools but none are satisfactory. The easiest way to get around it to install rEFIt (http://refit.sourceforge.net), a third-party Mac boot manager. This shows a nice graphical boot menu each time you start-up, complete with the correct icons and terminology for Linux partitions. You can install it from within OS X or create a bootable CD and install it that way. Setup is automatic after installation and no configuration is needed. Just reboot to see the effect.

The sleep command is usually used in shell scripts but it can be useful in simply delaying day-to-day commands typed at the prompt. As its name suggests, it causes the prompt to pause for a set period before executing any more instructions. Inserted before another command, it can cause the computer to pause before executing that command. For example, the following will cause the computer to shutdown (switch to run level 0) in 30 seconds: $ sudo sleep 30s; sudo telinit 0

Note that this particular example only works because the computer "remembers" the sudo powers used with the first command (sleep), so when they're called by the second command (telinit 0), they're still relevant. In this particular case, if the pause was longer than 160 seconds (two minutes; the sudo grace period) then the command wouldn't work. To learn about how to extend the sudo pause, see Tip 47, on page 110.

Sleep, Ubuntu, sleep!

Instantly create a HTML slideshow of photos M 171

Was this article helpful?

0 0

Post a comment