#!/bin/sh
#------------------------------------------------------------------------------------------
# This init script (seem-tools-auto_create_vm_android.sh) is released under GNU GPL v2,v3
# Author: Tongguang Zhang
# Date: 2016-06-30
#
# copy quagga to /system/xbin/quagga, refer to http://blog.csdn.net/ztguang/article/details/51768680
# that is: install_quagga-0.99.21mr2.2_on_android-x86_64_in_Fedora23.txt
#
# adb -s ${eth0_vn_ip}:5555 shell sed -i '459a \ init_in_android-x86_64.sh' /system/etc/init.sh; \
# NOTE: in android-x86_64-6.0-rc1-0.vdi,
# execute "sed -i '459a init_in_android-x86_64.sh' /system/etc/init.sh"
#
# sed -i '459a /system/xbin/quagga/sbin/init_in_android-x86_64.sh' /system/etc/init.sh
#------------------------------------------------------------------------------------------
adb connect 192.168.56.3 && adb -s 192.168.56.3 root
sleep 1
adb connect 192.168.56.3 && adb -s 192.168.56.3 root
adb connect 192.168.56.3
adb shell mount -o remount,rw /system
adb shell mount -o remount,rw /
adb shell mkdir -p /system/xbin/quagga/etc
cd /opt/android-on-linux/quagga
adb push out/etc/zebra.conf /system/xbin/quagga/etc/
adb push out/etc/ospf6d.conf /system/xbin/quagga/etc/
adb push out/sbin/ /system/xbin/quagga/
adb push out/lib/libzebra.so /lib64/
adb push out/lib/libospf.so /lib64/
adb push out/lib/libospfapiclient.so /lib64/
adb push /opt/android-on-linux/android-ndk-r12/sources/cxx-stl/stlport/libs/x86_64/libstlport_shared.so /lib64/
adb push /opt/android-on-linux/android-ndk-r12/sources/cxx-stl/llvm-libc++/libs/x86_64/libc++_shared.so /lib64/
adb push /opt/android-on-linux/apk/chrome_51.0.2704.81.apk /sdcard/Download/
# to press button [ACCEPT] in ANDROID GUI
adb shell pm install /sdcard/Download/chrome_51.0.2704.81.apk
# execute "sed -i '459a init_in_android-x86_64.sh' /system/etc/init.sh" in android-x86_64-6.0-rc1-0.vdi
cd -
(OK)(OK) seem-tools_4_vbox-init-android-x86_64-6.0-rc1-0.sh
原创
©著作权归作者所有:来自51CTO博客作者ztguang_张同光的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux平台x86_64|aarch64架构如何实现轻量级RTSP服务
技术背景我们在做Linux平台x86_64架构或aarch64架构的推送模块的时候,有公司提出这样的技术需求,希望在Linux平台,实现轻量级RTSP服务,实现对摄像头或屏幕对外RTSP拉流,同步到大屏上去。技术实现废话不多说,直接上代码,先调用start_rtsp_server()指定端口号,启动RTSP服务。LogInit(); NT_SmartPublisherSDKAPI push_a
linux x86 rtsp linux arm64 rtsp linux arm64 rtsp服务器 linux arm64 rtsp 大牛直播SDK