Fresh install macOS Sierra on MacBook Pro with retina

  1. Download macOS Sierra from Mac App Store
  2. Create a bootable USB drive
  3. Boot with USB
  4. Using Disk Utility to erase and unmount current HDD
  5. Install with macOS Sierra
  6. Transfer important files from Time Machine
    I don’t like transfer entire system after fresh install now. Continue reading “Fresh install macOS Sierra on MacBook Pro with retina”

2010 Mac Mini Server, Time machine restore

My mac mini server had already used for 4 years. The upper HDD seems has some bad track or something error. There are many red warning messages in the Disk Utility. So, I just brought a new WD 750G HDD with 7200 rpm to replace it myself.

I had to say, it is not very easy for a beginner like me. It took me around 2 hour to replace it. However, the period is funny.

The most nightmare is restore everything from Time machine to new HDD. The restore time took near 4 hours for around 400 GB data. Continue reading “2010 Mac Mini Server, Time machine restore”



上個月在 Apple Online Store 訂購一台 MacBook Air,收到之後發覺它背後出風口處那塊黑色塑膠似乎有些問題,按到它時會有陷下去的狀況。由於不清楚這樣的問題是否屬於正常狀況,於是打電話到 Apple 的技術部門詢問。該名工程師亦沒有提供明確的說明,只說若是需要的話,可以透過訂貨客服申請退換貨處理,還給了我一組編號。因為這樣的問題不影響到平常的使用,所以我便決定不處理它,繼續使用。

7 月中旬,Apple Online Store 推出 back to school 活動,在原先的教育折扣後再降價 3,000 元,相當吸引人!但在PTT上有人分享了他打去 Apple Online Store 詢問後的心得,因為該活動是 7/16 後開始,因此要 7/2 收到電腦的人才符合退差額 3,000 元的資格。看到該篇文章後,心想,我是 6/28 收到的,所以就算了。 Continue reading “態度”

Broken scp or sftp on Maveircks

For some unknown reason, my new MacBook Air does not able to download files from my Mac Mini Server at home by either “scp” or “sftp”. It just kept show me “Write failed: Broken pipe” and also “Lost connect”.

Finally, I found this help to fix the problem.

Broken SSH client on Mavericks, on Apple Support Communities

I added the following content into “/etc/sshd_config”

TCPKeepAlive yes
ServerAliveInterval 5

Then, everything is fine. Thank you marcelkraan.

Installing FastX on Mac

  1. Downloading and installing libgtextutils-0.6
    curl -O
    tar xvjf libgtextutils-0.6.tar.bz2
    cd libgtextutils-0.6
    sudo make install
  2. Downloading and installing FastX
    curl -O
    tar xjvf fastx_toolkit-0.0.13.tar.bz2
    cd fastx_toolkit-0.0.13
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
    sudo make install

MySQL install on OSX 10.7 and 10.8

It is because my new mac mini did not install the, I need to install MySQL by myself.

  1. Download DMG from MySQL:
  2. curl -O
  3. Mount the DMG file, and install pkg.
  4. hdiutil mount mysql-5.6.13-osx10.7-x86_64.dmg
    sudo installer -package /Volumns/mysql-5.6.13-osx10.7-x86_64/mysql-5.6.13-osx10.7-x86_64.pkg -target /
  5. Modified the “.bash_profile” to create the path to mysql
  6. vi ~/.bash_profile # create it if not exist
    ##within vi
    export PATH=/usr/local/mysql/bin:$PATH
  7. Start MySQL service:

    sudo /usr/local/mysql/support-files/mysql.server start

    There should come the “SUCCESS!!” message.
    If there is error message, this reference can be help. Install MySQL

  9. Set the password for root.
  10. mysqladmin -u root  password 'secret_password'
  11. Login to mysql, check if it goes well.
  12. mysql -u root -p

Install PASA, CIRCOS, and GD on Mac

This is really a nightmare!! And I still can not let GD work with PNG on my mac mini server!

I had done some things.

  • Install Homebrew, this is used to install gcc-4.7. Why not MacPort? It is because it does not work.
  • ruby -e "$(curl -fsSL"
  • Install gcc from homebrew. There may be some other procedures, just follow its advice.
  • brew install gcc
  • Install “libpng”, “jpeg”, and “libgd” by homebrew.
  • brew install libpng
    brew install jpeg
    brew install libgd

Basically, things should be done. But, my GD still not work!!
Continue reading “Install PASA, CIRCOS, and GD on Mac”