Posts tagged ‘MacOSX’

If I log in to my Ubuntu box over SSH from my MacOSX terminal, then start screen, my backspace-key doesn’t work anymore. Pressing it deletes the first character on the right of the cursor, instead of the one on the left. This only happens inside screen, not on the regular bash-shell.

I found different workarounds:

  • A forum post telling to change the terminal preferences to send backspase as CTRL-H (ASCII 0×08) instead of the normal ASCII 0x7f.
  • A blogpost telling to lie about the terminal you’re using: “TERM=screen screen”
  • Another blog telling to do remapping inside screen with bindkey-commands

None of the above worked without side-effects: CTRL-H is not understood by MacOSX terminal applications; bindkey-commands are applied even if I SSH from my linux box.

The solution I like best is to change the terminal from the standard “xterm-color” to “rxvt”. After this change, everything worked like a charm.

IPv6 is, big surprise, the new version of IP. The current internet runs on IPv4, which has some drawbacks. Practically both versions are the same: they allow connections from one host to another host. Technically however, there are some major differences, most notably the enlarged address space. For the moment, most hosts will run a dual-stack configuration.

I decided that it was time to implement IPv6 on my home network and get a IPv6 connection to the IPv6-Internet.

Continue reading ‘IPv6 in the home network’ »

I just found a very nice post describing nice things to do with Bluetooth. By using the Proximity tool, my MacBook Pro can monitor the precense of my cell phone. Proximity will run an AppleScript when a selected device enters and/or leaves Bluetooth range. Most  phones are class 2 Bluetooth devices, which gives a range of 10m (outdoors). This allows you to automatically lock your desktop when you leave and unlock when you come back.

Continue reading ‘Useful things to do with Bluetooth’ »

I was looking around to get my VIDEO_TS-directory burned to a DVD-R disc. Apparently, Burn does not support this. This hint seems to work:

hdiutil makehybrid -udf -udf-volume-name DVD_NAME -o MY_DVD.iso /path/to/VIDEO_TS/parent/folder

I just read an interesting article on how HFS+ deals with fragmentation. Not only will it take proactive steps to avoid fragmentation, apparently it will defragment some files on-the-fly.

This forensics-site has a very detailed article on the hex-dumps you can get from an HFS+ partition.

I’m again having problems with my new MacBook Pro (the late 2008 unibody one). The problem is most easily visible when BootCamping into Windows and running whatever 3D application (I use 3DMark06). Within 5 minutes, the machine crashes. After some trail-and-error, I found out that it appears to be a thermal problem.

Normally, when the load goes up, the fans kick in to keep the temperature down. Mine don’t… When stressing my CPU under MacOS, it happily goes up to 90ºC with the fans still idling at their standard 2000rpm. Needless to say, a bit of GPU-load increases the temperature beyond the safety-thresholds.

Resetting the SMC solves this problem only partially. On the first boot with a clean SMC, the same CPU-test brings the CPU to 70ºC with fans blazing at 4750rpm, as it should be. Once the machine goes through a sleep-wake cycle, the same test brings it straight up to 90ºC.

Just when I was about to call Apple Care, a software update pops in: SMC Firmware Update 1.2, looked promising, but the problem persisted… I’ll call Apple Care tomorrow.

Continue reading ‘Cooling problem with MacBook Pro’ »

Since PhotoShop is a bit too expensive, I’m sticking to The GIMP. When trying to get The GIMP to work under MacOSX (Leopard) I had two issues. The first one was a huge lag in the mouse pointer. Apparently this was caused by a specific version of X11. Since I’ve updated to 10.5.6, the problem disapeared by itself.

A second issue I was having is that (by default) the first mouse-click simply activates the window. The GIMP uses multiple windows, making this very anoying: to switch to another tool, I had to click twice. This blogpost gives the solution:

$ defaults write org.x.X11 wm_click_through -bool true

In my home setup, the Wireless LAN and the Wired LAN are on different subnets. The communication between the two is fully routed, so from the IP point of view, this works perfectly. Most protocols just use DNS and just work. There are, off course, some exceptions to this rule that needs special treatment. One example is, big surprise, Microsoft’s name resolution which works by using broadcasts. Since routers don’t forward broadcasts, you need a trick to get this to work across subnet boundaries: a WINS server.

Another example is Apple’s Bonjour protocol (aka Zeroconf aka Avahi aka Rendezvous). The technical details are a bit different (multicasted instead of broadcasted; based on DNS instead of proprietary protocols), but the result is the same: it doesn’t work across subnet boundaries. Obviously, this protocol is extended to work over a Wide Area Network (WAN), but for some reason, Apple decided that iTunes (and iChat) only supports local Bonjour. (It won’t surprise me if the RIAA has something to do with this.)

Continue reading ‘Sharing iTunes across subnet boundaries’ »

My car has a CD player build-in that supports MP3 CDs. However, it’s fairly picky on the format of the disc. I tried to burn a CD using Burn Folder which comes with Leopard, which creates a multistandard disc containing a HFS+, an ISO-9660 with Rock Ridge, and a Joliet with Rock Ridge. While this looks very nice on paper, the car’s CD player was less satisfied: “Error CD”.

Another issue is that the player has no support for M3U-playlists. It does, however, support “albums” (directories), which can be used to emulate playlists. Just add a number prefix to each filename and it’ll work. Placing the same file in multiple playlists/albums/directories is possible, but wastes space. But this can be worked around.

Continue reading ‘Faking playlists on an MP3 CD’ »

Time Machine is the Mac way of doing backups. The concept is fairly similar to incremental rsync snapshots. Officially, Apple does not support Time Machine backups to a network volume: network drives don’t show up in the Time Machine user interface. The only way to get network-based Time Machine is by buying a Time Capsule.

When doing a Time Machine backup to a normal disk (I tried it with a LaCie 1TB USB disk), one can see the file structure created. Mine looked like this: Backups.backupdb/<hostname>/<date>/Macintosh HD/… Inside this directory is my full system (minus the parts I explicitly excluded in the Time Machine config).

Since we have more than 1 Mac, I’d like to have all of them back up to the same hard drive. I already have a Linux-based server serving files over AFP. This is where it gets more interesting…

Continue reading ‘Time Machine to a linux server’ »