It is not just a Download and Play, I faced many errors during the installation process. I found some useful information on the developer Meefik's blog(English Translation).
Install Applications on Android phone:
- Get 'root' permission of Android phone.
- Install Linux Deploy on Android Play market.
- Install brand new busybox on phone
- [optional] Install 'remote keyboard' for use PC's keyboard as Android's keyboard
- [optional] Install 'Hacker's keyboard' to use all normal PC's key.
- [optional] Install 'ConnectBot' for ssh connect into the linux box.
Setup 'Linux Deploy':
- Three Bar Menu (on left upper corner)->settings
- Lock Wi-Fi: on
- Language -> English
- Scroll size: 1000
- Terminal command: change 'telnet 127.0.0.1 5023' to 'ssh localhost'
- PATH variable : /system/xbin
- Update Env
- [optional] Debug mode: on
- [optional] Trace mode: on
- Logging: on (./data/data/ru.meefik.linuxdeploy/env/output.log)
- Properties(on right lower corner Down Arrow icon):
- Distribution: Arch Linux
- Source path: http://au.mirror.archlinuxarm.org/
- User password
- Localization: POSIX ( optional: zh_TW.UTF-8)
- INIT enabled: on
- SSH: enable
- GUI: enable
- Install
- [optional]Three Dot Menu (on right upper corner)-> clear
- [optional] press STOP icon(on middle bottom) for unmount already mounted file
- Three Dot Menu (on right upper corner)-> install
- Play with ConnectBot
- login as 'android@127.0.0.1'
Android root tips:
- My HTC m7 using AICP 12.1 rom, it use 'magisk manager' instead of famous 'supersu'
- Enable Busybox
- Superuser Access: Apps and ADB
Hacker's Keyboard tips:
- Fn->settings->Switch to other input methods.(eg. Chinese input methods or remote keyboard)
Remote Keyboard tips:
- telnet 192.168.x.x 2323 to connect your Android phone
- Switch to other input method by the input method swicht icon on the upper-left corner of Android phone.
Trace Linux Deploy:
- /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy # main script
- /data/data/ru.meefik.linuxdeploy/env/cli.sh
- manual install
cd /data/data/ru.meefik.linuxdeploy
bin/linuxdeploy -d -t -p linux deploy
Questions during the installation:
- Q: wget: bad address 'mirror.archlinuxarm.org'
A: try to use 'adb shell' and type the same command, we should use workable Stericson's busybox wget and change the source path to au.mirror...:
cd /mnt/sdcard ; mkdir tmp ; cd tmp
wget http://au.mirror.archlinuxarm.org/armv7h/core/
沒有留言:
張貼留言