OS X and Xterm

Here’s a follow-on to yesterday’s OS X Terminal tip. Folks coming to OS X from the Unix/Linux world may be wondering about Terminalan icon representing the Terminal application – why aren’t we just using Xterm? Xterm does exist on OS X systems but it requires X11 to run, while Terminal is a native application providing very similar capability. The differences are relatively minor; here are a few. $TERM is set to vt100 rather than xterm, PageUp/PageDown keystrokes are used by Terminal rather than being passed to the application, Terminal uses one process with each window getting a seperate child, and you need to use Command-C to put selections into the clipboard. Unless you’re a super Xterm jockey, I suspect that you’ll adapt pretty quickly.

If that’s not the case and you’re still wanting Xterm, you’ll need X11. To get X11 running, you’ll want to check out XFree86 and the XDarwin project (or apparently your OS X installer disk), and probably dig into chapter 7 of Mac OS X for Unix Geeks.

OS X Terminal

PowerBookI’ve passed along a few Mac tips before…

… and here’s one for Terminal. If you’re a vi or Emacs user and want to be able to use the mouse to move your cursor, visit Terminal’s Preferences and change to Emulation. There you’ll find the ability to “Option-Click to position cursor.” Enable that and you’ll be able to move your editor’s insertion point onscreen without a bunch of arrow-keystrokes.

Windows On Mac-on-Intel

Ever since Steve Jobs announced that they’d be moving to Intel chips, one of the major questions on people’s minds (well, geeks’ minds) has been “Will we be able to run Windows on an Intel Mac?”

The Apple party line at MacWorld seems to be “we won’t support that” – which is completely fair and understandable, I think – and folks such as Geren have found articles that seem to indicate that it could be possible. I think the money quote comes from Apple’s VP of Marketing, Phil Schiller.

That doesn’t preclude someone from running it on a Mac. They probably will, we won’t do anything to preclude that.

Of course, he doesn’t say they’ll do anything to make it easy, either.

A dual-bootable MacBook though, that’d be pretty damn tough to beat. Let’s see now, I wonder if a 100Gb drive be large enough…

[later] Sam points out in comments that Windows XP won’t run boot on the new Intel Macs, we’ll have to wait until Vista.

[even later] neosmart.net has instructions that might work. Or might not, according to allocinit.net.

Formatting Big FAT32 Volumes

Ok, so I’ve got this nice big 190Gb external firewire drive. Both my Windows XP systems and my Macintosh have firewire, so I should be able to plug it into either system and use it, right? Well, kindof.

Formatted NTFS, the XP system could use it just fine. The Mac could read it, but not write. Ok, that I can understand. But I want to use it fully.

I understand that OS X can read and write FAT32 drives, so I use the XP box to move all the data off and format it. But XP doesn’t want to format a drive that large, apparently. Per Microsoft:

In theory, FAT32 volumes can be about 8 terabytes; however, the maximum FAT32 volume size that Windows XP Professional can format is 32 GB. Therefore, you must use NTFS to format volumes larger than 32 GB. However, Windows XP Professional can read and write to larger FAT32 volumes formatted by other operating systems.

display from Macintosh
So… what system can format this drive for me? Should Windows 2000 or 2003 be able to format a big drive like this using FAT32?

update: so far the best (for me, given equipment & OS’ around) solution is to build the small FAT32 partition and then buy a copy of Partition Magic to resize it.] [oh good grief. $70!? no, there’s got to be another solution

another update: there is another solution, and thanks to RC and others who suggested Linux. I didn’t acually use a Linux system, but found Linux mkdosfs for Windows NT/2K/XP, which worked just fine. A big thank-you to Jens-Uwe Mager who apparently ported mkdosfs from Linux to a “DOS” or Windows console application.

C:kitsformat>mkdosfs -F 32 -n BigFish -v G:
mkdosfs 2.8 (28 Feb 2001)
Win32 port by Jens-Uwe Mager
\.G: has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 390716865 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 380816 sectors, and provides 48744400 clusters.
Volume ID is 4149e22c, volume label BigFish    .

display from Windows Explorer

OS X Hints for Windows Users

Ok, I’ve got some answers to some Mac questions that were bothering me. We can just make today Mac OS X Hints for Windows Users day, perhaps the first of several.

  • Is there a way to lock the desktop? When I leave my desk, I’m supposed to lock the system – Control-Alt-Delete, then Lock Computer (or WindowsKey-L on an XP system). Most appliations keep right on running (music players seem to be the exception; many stop playing while the system’s locked) but nobody can walk up and look at my data. I don’t see an obvious way to do this in OS X.

I got a couple of answers here from folks (Thanks Dave R., Smith K. and Gary H.). To me, the easiest is to merely require a password to come out of the screen saver or sleep mode.

Start System Preferences (similar to Windows’ Control Panel), then visit the Security applet and check the “Require password to wake this computer from sleep or screen saver” box. Then go to the Desktop and Screen Save applet and click the Hot Corners button. Choose a corner of the screen to use to manually start the screen saver. I use the upper right-hand corner; I don’t normally have a reason to be poking the pointer up there beyond the clock very often. Close System Preferences.

Now, before leaving the desk, give the mouse point a toss into the corner and the screen saver will start. When you return, you should be promted for your username and password before getting back to work.

Smith K.’s other suggestion is also a good one: Alternately, you can open up “/Applications/Utilities/Keychain Access”, and in the “View” menu for that app, pick the “Show status in menu bar”, and a padlock will appear in the right side of your menu bar. You can then pick “Lock Screen”.

  • How can I connect to a Windows (smb) file share? I was pretty sure that I remembered seeing somewhere that OS X made this a whole lot easier than back in the System 7 days that I remember. The Printer widgit was able to find my Windows XP-shared DeskJet just fine last night. I’m not sure where to look to find something similar to reach my files. (I do see what look to be domains & workgroups in the Finder’s network browser, but they’re all empty. Hmm, even in the printer widgit they’re empty. Interesting.)

version 10.3, aka “Panther”; I’m not sure that older versions had this particular function in the same place (if at all). When in the Finder, use the Go menu’s Connect to Server… item, which brings up this dialog box. You can click the Browser button and wander around, but in a large network it’s sometimes easier to just type the server name.

screenshot of the Finder's Connect to Server dialog box, described in the text

The original specification for the underlying set of protocols that are used in Microsoft’s file sharing is called Server Message Block, or SMB. You can see in the screenshot here that I’m only prefixing the server name with smb:// to make the connection. The one that I’ve added to my “Favorite Servers” list is a server name, when I connect to it I get a list of the file shares from which to choose. I also have a shared area that’s “hidden” from browsing; I can connect directly to that as shown by typing both the server and share names, like this: smb://cortana/vore$

When the connection’s made (after you supply a username and password, if asked to do so), the shared folder appears as an additional drive on your desktop. If it’s one you’re going to use a lot, you could create an alias so you don’t have to go though the whole Finder Go menu routine each day.

As for printers… well, we don’t seem to have the same option for connections here. In the dialog box (brought up by System Preferences, Print & Fax, Set Up Printers…, Add) I can only find an option to browse, not to type in a server and printer name. For some reason, I can browse to my server and find its printer when I’m on my home network, but can only see a list of almost completely empty domains on the corporate network. More research needed here. If I’m missing something, or there’s another place I should be looking, please let me know.

  • How can I capture an image from the screen, to put on my website or into a presentation.

While I was putting this together, I realized that I didn’t know how to get a screen shot. On a Windows system, I use Shift-PrtSc (or Alt-Shift-PrtSc) then paste into Paint. A quick IM to Paolo got the answer for us, and I then remembered the same keystroke from back in my System 7 days. Shift-Apple-4 turns on a selection cursor; you drag a box around what you want copied. OS X puts the copy right into a file for you, a PDF file saved on the desktop. I then pulled that into PhotoShop for some minor editing and saved it as a Jpeg file for the website.

There’s also something called Grab on my system (open the Finder, choose Appliations, then open the Utilities folder), but I havn’t explored it yet. What I don’t see is a basic Paint-type application; if I didn’t have PhotoShop here I’m not sure what I could use for simple image editing.

I think that’s enough for today. I’m sure I’ll come up with more questions as time goes by.