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






Saturday, November 27, 2010

Windows Phone 7 Developer Unlock

Source http://www.chevronwp7.com/

Instruction

(1) Install this certificate in your Windows Phone 7 via IE : http://www.chevronwp7.com/cert

(2) Download and install this registration key in your Windows 7 OS http://walshie.me/PhoneRegAdd.reg

(3) Download and run this program http://walshie.me/ChevronWP7.exe in Windows 7 OS


Other Hacks
copy files to WP7 device in Windows Explorer
http://downloadsquad.switched.com/2010/11/20/copy-files-to-a-windows-phone-7-device-in-windows-explorer?icid=sphere_blogsmith_inpage_engadget

USB Tethering
http://www.engadget.com/2010/11/11/windows-phone-7-usb-tethering-uncovered-on-samsung-phones/

Thursday, November 25, 2010

Windows Phone 7 Developer Registration Step 2 Error

see here
http://forums.create.msdn.com/forums/t/66601.aspx

Error in Step 2 while registering
We are currently tracking an issue developers may experience while registering for App Hub where they receive an error including the following text:


We have detected an error while processing the page you were looking for.

· If you reside in Hong Kong, we are aware of this issue but do not have any workarounds available. We are investigating this and will update this announcement as we find more information.

Saturday, November 20, 2010

香港天氣及日曆 gadgets (windows 7)



http://www.multiupload.com/XH0PUOTGMT

Stock 3 gadget is here
http://gallery.live.com/liveitemdetail.aspx?bt=1&li=61b9dca8-214c-41bf-b972-b2050aeaab9c

Sunday, November 14, 2010

How to replace gnutar and gsed for Mac OS X

Install MacPorts

http://www.macports.org/

Install gnutar

sudo port install gnutar


Install gsed

sudo port install gsed


Replace tar and sed in Mac OS X


sudo mv /usr/bin/tar /usr/bin/darwintar
sudo ln -s /opt/local/bin/gnutar /usr/bin/tar

sudo mv /usr/bin/sed /usr/bin/darwinsed
sudo ln -s /opt/local/bin/gsed /usr/bin/sed


or you can build from source
http://prep.ai.mit.edu/pub/gnu/tar/tar-latest.tar.gz
http://prep.ai.mit.edu/pub/gnu/sed/sed-4.2.tar.gz
.
.
.

Sunday, November 7, 2010

iPA God

The so called iPA God is just using the developer's certificate to re-codesign the cracked app and install on non-jailbreaked iPhone.

Staring from iOS 4.0, provisioning profile and app can be distributed and installed via WebServer

You can simply add this in the WebServer and install the app via http


<a href="http://192.168.0.10/My_iPhone_Development_2010.mobileprovision">Install Provisioning Profile</a><br/>
<a href="itms-services://?action=download-manifest&url=http://192.168.0.10/MyApp.plist">Install MyApp</a>


The content of MYApp.plist is

MyApp.plist Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://192.168.0.10/MyApp.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.yourcompany.YouApp</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>MyAppName</string>
</dict>
</dict>
</array>
</dict>
</plist>

.
.