» Mac OSX の記事

~ fix Mac terminal cannot use aapt ~

connie 2019.06.21 | android, Mac OSX | | No Comments

cd ~
touch .bash_profile
nano .bash_profile

AAPT_HOME=/Users/xxx/Library/Android/sdk/build-tools/28.0.3
export AAPT_HOME
export PATH=$PATH:$AAPT_HOME

~ install macosx on vmware ~

connie 2017.05.08 | Mac OSX, vmware | | No Comments

download
1)vmware workstation pro form vmware web-site(free)
2)unlocker208 from insanelymac
3)Golden master 10.12 vm image

install vmware workstation pro with sn
patch vmware with unlocker208, click on win-install(run as admin)

CLOSE VMWARE before patch

Then go back to the vmware, and create a new vm for mac

press I will install the operating system later.

if <<apple Mac OS X>> is appear on the select box, then the patch process is successful.

Select store virtual disk as a single file, then edie the vm and remove the hdd

add back the existing Golden master virtual disk

finish edit, then go to the vm folder and edite the .vmx by using notepad ++

add this line at the back

smc.version = "0"

then switch on the vm

~ Clone OSX86 ~

connie 2013.03.31 | Mac OSX, osx86 | | No Comments

必需東西

  1. USB TO SATA case
  2. Carbon Copy Cloner (Mac Backup software
  3. Destination HDD 要有足夠位置放晒Source HDD 的資料
  4. Chameleon BootLoader

先到Application>ultilies>Disk ulitily Format 左HDD 先

去drive 既partition到,選擇1 partition Format "Mac OS Extended(journaled)

 Screen Shot 2013-04-01 at 8.28.28 PM

之後按option, 選擇GUID PARTITION TABLE完成按OK and APPLY

Screen Shot 2013-04-01 at 8.28.38 PM

FORMAT 後回到CCC , Select Source and destination , 打password , restore , 無乜特別野的

Screen Shot 2013-04-01 at 8.24.47 PM 

完成後,reboot , BIOS指返舊HDD boot 機,會入返去舊bootloader

入到去bootloader , 唔好boot 入舊HDD, boot 去新HDD

入到去OS後重新安裝Chameleon BootLoaderScreen Shot 2013-04-01 at 8.36.30 PM

之後boot機就成了: )

openssl sha1 [full path to file]

 

~ ALC 888 and ALC 1200 with VoodooHDA ~

connie 2013.02.13 | Mac OSX | | No Comments

VoodooHDA 有時會同nvidia 等display card 的hdmi audio out 撞左

VoodooHDA 會以為display card 個張先係main audio card

以下方法可以解決問題

[1]先確定graphic card 安裝成功,無有問題

到system report.. Hardware>graphics/Displays check 一下graphic card 的vendeor id and device id

Screen Shot 2013-02-13 at 8.12.10 PM

 

先到 /system/library/extensions 找VoodooHDA.kext

右click show package content 入到去folder 改以下 file ./contents/Info.plist

<key>IOMatchCategory</key>
<string>VoodooHDADevice</string>

在這code 下加入vendeor id and device id for skipping

<key>VoodooHDAVidSkip</key>
<string>0x10de</string>
<key>VoodooHDADivSkip</key>
<string>0x1244</string>

之後clear caches

sudo -i
cd /system/library/Caches 
rm -r com.apple.kext.caches

 

10.7後,MAC OSX 加入新功能,可以restore 返你關機前既狀態

小妹通常一開就開一大堆program的,aperture, photoshop , ai , eclipse , 總之開得就開

問題就尼了,一重新開機,等到微笑。

終於找到可以停止restore 動作。

先去system preference> General 

Screen Shot 2013-02-03 at 11.11.27 PM

untick "Restore windows when qutting and re-opening apps , 之後就可以重新開機而不restore apps

Mac OS X Server Apache 無法存取本機 MySQL Server 解決方式

由 phpinfo 中得知,是將 Mac 中的 PHP 是將 mysql.sock 放在 /var/mysql 下,

而 Mac 中的 MySQL 是放在 /tmp/mysql.sock。

所以要由本機的 Web Server 利用 PHP 連接本機的 MySQL 就會一直出現無法連線的錯誤。

利用底下的指令可以解決這個問題

sudo mkdir /var/mysql
sudo chown mysql /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/
| HOME |

Smiley face

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31