chroot,会玩儿
androidx86吧
全部回复
仅看楼主
level 8
x86:/ $ su
x86:/ # busybox mount /storage/A4AE40E7AE40B398/ADM/zesty-desktop-i386.iso /data/1
x86:/ # busybox mount /data/1/casper/filesystem.squashfs /data/2
x86:/ # cd /data/2
x86:/data/2 # busybox mount /sys sys
x86:/data/2 # busybox mount /proc proc
x86:/data/2 # chroot /data/2
# ls -al
/bin/sh: 1: ls: not found
# $PATH
/bin/sh: 4: /su/bin:/vendor/bin:/system/bin:/su/xbin:/system/xbin: not found
这是安卓的环境变量,导入Ubuntu环境变量
# export PATH=/bin:/sbin:/
输入bash
# bash
root@localhost:/#
root@localhost:/# ls
bin boot dev etc home initrd.img lib media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuz
root@localhost:/# apt
Command 'apt' is available in '/usr/bin/apt'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
apt: command not found
继续导入环境变量
root@localhost:/# export PATH=/bin:/sbin:/usr/bin:/
root@localhost:/# apt
apt 1.4~beta2 (i386)
Usage: apt [options] command
apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.
Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
remove - remove packages
autoremove - Remove automatically all unused packages
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.
root@localhost:/# sudo
sudo: unable to resolve host localhost: Connection refused
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ...
root@localhost:/#
root@localhost:/# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.1-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 6.2.1 20161215 (Ubuntu 6.2.1-7ubuntu1)
root@localhost:/#
2016年12月19日 17点12分 1
level 8
直接在安卓终端内编译内核
2016年12月20日 00点12分 3
level 8
7.1,黑域补丁,直接安卓终端生成补丁
2016年12月20日 01点12分 5
level 8
早在2012年就有在nexus 7上完整安装Linux的
2016年12月20日 12点12分 8
http://androlinux.com ,这更早
2016年12月20日 12点12分
level 8
2016年12月20日 12点12分 9
level 13
https://plasma-mobile.org/what-is/ 这个也牛
pulseaudio
这个都搬过来了
2016年12月22日 08点12分 10
level 7
求chroot详细教程
2017年02月05日 06点02分 11
level 13
怎么在remix里chroot到ubuntu分区后运行as,gparted等图形化程序?我只能运行非图形化应用
2017年03月20日 14点03分 12
2017年03月20日 14点03分
[url]http://imgur.com/a/DWlty http://imgur.com/a/jovMS[/url]
2017年03月20日 14点03分
@13042819930520 哥,这个是全新安装的啊,有没有直接在已安装包Ubuntu的基础上用?把你图里的安装路径看成了源路径,还把我Ubuntu的用户搞没了。。。[汗]
2017年03月20日 15点03分
@离立tw 本来就不用全新安装,我那图是给老外看的,直接挂载本地硬盘上的分区到/data/local/mnt,安装路径填/dev/block/xxxx ;首先得重启到ubuntu安装openssh
2017年03月20日 15点03分
level 8
安卓是/dev/block,Ubuntu是/dev,就这样了
2017年03月20日 15点03分 13
level 8
安卓环境内,挂载/dev/到/data/local/mnt/dev
alt+f2切到安卓环境外,umount -l /android/data/local/mnt/dev,mount -o bind /dev /android/data/local/mnt/dev
根目录/,安卓环境目录/android,chroot Ubuntu环境目录/android/data/local/mnt
2017年03月20日 15点03分 14
level 13
[16:41:51] >>> start
[16:41:51] Mounting partitions:
[16:41:51] / ... done
[16:41:51] /proc ... done
[16:41:51] /sys ... done
[16:41:51] /dev ... done
[16:41:51] /dev/pts ... done
[16:41:51] /dev/shm ... done
[16:41:51] /dev/net/tun ... done
[16:41:51] /proc/sys/fs/binfmt_misc ... skip
[16:41:51] :: Configuring core/mnt ...
[16:41:51] :: Configuring core/net ...
[16:41:53] :: Starting extra/ssh ... done
[16:41:53] :: Starting graphics/vnc ... done
[16:41:53] <<< start
2017年03月21日 08点03分 17
直接进VNC viewer,设置127.0.0.1:5900和密码
2017年03月21日 08点03分
回复 13042819930520 :直接连,连不上
2017年03月21日 08点03分
@离立tw 你Ubuntu里面用没有host,设没设系统全局代理?
2017年03月21日 09点03分
回复 13042819930520 :用了翻墙host,没有代理
2017年03月21日 09点03分
level 13
2017年03月21日 08点03分 18
是不是技徳阉割了啥?
2017年03月21日 08点03分
回复 13042819930520 :不知道,要不我用lineage试试
2017年03月21日 08点03分
回复 13042819930520 :用了lineage,一样的结果
2017年03月21日 09点03分
level 8
你那个是这样吗
2017年03月21日 09点03分 19
level 13
2017年03月21日 09点03分 20
1 2 尾页