页面“Unlock Bootloader, Install LineageOS ,TWRP and Root Essential PH-1”与“Docker mongo”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
=站内资源=
 
[[Android刷机Nexus5刷机]]
 
  
=Fastboot mode=
 
Put your Essential Phone into fastboot mode by doing either of the following:
 
 
• Use the ADB tool packaged above to run the command:
 
  adb reboot bootloader
 
Reboot your phone while holding the Volume-down button
 
 
=Enable unlocking and Unlock your bootloader =
 
==Enable unlocking ==
 
Find the option: OEM Unlocking and turn it on
 
 
 
== Unlock your bootloader ==
 
Run the command:
 
adb reboot bootloader
 
fastboot flashing unlock
 
• Press the Volume-down button to navigate to the YES option, then press the Power button to confirm
 
 
 
=Flash the TWRP into  essential =
 
 
[https://doc-00-9s-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/ctk8lmbjhebr5f987q4us4gv5m56i9lf/1517472000000/14260627717518624942/*/1BU5splgIxsqYtki4t3zG297ZGxZDizsS?e=download  NMI81C-TWRP.img下载]
 
 
[https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 magisk下载]
 
 
<pre>
 
adb reboot bootloader
 
或者手工进入
 
 
输入以下指令
 
fastboot devices -l
 
若出来一串序列号,说明安卓设备已连接
 
 
刷入TWRP
 
 
成功
 
fastboot flash boot  NMI81C-TWRP.img
 
 
失败 老的用法
 
fastboot flash recovery twrp-mata_2.im
 
 
Installing  Magisk from recovery
 
Wipe the device
 
In the TWRP Home menu, select Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, and Cache. Do not select the Internal Storage otherwise you will lose the data. Then Swipe to Wipe.
 
有一次wifi打不开居然是这个原因
 
 
 
可能要用的命令
 
adb shell twrp sideload
 
adb sideload Magisk-v15.3.zip
 
 
</pre>
 
 
=essential Install LineageOS =
 
最好是卡刷 在第一次之后不用电脑了 不过用官方的 recovery 就行了  fastboot 没成功呢
 
 
==download package==
 
=== LineageOS installation package  ===
 
https://download.lineageos.org/mata
 
选择 Recovery image lineage-17.1-20201116-recovery-mata.img
 
 
=== Google Apps (use the arm64 architecture)===
 
https://wiki.lineageos.org/gapps.html  -->https://wiki.lineageos.org/gapps.html  -->platform: ARM64  android:10  Variant:stock
 
 
 
 
 
 
 
==操作 ==
 
===Basic requirements===
 
has adb and fastboot ;Enable USB debugging
 
 
===Unlocking the bootloader===
 
 
===Installing LineageOS from recovery===
 
====If you are not in recovery, reboot into recovery:====
 
    With the device powered off, hold Volume Up + Power.
 
====Factory Reset ====
 
Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
 
Return to the main menu.
 
中文意思就是选择 Factory Reset 再选择 Format data 下的 factory 出产重置  ,最后再返回主菜单
 
====Sideload the LineageOS .zip package:====
 
<pre>
 
    On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
 
    On the host machine, sideload the package using: adb sideload filename.zip
 
 
我在power shell执行的如下 时间 09:53- 09:55  47%  有No error
 
PS G:\>  adb sideload  .\open_gapps-arm64-10.0-stock-20201118.zip
 
opening '.\open_gapps-arm64-10.0-stock-20201118.zip'...
 
connecting...
 
</pre>
 
==== g ====
 
<pre>
 
(Optionally): If you want to install any additional add-ons, click Advanced, then Reboot to Recovery, then when your device reboots, click Apply Update, then Apply from ADB, then adb sideload filename.zip those packages in sequence.
 
info_outline
 
Note: Additional add-ons aren’t signed with LineageOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that says Signature verification failed, this is expected, please click Continue.
 
info_outline
 
Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!
 
 
我的命令  注意 中间可能提示有错什么的 按yes    时间 09:56-10:04
 
PS G:\>  adb sideload  .\open_gapps-arm64-10.0-stock-20201118.zip
 
opening '.\open_gapps-arm64-10.0-stock-20201118.zip'...
 
connecting...
 
serving: '.\open_gapps-arm64-10.0-stock-20201118.zip'  (~47%)    * failed to read command: No error
 
PS G:\>
 
 
 
#注意  这里有时可能要 Factory Reset一下才能进入系统
 
Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
 
</pre>
 
 
==lineageos see also==
 
 
这个是官方文档了 看它就对了
 
https://wiki.lineageos.org/devices/mata/install
 
 
https://lineageosroms.com/ph-1-mata/
 
 
https://wiki.lineageos.org/devices/#essential
 
 
https://download.lineageos.org/mata
 
 
http://debian.ustc.edu.cn/lineageos/full/mata/20201026/
 
 
 
<pre>
 
 
 
屏没反应 刷新没成功 线刷
 
 
fastboot flash boot <recovery_filename>.img
 
win下报错 
 
sending 'boot' (25737 KB)...
 
FAILED (remote: Requested download size is more than max allowed
 
 
 
重启 adb reboot (-n)
 
 
关机 adb shell reboot -p
 
</pre>
 
https://wiki.lineageos.org/devices/mata/install
 
 
==gapps==
 
stock 好用啦对我来说
 
 
==android10 放弃 后面不更新了==
 
 
<pre>
 
<pre>
Pixel (128 GB, Quite Black)
 
$649.00
 
Qty: 1
 
Serial: 35268908313212
 
 
16 english
 
 
 
先 邻居借线吧 
 
 
然后先备份
 
 
February 2020 Security Update
 
[https://storage.googleapis.com/essential-static/PH1-OTA-QQ1A.200105.032.zip OTA Package: PH1-OTA-QQ1A.200105.032.zip]
 
[https://storage.googleapis.com/essential-static/PH1-Images-QQ1A.200105.032.zip Factory Image: PH1-Images-QQ1A.200105.032.zip]
 
 
Method 1: Sideload Android 10 OTA using Stock Recovery
 
 
 
 
Method 2: Flash Android 10 Factory Image using Fastboot
 
 
Important Note: This method will wipe all the data stored on your phone, including the internal storage. So, make sure that you take a full backup first!
 
 
 
首先 手机备份相关信息
 
 
 
解决安卓 linux adb 连接机器提示 no permissions 的问题
 
问题描述
 
 
adb devices
 
no permission (user xxx is not in the plugdev group); see [http://developer.android.com/tools/device.html]
 
复制代码
 
 
解决方案
 
 
    使用下列方式启动 adb
 
 
    adb kill-server #我用了这个就好了
 
    cd the-path-your-sdk-adb
 
    sudo ./adb kill-server
 
    sudo ./adb kill-server
 
 
 
adb进入recovery 以及fastboot模式
 
 
开机状态下:
 
 
adb reboot fastboot  命令进入fastboot模式
 
 
adb reboot recovery 命令行进recovery模式
 
 
power + 音量下 recovery 模式
 
 
 
关机状态下:
 
power + 音量下 recovery 模式
 
power + 音量上 fastboot 模式
 
recovery 模式下可以选择进入fastboot 模式
 
  
root@latop:~# adb reboot recovery
+
cat  docker-compose.yml
root@latop:~# adb devices
+
version: "3"
List of devices attached
+
services:
PM1LHMA792000781 recovery
+
  mongodb:
 +
    image: mongo:4.2
 +
    container_name: mongodb4.2
 +
    ports:
 +
      - "27017-27019:27017-27019"
 +
    volumes:
 +
    #  - /Users/Pie/docker-lnmp/conf/mongodb/:/etc/mongo/:rw
 +
      - /data/db_data/mongodb/:/data/db/:rw
 +
      - /data/log/mongodb/:/var/log/mongodb/:rw
 +
    environment:
 +
      #设置后台登录用户和密码,没设置默认为:guest/guest
 +
      MONGO_INITDB_ROOT_USERNAME: "root"
 +
      MONGO_INITDB_ROOT_PASSWORD: example36
 +
      TZ: "Asia/Shanghai"
 +
    restart: always
 +
    networks:
 +
      - default
  
root@latop:~# cd /home/evan/iso/
 
 
adb sideload  PH1-OTA-QQ1A.200105.032.zip
 
 
默认位置可能是/目录,我们需要找到内置存储/sdcard/的位置。
 
(UP A Level)为返回上级目录功能
 
  
 
</pre>
 
</pre>
  
  
https://www.thecustomdroid.com/download-install-essential-phone-android-10-q-update/
 
 
February 2020 Security Update
 
[https://storage.googleapis.com/essential-static/PH1-OTA-QQ1A.200105.032.zip OTA Package: PH1-OTA-QQ1A.200105.032.zip]
 
[https://storage.googleapis.com/essential-static/PH1-Images-QQ1A.200105.032.zip Factory Image: PH1-Images-QQ1A.200105.032.zip]
 
 
Method 1: Sideload Android 10 OTA using Stock Recovery
 
 
 
 
Method 2: Flash Android 10 Factory Image using Fastboot
 
  
Important Note: This method will wipe all the data stored on your phone, including the internal storage. So, make sure that you take a full backup first!
 
  
 +
[https://www.jianshu.com/p/2181b2e27021 Docker版MongoDB的安装]
  
首先 手机备份相关信息
+
[https://blog.igevin.info/posts/docker-mongo-auth/ 基于Docker的MongoDB实现授权访问]
  
=参考 =
+
[https://brickyang.github.io/2017/03/15/%E5%88%A9%E7%94%A8-Docker-%E8%BF%90%E8%A1%8C-MongoDB/ 利用 Docker 运行 MongoDB]
  
Recovery  TWRP 相关知识补充
+
[https://www.fanhaobai.com/2017/01/mongo-docker-install.html MongoDB在Docker中的部署]
  
[https://www.moonlol.com/twrp-recovery%E5%8D%A1%E5%88%B7rom-5967.html 手機或平板TWRP卡刷ROM教學 ]
+
[https://yeasy.gitbooks.io/docker_practice/appendix/repo/mongodb.html MongoDB]
  
[https://www.kocpc.com.tw/archives/233419 TWRP备份还原]
+
[https://www.jianshu.com/p/5e6030e73718 MongoDB基本使用]
  
[https://news.mydrivers.com/1/542/542943.htm 安卓Recovery你知多少?不懂别说是刷机高手]
+
[http://www.runoob.com/mongodb/mongodb-tutorial.html MongoDB 教程]
  
[https://www.cnblogs.com/godfeer/p/12029476.html  【TWRP】使用adb sideload线刷ROM的方法 ]
+
[https://www.w3cschool.cn/mongodb/ MongoDB教程]
  
 +
[https://segmentfault.com/a/1190000012088118#articleHeader16 安装和使用MongoDB]
  
[https://www.cnblogs.com/yanglang/p/10227069.html 使用电脑adb给Essential Phone刷机 —(官方篇)]
+
[https://juejin.im/post/5a6aa6a5f265da3e4b76fd65 手把手教你 MongoDB 的安装与详细使用]
  
[https://www.xda-developers.com/how-to-root-essential-phone-ph-1/ How to Root the Essential Phone (PH-1) using Magisk]
+
[http://www.runoob.com/docker/docker-install-mongodb.html Docker 安装 MongoDB]
  
https://www.essential.com/developer/current-builds
 
  
[http://wiki.linuxchina.net/index.php?title=Nexus5%E5%88%B7%E6%9C%BA Nexus5刷机]
+
=on pi3=
  
[http://www.droidviews.com/unlock-bootloader-install-twrp-root-essential-ph-1/ Unlock Bootloader, Install TWRP and Root Essential PH-1]
 
  
[https://zhuanlan.zhihu.com/p/55950119 关于Essential Phone 获取root]
+
https://github.com/matteoredaelli/docker-mongodb-rpi
  
[https://zhuanlan.zhihu.com/p/58507641 关于Essential Phone 获取Root权限及Magisk的安装教程(2019/6/14)]
+
[https://www.jianshu.com/p/a3de04b49ea4 树莓派3B 使用 Docker 安装 MongoDB]
  
[[category:Desktop]]
+
[http://sillycat.iteye.com/blog/2320436 MongoDB Docker and Raspberry Pi]

2021年4月25日 (日) 08:20的版本


cat  docker-compose.yml 
version: "3"
services:
  mongodb:
    image: mongo:4.2
    container_name: mongodb4.2
    ports:
      - "27017-27019:27017-27019"
    volumes:
    #  - /Users/Pie/docker-lnmp/conf/mongodb/:/etc/mongo/:rw
      - /data/db_data/mongodb/:/data/db/:rw
      - /data/log/mongodb/:/var/log/mongodb/:rw
    environment:
      #设置后台登录用户和密码,没设置默认为:guest/guest
      MONGO_INITDB_ROOT_USERNAME: "root"
      MONGO_INITDB_ROOT_PASSWORD: example36
      TZ: "Asia/Shanghai"
    restart: always
    networks:
      - default




Docker版MongoDB的安装

基于Docker的MongoDB实现授权访问

利用 Docker 运行 MongoDB

MongoDB在Docker中的部署

MongoDB

MongoDB基本使用

MongoDB 教程

MongoDB教程

安装和使用MongoDB

手把手教你 MongoDB 的安装与详细使用

Docker 安装 MongoDB


on pi3

https://github.com/matteoredaelli/docker-mongodb-rpi

树莓派3B 使用 Docker 安装 MongoDB

MongoDB Docker and Raspberry Pi