无限试用Parallels Desktop

PD是个很强大的东西。。可惜太贵了,几百大元一份,所以,我只敢用kcnscrew搞来序列号,当kcnscrew的更新速度跟不上时。。就比较头大了,看到有完整卸载pd的方法,拿来折腾下,嘿,可以重新用试用激活码激活了,这不就对了嘛。。
废话不哆多说了,打开,先sudo w,给密码,然后粘贴下面这段

sudo rm -fr ~/Library/Logs/parallels.log
sudo rm -fr /Library/Preferences/Parallels/
sudo rm -fr ~/Library/Preferences/Parallels
sudo rm -fr /private/var/.Parallels_swap
sudo rm -fr /private/var/db/Parallels/Stats
sudo rm -fr /private/tmp/qtsingleapp-Parall-c0ce-0-lockfile
sudo rm -fr ~/Library/Preferences/com.parallels

完事后去pd那边重新申请个试用,接下来重新安装一下pd(不用卸载旧的),完事,继续用14天

在centos上用yum装php5.3+

yum -y remove php-mhash php-ncurses
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum -y –enablerepo=webtatic update php
或者
yum -y –enablerepo=webtatic install php

详细说明:http://www.webtatic.com/packages/php53/

解决安装Lion时提示无法创建恢复系统

English Version here :http://johnliu.info/?p=107

这个问题折磨了我接近两个小时,最后看到安装日志后一切都明朗起来了。。

解决办法很简单:

删除或重命名BootCamp下windows分区里的boot.ini,完事

只适合于mac电脑,对于黑苹果是否适用就不知道了

具体原因:

苹果非常热心的想帮忙修改boot.ini,结果发现是NTFS或者别的原因不能修改,然后就傻逼了

详细分析见英文版

How to resolve “a recovery system can’t be created” when installing Lion

(中文版在这里 http://johnliu.info/?p=110 )

When try to install Lion on a macbook 07-mid, I got this:

Install Failed
Mac OSX could not be installed on your computer
Install failed: Mac OS X can’t be installed on the disk xxxx, because a recovery system can’t be created. Visit www.apple.com/support/no-recovery to learn more

Click restart to return to your previous vesrion of Mac OSX.

 

Apple’s solution was backup everything and  complete format your hd and install a clear copy of snow leopard and then upgrade. What a pain/eggache.

So I dig a little more in to this and find a possibility which did work on my old macbook

In simple:

If you are using bootcamp to boot windows, rename boot.ini in the root directory of your windows partition in any means, then try to upgrade again.

If rename that file didn’t solve the problem, open disk utility and click your  hard disk, then adjust your snow leopard install disk’s size, leave at least 128MB blank space after you snow leopard disk. I resized my disk to leave 5GB disk space for convenience, you can add this disk space to your os disk after upgrade so there is no loss.

 

The reason:

When I dig into Lion installer log, I fount this:
Jul 22 07:37:58 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: done fsck of donor slice; err=0
Jul 22 07:37:58 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: doing check if there is a WindowsOS at part#4 on phy’s whole=0x10ff88c10=disk0
Jul 22 07:37:58 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: if WINOS on partID=4 then caution; isWindowsOSonPart4=0
Jul 22 07:37:58 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: at DoneCheckingDontPushWindowsOSPast4
Jul 22 07:37:58 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: doing test of boot.ini file(s) updatability on phy’s whole=0x10ff88c10=disk0
Jul 22 07:37:59 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: done test boot.ini updatability; err=ShouldAbort=-69729
Jul 22 07:37:59 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: at Exit; err=-69729
Jul 22 07:37:59 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: recoveryDiskBSD=(null) physicalDonorBSD=disk0s4
Jul 22 07:37:59 localhost diskmanagementd[351]: DM ..T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]: detach if set: didDiskImageAttach=0
Jul 22 07:37:59 localhost diskmanagementd[351]: DM <-T-[DMToolBootPreference ensureRecoveryPartitionForVolume:]
Jul 22 07:37:59 localhost OSInstaller[347]: Recovery system creation failed with error -69729 (Unable to modify a Windows boot.ini file because it is set up in a customized configuration)
Jul 22 07:37:59 localhost OSInstaller[347]: Install failed: Mac OS X can’t be installed on the disk MacOSX , because a recovery system can’t be created. Visit www.apple.com/support/no-recovery to learn more.

 

That is the fatal error caused abort of installation. So simply rename boot.ini fixed this problem. If you are running windows 7 with bootcamp, just delete your boot.ini in windows 7 will also do the same because windows 7 don’t need a boot.ini for start up.

After install of Lion, you may need manually fix your boot.ini for your windows sysyem to boot up, just modify that according your new partition layout. You may get your partition layout in Terminal with command “df”. I will explain this later.

Also you may use windows installation disk to automatically fix your boot.ini, inquiry google for more details 🙂