Sunday, April 24, 2011

Install Chinese Support in Debain Squeeze

Install Unicode Fonts

su
apt-get install xfonts-intl-chinese xfonts-base unifont
apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp
apt-get install ttf-arphic-gbsn00lp ttf-arphic-gkai00mp


Reconfigure locales
Install dpkg configure
Method 1

su
apt-get install gkdebconf

Applications -> System Tools -> GKDebConf
select locales in packages


Method 2

su
/usr/sbin/dpkg-reconfigure locales


Add the followings in the locale generation

* zh_TW BIG5 - 繁體中文(台灣),使用 Big5 碼。
* zh_TW.UTF-8 UTF-8 - 繁體中文(台灣),使用 UTF-8 碼。
* zh_HK.UTF-8 UTF-8 - 繁體中文(香港),使用 UTF-8 碼。
* zh_CN GB2312 - 簡體中文,使用 GB2312-80
* zh_CN.GBK GBK - 簡體中文,使用 GBK
* zh_CN.UTF-8 UTF-8 - 簡體中文,使用 GB18030

Then choose your default locale

Done
.
.
.

Monday, March 28, 2011

Flash Player plugin old versions

I got problems for the new flash player plugin for Mac mini upgrade to 10.6.6 or 10.6.7 and here is the old version that you can get.

I have to install Flash Player 9.0.289.0

http://kb2.adobe.com/cps/142/tn_14266.html

Monday, February 7, 2011

iPhone Utilities for Mac

iPhone Explorer
http://www.macroplant.com/iphoneexplorer/

Backup Extractor
http://supercrazyawesome.com/

SQLite Database Browser
http://sourceforge.net/projects/sqlitebrowser/



Rescue Data after Recovery for Jailbreak

usbmuxd - iPhone SSH via USB
http://marcansoft.com/uploads/usbmuxd/usbmuxd-1.0.6.tar.bz2

cd usbmuxd-1.0.6/python-client
python tcprelay.py -t 22:2222 &


ssh command to recover user data partition using usbmuxd: (wait for about an hour and requires 29G for 32G iPhone)

ssh -p 2222 root@localhost dd if=/dev/rdisk0s2s1 bs=1M | dd of=iphone-user.img


ssh command to recover the system partition using usbmuxd:

ssh -p 2222 root@localhost dd if=/dev/rdisk0s1 bs=1M | dd of=iphone-root.img




To convert the raw disk image to HFS/+ dmg format (mountable by Mac), change the byte HX to H+ as below




scanning with scalpel 1.60
http://www.digitalforensicssolutions.com/Scalpel/

tar -zxvf scalpel-1.60.tar.gz
cd scalpel-1.60
make bsd
sudo mkdir -p /usr/local/bin /usr/local/etc
sudo cp -p scalpel /usr/local/bin
sudo cp -p scalpel.conf /usr/local/etc
scalpel -c scalpel.conf iphone-root.img

.
.
.

Monday, January 10, 2011

iOS 4.2 beta 3

https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__ipad__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__iphone_4__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__iphone_3gs__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__iphone_3g__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__ipod_touch_4th_generation__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__ipod_touch_3rd_generation__8c5115c.dmg
https://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/ios_4.2_beta_3__ipod_touch_2nd_generation__8c5115c.dmg

Monday, December 6, 2010

How to install Whatsapp on iPad



The developer has stopped the support for iPad
But if you have jailbreak your iPad

You can first install 2.5.3 version in iPad, register it
and then upgrade to the latest version 2.5.11 or 2.5.12

Sunday, December 5, 2010

mytv.tvb.com live on Samsung Galaxy Tab

How to install debian on Samsung Galaxy Tab

Assume you have rooted the Samsung Galaxy Tab and want to install debian

The instruction of setting up debian in G1 is in saurik's site here http://www.saurik.com/id/10
But some of the information are outdated, as the rooting is very simple now and the busybox comes with one click z4root

z4root is here http://www.multiupload.com/EPKDWWLWD9

I like this method as the Debian system is installed in a standalone img file which can be copied to other Android phones.

(1) Download the Debain G1 image here
http://rapidshare.com/files/161776007/debian-armel-750.img.bz2

or here
http://www.multiupload.com/VUKS8LQ7EP

There is a ubuntu.img out there and is 2G in size (but trust me, running a graphical desktop via vnc is overkilling on mobile device). If you want shell access only, this debian.img is better.

(2) copy it to sdcard.
adb push debian-armel-750.img.bz2 /sdcard/

(3) su shell access to Tab

adb shell
su


(4) unzip the file in Tab. The image after unzip is 750M in size, so make sure you have enough space in sdcard.

cd /sdcard
busybox bunzip2 debian-armel-750.img.bz2
mv debian-armel-750.img debian.img


(5) setup mount and chroot

create and run this script in

cd /data/local
busybox vi startdeb.sh



startdeb.sh Select all
export kit=/sdcard
export mnt=/data/local/mnt
export TERM=linux
export HOME=/root
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

busybox clear

busybox mkdir -p $mnt

busybox mount -o loop,noatime $kit/debian.img $mnt

busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys

busybox mkdir -p $mnt/mnt
busybox mkdir -p $mnt/mnt/sdcard $mnt/mnt/system
busybox mkdir -p $mnt/mnt/data $mnt/mnt/dev

busybox mount -o bind /sdcard $mnt/mnt/sdcard
busybox mount -o bind /system $mnt/mnt/system
busybox mount -o bind /data $mnt/mnt/data
busybox mount -o bind /dev $mnt/mnt/dev
busybox mount -t tmpfs tmpfs $mnt/tmp -o noatime,mode=1777

busybox chroot $mnt /bin/bash

#After exit command is executed clear it all up
echo " "

echo "Shutting down Debian........"

umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt/mnt/sdcard
umount $mnt/mnt/system
umount $mnt/mnt/data
umount $mnt/mnt/dev
umount $mnt/tmp
umount $mnt



run the startdeb.sh script

sh startdeb.sh



# now Tab should be in Debian System

(6) do some fixing and change root password and install OpenSSH and start it

rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
passwd root
apt-get update
apt-get install debian-keyring debian-archive-keyring
apt-get update
apt-get upgrade
apt-get install openssh-server openssh-client
/etc/init.d/ssh start


(7) If the default package source does not work, you can change this file /etc/apt/sources.list to

deb http://ftp.us.debian.org/debian lenny main


(8) Then you can ssh to your Tab by using ssh root@xxx.xxx.xxx.xxx after enable wifi in Tab, where xxx.xxx.xxx.xxx is the IP address of Tab.

(9) If you want to change the DNS server say to Google Public DNS

echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf