Categories
Apple Errors Networking

Console Hamachi

I wrote before, that the console version of Hamachi didn’t seem to generate tun/tap driver errors. But after rebooting my Mac I was no longer able to start Hamachi.

1
2
Nazgul:hamachi-0.9.9.9-20-osx yeri$ ./hamachi start
25 19:08:15.659 [   0] [14306] tap: connect() failed 2 (No such file or directory)

So I guess I’ll have to wait for a fix after all. ๐Ÿ™

Categories
Apple Errors Networking Software

Hamachi(X) on Leopard

When playing with KisMAC, I noticed something weird in my /var/log/system.log;

1
2
3
4
$date com.apple.launchd[1] (tuncfgd$pid) posix_spawnp("/usr/sbin/tuncfg", ...):
No such file or directory
$date com.apple.launchd[1] (tuncfgd$pid) Exited with exit code: 1
$date com.apple.launchd[1] (tuncfgd) Throttling respawn: Will start in 10 seconds

tun is (trying) to restart every 10 (!) seconds.
I tried updating Hamachi‘s tun/tap drivers, without any success. It kept restarting the process every 10 seconds.

After a bit of Googling, it seemed to be a known problem. So I decided to uninstall Hamachi & the tun/tap drivers.

1
2
3
4
5
6
sudo rm -r /usr/bin/hamachi
sudo rm -r  /usr/bin/hamachi-init
sudo rm -r  /usr/sbin/tuncfg
sudo launchctl unload /System/Library/LaunchDaemons/tuncfgd.plist
sudo rm -r /System/Library/LaunchDaemons/tuncfgd.plist
sudo rm -r /Applications/HamachiX

This should solve the restarting problem. You might want to reboot to be sure.

When uninstalling the drivers, HamachiX will be gone; there will be no way to use it. You can decide to ignore the spawning-processes, and keep using Hamachi as-is, but the spawning processes might slow down your computer. But HamachiX should work (although it often crashed here).

I tried reinstalling the tun/tap drivers, but the same happens. I guess I’ll have to wait for a fix. ๐Ÿ™

On the other side, I’ve tried the console version of Hamachi (so no HamachiX) which seems to be working fine (so far). Just missing out on the handy GUI. Edit

Categories
Errors Linux

Multiple Memory Access Vulnerabilities Linux Kernel

Well, it had to happen…

Yesterday evening two of our linux boxes were exploited.
I had to try it out for myself; and yes, it really does work. ๐Ÿ˜
Booted up my Ubuntu in Parallels, installed build-essential & ran that program!

1
2
3
sudo apt-get install build-essential
gcc what-ever-the-file-name-is.c
./a.out

This is what it looks like:

Kernel exploit

My-oh-my…
I’m pretty sure this doesn’t require any more explanations ๐Ÿ˜‰

Categories
Apple Errors VM Windows

Bootcamp

For a few courses I’m following at school, I need to be able to run Windows.

As I’m owning a Macbook Pro (with Leopard) that shouldn’t have to be any problem using Bootcamp.

I created a 5 Gb partition and installed WinXP a few weeks ago. So far all fine.

As I don’t really like to reboot into XP (I can’t access my mails, don’t have my IRC client, all my Camino tabs are closed, …) I tried Parallels.

Parallels, at first, was a real disappointment. It crashed my Mac OS X several times. It was only, just a few days later, when they released a patch to solve all Leopard issues, that I started to enjoy it.

Running all my programs from Parallels (instead of rebooting), I never noticed my Bootcamp WinXP was actually broken. As exams were approaching (I’m not allowed to run a virtualization of Windows, because my school’s key and network loggers won’t work like intended, not that I care that much, but they do ๐Ÿ˜‰ ), I rebooted for the first time in weeks to my Bootcamp XP, and noticed the famous hal.dll error (or Google it, you’ll see why it’s famous).

I repaired my Windows XP install (as explained in Parallels’ knowledge base), and that indeed fixed the problem… of Bootcamp… My parallels was now broken (hal.dll error for Parallels, instead of Bootcamp). Trying to recreate a new Parallels virtual disk for bootcamp, or even reinstall the program, … All failed. (There should be bootflags to edit, and force Parallels to use a different hal.dll, well, read about it here, it’s no longer useful for me.)

Googling and searching their forums, no luck, no one had a fixed solution. Only ‘try this’ and ‘try that’. (To follow the above howto I’ve posted, you need to be able to (re)install Parallels, and by the time I found that howto I wasn’t even able to do that; Parallels froze during installation.) I e-mailed the Parallels support team with my problem, and the form said they’d reply within 3 working days… It has been over 2 weeks, and I’m still waiting.

I then noticed that my Mac/Apple keyboard driver weren’t working in Bootcamp-XP, some chars like #, @, > and so forth weren’t working (or at least the layout didn’t match with my Apple keyboard). I tried to reinstall the Bootcamp drivers (located on my Leopard DVD), they all failed to install (no error message…). Being quite fed up with it, I decided to reinstall XP (without formatting, just overwriting my Windows dir). And here too, the drivers failed to install, with no specific error message… Took the required backups, formatted, and had the wild idea to install Vista.

Booted from the Vista install DVD, and came to the conclusion I needed at least 7 Gb disk space to install Vista (having a 5 Gb partition, this wouldn’t work). Back in os X I deleted the Windows partition, and tried to recreate a new (10 Gb) one.

And… This error came up: “Your disk cannot be partitioned because some files cannot be moved” (other link). I now started to panic, as I had less then a week to fix this problem. Following a few try-this-and-try-that’s, I removed a few big files from my disk (someone even said to remove Office 2004, but I wasn’t about to do that), I tried to repair my disk (from the Leopard DVD), I tried smaller partitions, even 5 Gb wouldn’t work, and then, when all hope was almost lost, I tried one last thing; ‘Zero Out Data‘. This will overwrite all deleted files (well, marked for deletion by your disk, but still written on it, so this data can theoretically be recovered) with zero’s.

Disk Utility - Zero Out Data

And this too, has to be done from the Mac OS X install CD/DVD.

After, well, about 40 minutes Disk Utility was done, I rebooted right into Leopard, and retried to create a 5 Gb partition… And guess what?! It worked!

I deleted that partition again (5 Gb being to small), and recreated a 15 Gb partition, and this too worked with no problems.

I now happily run Vista on my Macbook Pro, and so far I can’t complain.

The only thing I haven’t been able to fix is Parallels, I can’t even reinstall it (it freezes during install). But heck with it, I’ve lost enough sweat already to fix Bootcamp.