Develop Android fifth, G1 install Linux Debian system
To install the Linux Debian System (Debian Armel) on G1, the following conditions are required:
(a) preferably t-mobile g1-cyanogenmod
Reference http://bbs.weiphone.com/read-htm-tid-538606.html
(b) preferably using 8GB MicroSD Class 6 card to optimize partition EXT3/EXT4
Reference http://bbs.weiphone.com/read-htm-tid-467309.html
(c) Turn on WiFi to install packages
Installation method
(1) SDcard content will be deleted after repartitioning, use ADB to prepare if necessary sdcard
Go directly to step (4) If you do not need to repartition
Copy Code
- ADB Pull/system/sd/app App
- ADB pull/system/sd/app-private app-private
- ADB Pull/system/sd/dalvik-cache Dalvik-cache
- ADB Pull/sdcard SDcard
|
(2) SDcard partition (G1 to enter Recovery mode first)
Reference http://bbs.weiphone.com/read-htm-tid-467309.html
It is best to reserve 1000MB to 1500MB for EXT3/EXT4 partitions, the following example is with 1500MB
MKPARTFS Primary FAT32 0 6437
Mkpartfs Primary ext2 6437 7937
Mkpartfs Primary Linux-swap 7937 7969
1.5G ext2 Partition
(3) Reply sdcard with ADB (G1 to exit Recovery mode and restart)
Copy Code
- ADB push App/system/sd/app
- ADB push App-private/system/sd/app-private
- ADB push Dalvik-cache/system/sd/dalvik-cache
- ADB push Sdcard/sdcard
|
(4) Wefiler download debian.tar.gz
http://www.wefiler.com/downfile.php?id=1063992
Do not unzip, direct the debian.tar.gz
Incoming G1 to/sdcard/
(5) Entering the shell with ADB
(6) Play
Copy Code
- cd/system/sd/; BusyBox tar-xzvf/sdcard/debian.tar.gz
|
(7) After completion, restart G1
(8) G1 turn on WiFi
(9) Enter the shell with ADB and hit
Copy Code
- Chroot/system/sd/bin/bash
|
Then you can go to Debian system and exit Debian.
(10) Change root password
(11) Update package
Copy Code
- Apt-get Update
- Apt-get Upgrade
|
(12) Installing the package SSH server
Copy Code
- Apt-get Install Openssh-server openssh-client
|
After G1 reboot, turn on wifi and use putty or SSH to enter G1
(14) What are the useful software packages?
GCC compilers
Copy Code
- Apt-get Install Build-essential
|
Python
Copy Code
- Apt-get Install Python
|
Web server lighttpd and PHP5
Copy Code
- Apt-get Install lighttpd php5 php5-cgi
|
LIGHTTPD + php5
Vncserver
Copy Code
- Apt-get Install Tightvncserver
|
(a) How does Debian remove packages?
Copy Code
- Apt-get Remove XXXX
|
Or
Reinstall package
Copy Code
- Apt-get--reinstall Install XXXX
|
Clear the downloaded file
View Installed Packages
Copy Code
- Dpkg--get-selections
|
Or
(+) How does Debian search for packages?
Copy Code
- Apt-cache Search XXXX
|
http://packages.debian.org/lenny/
(G1) How do I stop the automatic opening of SSH server?
Modify/system/sd/userinit.sh
.
G1 Installing the Linux Debian system