September 2014 Archives

ip_conntrack table 滿了, 加大最大值, 縮短 TCP timeout
/etc/sysctl.conf 加入
net.ipv4.netfilter.ip_conntrack_max=300000
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=600

sysctl -p # 載入

Samsung Samsung Galaxy Note 2 刷 CM 11 (本篇適用國際版 GT-N7100 non-LTE)

檔案準備
Odin 刷機工具
舊版 CWM + root 解開為 cwm-root-note2.tar.md5
CWM 6.0.4.3
CM 官網下載 ROM, ZIP 格式, 不需解開, 放到手機的 SD 卡
CM Google Apps 下載 CM 11 package, ZIP 格式,不需解開, 放到手機的 SD 卡

刷 CyanogenMod ROM
1. 進到 Download mode, 在關機狀態下按 音量小 + Power + Home
2. 開啟 Odin, 勾選 AP, 檔案選擇 cwm-root-note2.tar.md5, 按 Start 刷入舊版 CWM recovery + root
3. 關機狀態下按 音量大 + Power + Home, 進入 Recovery Menu
4. 選單 install zip from sdcard 選 Note2-CWM-6.0.4.3-GT-N7100.zip 刷入新版 CWM (必需要 6.0.4.3 才能刷 CM11)
5. 關機狀態下按 音量大 + Power + Home, 再次進入 Recovery Menu
6. 選單 wipe data/factory reset (選單用音量大小移動, Power 鍵或 Home 鍵確認)
7. 選單 wipe cache partition
8. 選單 advanced, wipe dalvik cache
9. 選單 install zip from sdcard 選 CM ROM ZIP
10. 選單 install zip from sdcard 選 Google Apps ZIP
11. 選單 reboot system now

註: 因為試了一些方法, 都沒辦法直接刷入 CWM 6.0.4.3 (沒反應, 仍是預設的 Android system recovery <3e>), 所以才要刷兩次 CWM

To sleep 1 second,
ping -n 2 127.0.0.1 >NUL

To sleep 5 seconds,
ping -n 6 127.0.0.1 >NUL

Install CyanogenMod on Galaxy Nexus

user-pic
Vote 0 Votes

Galaxy Nexus (maguro) 刷 CM 11

檔案準備
需先裝 Android SDK, 要用到裡面的 fastboot.exe (in android-sdk\platform-tools)
CWM 下載 recovery-clockwork-touch-6.0.4.7-maguro.img, 改名為 recovery.img
CM 官網下載 ROM, ZIP 格式, 不需解開, 放到手機內根目錄
CM Google Apps 下載 CM 11 package, ZIP 格式, 不需解開, 放到手機內根目錄


刷 CyanogenMod ROM
1. 進到 bootloader , 方法有二, 開啟 USB debug, 接上 USB cable 到 PC, 下指令 adb reboot bootloader 或
在關機狀態下按音量大+音量小+Power
2. 下指令 fastboot flash recovery recovery.img 刷入 CWM
3. 關機再重開, 進到 bootloader, 用音量大小選到 recovery, Power 鍵進入
4. 選單 wipe data/factory reset (選單用音量大小移動, Power 鍵確認)
5. 選單 wipe cache partition
6. 選單 advanced, wipe dalvik cache
7. 選單 install zip from sdcard 選 CM ROM ZIP
8. 選單 install zip from sdcard 選 Google Apps ZIP
9. 選單 reboot system now

另一個方法是用 Nexus Tool Kit
Launch Advanced Utilities
Flash Zip > OK > Choose Zip in downloads folder (CM11)
Wipe Data, Cache, Dalvik Cache
ref. Install Android 4.4 on Galaxy Nexus maguro (CM11)

Samsung Galaxy S4 刷 CM 11 (本篇適用國際版 I9500 non-LTE)

檔案準備
需先裝 Android SDK, 要用到裡面的 adb.exe (in android-sdk\platform-tools)
Odin 刷機工具
CWM recovery (Odin Flashable tar.md5 file) GT-I9500-CWM-6.0.4.7.rar 解開成 GT-I9500-CWM-6.0.4.7.tar.md5
CM 官網下載 ROM, ZIP 格式, 不需解開, 放到手機的 SD 卡
CM Google Apps 下載 CM 11 package, ZIP 格式,不需解開, 放到手機的 SD 卡

刷 CyanogenMod ROM
1. 進到 Download mode, 方法有二, 開啟 USB debug, 接上 USB cable 到 PC, 下指令 adb reboot download 或
在關機狀態下按音量小+Power+Home
2. 開啟 Odin, 勾選 AP, 檔案選擇 GT-I9500-CWM-6.0.4.7.tar.md5, 按 Start 刷入 CWM recovery
3. 關機狀態下按 音量大 + Power + Home, 進入 Recovery Menu
4. 選單 wipe data/factory reset (選單用音量大小移動, Power 鍵或 Home 鍵確認)
5. 選單 wipe cache partition
6. 選單 advanced, wipe dalvik cache
7. 選單 install zip from sdcard 選 CM ROM ZIP
8. 選單 install zip from sdcard 選 Google Apps ZIP
9. 選單 reboot system now

Sony Xperia Arc S 刷 CM 11

檔案準備
需先裝 Android SDK, 要用到裡面的 fastbook.exe (in android-sdk\platform-tools)
Lagacy Xperia 下載 CM11 ROM (CM 官網只有到 CM10), 放到手機的 SD 卡, ZIP 格式, 不需解開, 放到手機的 SD 卡
CM Google Apps 下載 CM 11 "small" (一定要 small 的版本, 否則 Google Play 出不來), ZIP 格式, 不需解開, 放到手機的 SD 卡

Unlock Bootloader
1. 設定/關於手機/狀態 取得 IMEI
2. 讓手機開到 fastboot mode: 先關機, 按住 Menu 鍵, 再把 USB cable 接到 PC, LED 呈現藍燈即表示在 fastboot mode
3. 下指令 fastboot getvar version, 若有回應, 表示正常, 若出現 waiting for device, 先解決 Driver 的問題, usb_driver 在 SDK 目錄下面
4. 到 Unlock your boot loader 網站, 輸入 IMEI 取得 unlock code
5. 下指令 fastboot oem unlock 0xKEY (KEY 請代換成 unlock code)

刷 CyanogenMod ROM
1. 將 CM11 ROM ZIP 檔裡面的 boot.img 取出
2. 下指令 fastboot flash boot boot.img
3. 下指令 fastboot reboot
4. 重開看到 Logo 後, 按住音量小 進入 Recovery Menu
5. 選單 wipe data/factory reset (選單用音量大小移動, Power 鍵或 Home 鍵確認)
6. 選單 wipe cache partition
7. 選單 advanced, wipe dalvik cache
8. 選單 install zip from sdcard 選 CM ROM ZIP
9. 選單 install zip from sdcard 選 Google Apps ZIP
10. 選單 reboot system now

ref. How to Install CyanogenMod on the Sony Ericsson Xperia Arc ("anzu")

VMware virtual disk 有三種模式:

Thick Provision Lazy Zeroed (預先配置空間, 磁區不清空)
Thick Provision Eager Zeroed (預先配置空間, 磁區清空填 0x00)
Thin Provision (用多少配多少, 省空間)

官方有一篇 Performance Study of VMware vStorage Thin Provisioning
結論是 Thick or Thin Provision 效能並沒有太大差異.
(We determined that a workload run on a thin-provisioned disk performs very closely to that of a thick-provisioned disk,
in both the zeroing and post-zeroing phases of disk growth.)
所以選省空間的 Thin Provision 就好了.

About this Archive

This page is an archive of entries from September 2014 listed from newest to oldest.

August 2014 is the previous archive.

October 2014 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives