zoukankan      html  css  js  c++  java
  • (OK)(OK) seem-tools_4_vbox-init-android-x86_64-6.0-rc1-0.sh

    #!/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 -
    

  • 相关阅读:
    Nginx+tomcat负载均衡配置
    详解HttpURLConnection
    tomcat配置文件之Server.xml
    Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
    Tomcat多站点部署方式
    跨域、跨服务器调用时候session丢失的问题
    Linux系统的命令别名功能
    CentOS 升级GCC G++
    npm 安装碰到SSL问题
    centos图形界面的开启和关闭
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646180.html
Copyright © 2011-2022 走看看