forked from ppareit/DebianInstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
98 lines (70 loc) · 2.42 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
DESCRIPTION
===========
These set of scripts can be used to install debian on android.
DEPENDENSIES
============
On host machine:
* debootstrap (install for instance with apt-get install debootstrap)
* adb must be installed and working
On android device:
* Must be rooted
* Busybox must be installed
INSTALLATION
============
First clone this repository to your host machine:
$ git clone [email protected]:ppareit/DebianInstaller.git
Now enter the scripts directory:
$ cd DebianInstaller/scripts
First create an image on the host machine:
$ sudo ./createimage.sh
Now push the image to the android device (make sure adb is connected):
$ ./pushimage.sh
Everything is now installed.
# TODO: the next part could be automated with a script
You can proceed on the android device by starting up
a terminal emulator or by logging in to the shell from adb:
$ adb shell
Now will we login for the first time. Do the following:
$ su -
# ch2debian
# debootstrap/debootstrap --second-stage # TODO: check, not sure if this was the command used
# exit
# ch2debian
# adduser username
# addgroup --gid 3003 inet
# usermod -G inet -a username
# echo 'deb http://ftp.COUNTRY.debian.org/debian/ squeeze main contrib non-free' >> /etc/apt/sources.list
# apt-get update && apt-get upgrade
# su - username
$
Now everytime you want to chroot to your debian, start a terminal and run
$ ch2debian # TODO: check, can this be made to start as user (SUID?)
DEVICE SPECIFIC
===============
For the transformer there is a script './pushkeylayout.sh' that can be used to correct
the keylayout of the dock when the dock is not US. It will also set the BACK key to ESC.
Usage:
$ cd scripts
$ ./pushkeylayout.sh TF101 BE
HACKING
=======
These set of scripts work for me, but they might need some more work.
Make your modifications and run
$ git diff
to send me a patch. Even beter, fork this project on github and send
me a pull request!
TODO
====
* post installation script (second stage of bootstrap and add user)
* make one controlling script
* make scripts take options
* put this all in an installable .apk package
REFERENCE
=========
These set of scripts are based on the following articles:
http://www.saurik.com/id/10
http://www.offensivethinking.org/thoughts/2011/07/14/debian-chroot-eee-pad-transformer/
LICENSE
=======
GNU GENERAL PUBLIC LICENSE Version 3
http://www.gnu.org/copyleft/gpl.html