Archive for the ‘Mac’ Category

Pash PowerShell open source reimplementation

August 11th, 2012 No comments

For Mac, Linux, Solaris, etc… and Windows (including Windows Mobile and Windows CE):

Categories: Linux, Mac Tags:

Repair Mac OS via Linux

August 11th, 2012 No comments

First of all, you must have a copy of the physical disk image, in case the tool destroy all the data (you never know).

So, take another big disk and make a dd of it (or, better, a forensics dd: ddrescue for example ).

dd if=/dev/hda of=mybigfile.img bs=65536 conv=noerror,sync

after that, put your mybigfile.img in a secure place.

Second, if the hardware is defective, you must use a good disk, and restore your disk image on it:

dd if=mybigfile.img of=/dev/hdx bs=65536

After that, you must use a recovery tool. You can check many recovery tools, but in the first place I would try with fsck.hfs ( ).

I can’t suggest you any other hfs+ recovery tool, because I didn’t have the need to use it. Try a look on internet, and always work on a COPY of the IMAGE you made on the first step!


to change the permissions you need to be a super-user (root).

You accomplish this by typing ‘sudo su’, and then the password for your account. This makes you root.

Next, execute the command: chmod -R 777 /path/to/your/mounted/devi


That will remove the perimssions restrictions from every file on the disk.


Categories: Linux, Mac Tags:

TCP ACK education in Wireshark

August 10th, 2012 No comments
Categories: Linux, Mac, Windows Tags:

XBMC as media center

January 13th, 2012 No comments
Categories: Linux, Mac, Windows Tags:

Convert a DMG image to IMG

March 9th, 2011 No comments

First, install “dmg2img” through the Ubuntu programs. Next run the util:

user@computer$ dmg2img mac-image.dmg new-image.img

dmg2img v1.6.2 is derived from dmg2iso by vu1tur (

mac-image.dmg --> new-image.img

reading property list, 1632063 bytes from address 6107371782 ...

opening partition 0 ...             100.00%  ok

Archive successfully decompressed as new-image.img

You should be able to mount the image [as root] by:

modprobe hfsplus
mount -t hfsplus -o loop new-image.img /mnt
Categories: Bash, Linux, Mac, Ubuntu Tags: