2013年10月27日 星期日

UniBeast 3.0.1 create Mavericks installation drive fail

If you want to upgrade Hackintosh from Mountain Lion 10.8 to Mavericks 10.9. The first step should be creating a installation usb drive from UniBeast.

Once you have download the Mavericks from AppleStore, you can launch UniBeast to create the installation drive. However, UniBeast has a limitation in the troubleshooting notes:
"3. UniBeast does not support running from or copying to Case-sensitive file systems."

If your /Application is on a case-sensitive partition, then you have to move /Application folder to another partition which is case-insensitive.

The default "Mac OS Extended (Journaled)" is case-insensitive.

Note: if you only move /Applications/Install OS X Mavericks.app folder to the case-insensitive partition, it still will not work, you need to move whole /Applications folders to another partition and create a soft link for it.



REF:
http://www.tonymacx86.com/unibeast/113297-how-i-got-unibeast-3-0-working-case-sensitive-filesystem.html



2013年10月22日 星期二

VMware ESXi NIC drivers

Here are common types of modern VMware ESXi NIC can be used when creating a VM:

Flexible: Vlance (emulated AMD 79C970 PCnet32 10Mb NIC) or VMXNET(When vmtools installed)

E1000:  Gigabit NIC, emulated Intel 82545EM

VMXNET 2(Enhanced): Gigabit NIC based on VMXNET

VMXNET 3: 10G NIC


For CentOS/RHEL 6, VMXNET3 NIC driver can be compiled from kernel source with option "VMXNET3".
/lib/modules/{kernel-ver}/kernel/driver/net/vmxnet3.ko

For VMXNET2, vmxnet.ko can be installed when vmtools installed.
/lib/modules/{kernel-ver}/misc/vmxnet.ko

You also can compile vmxnet.ko from the extracted vmxnet nic source code in vmtools tarball.

More features for each NICs please refer VMware KB: Choosing a network adapter for your virtual machine


install centos/rhel kernel-devel and kernel-headers from installation CD


mkdir /media/cdrom
mount /dev/cdrom /media/cdrom

yum --enablerepo=c6-media install kernel-devel-$(uname-r)
yum --enablerepo=c6-media downgrade kernel-headers-$(uname -r)

* downgrade might be helpful when you accidentally installed a newer but mismatch version.


2013年10月6日 星期日

EV (Extended Validation) SSL Certitifcate

如果是由 EV (Extended Validation) CA 所簽發的 SSL Certificate, Chrome 會在 URL 列列出組織的名稱。像 GitHub 的這樣:


而一般 CA 所簽發的則沒有。像 FaceBook的:

就稽核管理的角度來看,EV CA有較嚴謹的限制:
<quote wiki>
  • Establish the legal identity as well as the operational and physical presence of website owner;
  • Establish that the applicant is the domain name owner or has exclusive control over the domain name; and
  • Confirm the identity and authority of the individuals acting for the website owner, and that documents pertaining to legal obligations are signed by an authorised officer.
</wiki>
較有趣的一條是 EV CA不允許簽發 wildcared Extended Validation certificate。


REF:



2013年10月3日 星期四

my .gitconfig

git config --global user.name "Kuanhung"
git config --global user.email "ericj.tw@gmail.com"
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.log auto

git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch



#vim ~/.bash_profileif [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
. /usr/local/git/contrib/completion/git-completion.bash
fi

my vimrc for python



syntax on
set nocompatible
set tabstop=4
set softtabstop=4
set expandtab
set smartindent
set hlsearch
filetype indent on "Enable filetype-specific indenting
filetype plugin on "Enable filetype-specific plugins


2013年10月1日 星期二

Access previous(old) version Amazon Linux AMI repository

Since Amazon Linux AMI will update about every 6 month.
If you need to keep repository in some specific version.
i.e. if the latest is 2013.09,  and you want to stay in 2013.03, you can change the repository file to some specific version.

#vi /etc/yum.d/amzn-main.repo
mirrorlist=http://repo.us-east-1.amazonaws.com/$releasever2013.03/main/mirror.list

#vi /etc/yum.d/amzn-updates.repo
mirrorlist=http://repo.us-east-1.amazonaws.com/$releasever2013.03/updates/mirror.list

#yum clean metadata

#yum search kernel-devel --showduplicates

Another tips regarding Amazon Linux is: if you use python platform.dist() to check distribution information. You will get empty string. However, I think you can use os.path.exists("/etc/image") to check if it is a AmazonLinux. That file contains detail information and it should only exists in AmazonLinux.