首页 > 其他分享 >常用命令op

常用命令op

时间:2024-10-11 22:49:01浏览次数:6  
标签:git settings -- list bash 常用命令 ### op

## 常用命令

### EON 私钥

```
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC+iXXq30Tq+J5N
Kat3KWHCzcmwZ55nGh6WggAqECa5CasBlM9VeROpVu3beA+5h0MibRgbD4DMtVXB
t6gEvZ8nd04E7eLA9LTZyFDZ7SkSOVj4oXOQsT0GnJmKrASW5KslTWqVzTfo2XCt
Z+004ikLxmyFeBO8NOcErW1pa8gFdQDToH9FrA7kgysic/XVESTOoe7XlzRoe/eZ
acEQ+jtnmFd21A4aEADkk00Ahjr0uKaJiLUAPatxs2icIXWpgYtfqqtaKF23wSt6
1OTu6cAwXbOWr3m+IUSRUO0IRzEIQS3z1jfd1svgzSgSSwZ1Lhj4AoKxIEAIc8qJ
rO4uymCJAgMBAAECggEBAISFevxHGdoL3Z5xkw6oO5SQKO2GxEeVhRzNgmu/HA+q
x8OryqD6O1CWY4037kft6iWxlwiLOdwna2P25ueVM3LxqdQH2KS4DmlCx+kq6FwC
gv063fQPMhC9LpWimvaQSPEC7VUPjQlo4tPY6sTTYBUOh0A1ihRm/x7juKuQCWix
Cq8C/DVnB1X4mGj+W3nJc5TwVJtgJbbiBrq6PWrhvB/3qmkxHRL7dU2SBb2iNRF1
LLY30dJx/cD73UDKNHrlrsjk3UJc29Mp4/MladKvUkRqNwlYxSuAtJV0nZ3+iFkL
s3adSTHdJpClQer45R51rFDlVsDz2ZBpb/hRNRoGDuECgYEA6A1EixLq7QYOh3cb
Xhyh3W4kpVvA/FPfKH1OMy3ONOD/Y9Oa+M/wthW1wSoRL2n+uuIW5OAhTIvIEivj
6bAZsTT3twrvOrvYu9rx9aln4p8BhyvdjeW4kS7T8FP5ol6LoOt2sTP3T1LOuJPO
uQvOjlKPKIMh3c3RFNWTnGzMPa0CgYEA0jNiPLxP3A2nrX0keKDI+VHuvOY88gdh
0W5BuLMLovOIDk9aQFIbBbMuW1OTjHKv9NK+Lrw+YbCFqOGf1dU/UN5gSyE8lX/Q
FsUGUqUZx574nJZnOIcy3ONOnQLcvHAQToLFAGUd7PWgP3CtHkt9hEv2koUwL4vo
ikTP1u9Gkc0CgYEA2apoWxPZrY963XLKBxNQecYxNbLFaWq67t3rFnKm9E8BAICi
4zUaE5J1tMVi7Vi9iks9Ml9SnNyZRQJKfQ+kaebHXbkyAaPmfv+26rqHKboA0uxA
nDOZVwXX45zBkp6g1sdHxJx8JLoGEnkC9eyvSi0C//tRLx86OhLErXwYcNkCf1it
VMRKrWYoXJTUNo6tRhvodM88UnnIo3u3CALjhgU4uC1RTMHV4ZCGBwiAOb8GozSl
s5YD1E1iKwEULloHnK6BIh6P5v8q7J6uf/xdqoKMjlWBHgq6/roxKvkSPA1DOZ3l
jTadcgKFnRUmc+JT9p/ZbCxkA/ALFg8++G+0ghECgYA8vG3M/utweLvq4RI7l7U7
b+i2BajfK2OmzNi/xugfeLjY6k2tfQGRuv6ppTjehtji2uvgDWkgjJUgPfZpir3I
RsVMUiFgloWGHETOy0Qvc5AwtqTJFLTD1Wza2uBilSVIEsg6Y83Gickh+ejOmEsY
6co17RFaAZHwGfCFFjO76Q==
-----END PRIVATE KEY-----
```

### SSH 连接

```bash
# 把 EON 私钥 保存到文件 eonkey.pem
echo "-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC+iXXq30Tq+J5N
Kat3KWHCzcmwZ55nGh6WggAqECa5CasBlM9VeROpVu3beA+5h0MibRgbD4DMtVXB
t6gEvZ8nd04E7eLA9LTZyFDZ7SkSOVj4oXOQsT0GnJmKrASW5KslTWqVzTfo2XCt
Z+004ikLxmyFeBO8NOcErW1pa8gFdQDToH9FrA7kgysic/XVESTOoe7XlzRoe/eZ
acEQ+jtnmFd21A4aEADkk00Ahjr0uKaJiLUAPatxs2icIXWpgYtfqqtaK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Ih6P5v8q7J6uf/xdqoKMjlWBHgq6/roxKvkSPA1DOZ3l
jTadcgKFnRUmc+JT9p/ZbCxkA/ALFg8++G+0ghECgYA8vG3M/utweLvq4RI7l7U7
b+i2BajfK2OmzNi/xugfeLjY6k2tfQGRuv6ppTjehtji2uvgDWkgjJUgPfZpir3I
RsVMUiFgloWGHETOy0Qvc5AwtqTJFLTD1Wza2uBilSVIEsg6Y83Gickh+ejOmEsY
6co17RFaAZHwGfCFFjO76Q==
-----END PRIVATE KEY-----" > eonkey.pem

# 为私钥设置权限
chmod 600 eonkey.pem

# 假设你的 EON ip 是 192.168.1.100(通常可以在路由器中查到)
ssh [email protected] -p 8022 -i eonkey.pem
```

### openpilot 编译

```bash
# 移除已经编译文件
git clean -xdf

# 移除 git 修改
git reset --hard HEAD

# 切换分支
git checkout 0.6.6-zhs

# 切换分支并重新编译
# 0.7 之前的版本使用 make 代替 scons -i
cd /data/openpilot && git clean -xdf && git reset --hard HEAD && git checkout 0.7.3-zhs && scons -i && reboot
```


### 挂载 system 分区

```bash
# 重新挂载 system 分区为读写权限
mount -o rw,remount /system

# 重新挂载 system 分区为只读权限
mount -o ro,remount /system
```


### 打开系统界面/软件界面


```bash
# 在 EON 的 shell 中运行
# 打开系统设置
am start -a android.settings.SETTINGS

# 关闭系统设置 (kill)
ps aux | grep settings| grep  -v grep|awk '{print $1}' |xargs kill

# 打开开发者选项
am start -a android.settings.APPLICATION_DEVELOPMENT_SETTINGS

am start -n ai.comma.plus.offroad/.MainActivity
```

打开软件包指定的界面:

`am start -n {PACKAGE NAME}/.{ACTIVITY NAME}`

打开系统界面:

`am start -a {ACTION CONSTANT}`


- [SETTINGS CONSTANTS](https://developer.android.com/reference/android/provider/Settings?hl=en#ACTION_ACCESSIBILITY_SETTINGS)
settings

### 获取设备属性选项

```bash
# 获取所有配置选项,ro 开头的是只读
getprop

# 获取 IMEI
getprop oem.device.imeicache

# 获取 serialno
getprop ro.serialno

# 获取 把 IMEI 设置为 517923590773528
setprop oem.device.imeicache 517923590773528

# 设置时区为上海东八区
setprop  persist.sys.timezone Asia/Shanghai
```

 


### 获取设置系统配置

```bash
# 在 EON 的 shell 中运行
settings list global
settings list system
settings list secure
```

usage:  settings [--user NUM] [--cm] get namespace key
        settings [--user NUM] [--cm] put namespace key value
        settings [--user NUM] [--cm] delete namespace key
        settings [--user NUM] [--cm] list namespace

'namespace' is one of {system, secure, global}, case-insensitive
If '--user NUM' is not given, the operations are performed on the owner user.
If '--cm' is given, the operations are performed on the CMSettings provider.


### 软件包管理

```bash
# 显示软件包列表
pm list packages -f

#卸载软件包
pm uninstall ai.comma.plus.offroad

#安装软件包
pm install /sdcard/apk/ai.comma.plus.offroad.apk
```

### 查看网卡信息

```bash
# 查看网卡信息
ifconfig -a

ip addr show

```

### git代理设置

```bash
# http 代理地址 192.168.1.101:1087
# 代理可以是设置在同局域网的电脑上,也可以是公网服务器上
git clone https://github.com/commaai/openpilot.git --config "http.proxy=192.168.1.101:1087"
```


### Termux 包管理

```bash
pkg search <term>
pkg show <packages>

pkg list-all
pkg list-installed

pkg install <packages>
pkg reinstall <packages>
pkg uninstall <packages>

apt list --upgradable
pkg upgrade

pkg help
```

 

标签:git,settings,--,list,bash,常用命令,###,op
From: https://www.cnblogs.com/gnz48/p/18459510

相关文章

  • OP设置SSH-绑定GitHub账户
    OP设置SSH-绑定GitHub账户https://github.com/dragonpilot-community/dragonpilot_wiki/blob/master/cn/how_to_setup_github_ssh.md从0.83开始,安装好OP后会删掉原来通用的ssh密钥信息,无法进行ssh/sftp登录。若需要登录,需要在OP里面绑定GitHub账户里头的ssh公钥。一、快捷偷懒......
  • Photoshop2024下载安装包(附安装教程)
    Photoshop2024安装包:Photoshop2024安装包百度网盘下载PS2024安装教程:1、右击【PS2024.zip】,选择【解压到PS2024】2、右击【Set-up.exe】,选择【以管理员身份运行】3、点击右下角灰色的小文件夹图标,选择【更改位置】4、选择安装路径后,点击【确定】,然后点击【继......
  • [转]一文讲透为Power Automate for Desktop (PAD) 实现自定义模块 - 附完整代码
    本文转自:一文讲透为PowerAutomateforDesktop(PAD)实现自定义模块-附完整代码-陈希章-博客园(cnblogs.com) 概述PowerAutomateforDesktop(以下简称PAD)是微软推出的一款针对Windows桌面端的免费RPA(机器人流程自动化)工具,它目前默认会随着Windows11安装,但也可以......
  • Redis工具可视化工具Redis Desktop Manager(附安装包)
    前言redis工具,我相信每个开发都需要,如果每次查都去client执行指令,我怕查完之后,老大就要发版咯。我之前一直用的Redis可视化工具RedisDesktopManager,总觉得差点意思,直到同事推荐了个新的,突然2眼发光!!先上链接:Redis可视化工具RedisDesktopManager(旧版):AnotherRedisDesktopMan......
  • Win11安装及卸载 PL/SQL Developer
    安装1.plsqldev12707x64.msi单击plsqldev12707x64.msi按Ctrl键+Shift键+Enter键以管理员身份运行plsqldev12707x64.msi进行安装,否则容易安装失败。基本都是默认,修改安装目录,没有复杂的地方。 2.PL/SQL登录 运行桌面PLSQLDeveloper14(64bit)。因为本地......
  • 【进阶OpenCV】 (8)--摄像头操作--->识别文档内容
    文章目录摄像头操作1.打开摄像头2.识别画面预处理3.轮廓检测4.轮廓近似5.透视变换5.1定义order_point(pts)方法:5.2定义four_point_transform(image,pts)方法:5.3代码应用6.关闭图像窗口7.完整代码展示总结摄像头操作本篇我们来介绍,如何打开摄像头来识别文......
  • [Paper Reading] HPT: Scaling Proprioceptive-Visual Learning with Heterogeneous P
    目录ScalingProprioceptive-VisualLearningwithHeterogeneousPre-trainedTransformersTL;DRMethodStemTrunkLossHeadExperiment训练资源效果可视化总结与发散相关链接资料查询ScalingProprioceptive-VisualLearningwithHeterogeneousPre-trainedTransformersScaling......
  • 学习Opencv的第八天——优化Opencv在执行时的性能
    1、使用OpenCV衡量性能cv.getTickCount函数返回从参考事件(如打开机器的那一刻)到调用此函数那一刻之间的时钟周期数。因此,如果在函数执行之前和之后调用它,则会获得用于执行函数的时钟周期数。cv.getTickFrequency函数返回时钟周期的频率或每秒的时钟周期数。因此,要找到执行......
  • VS2019/2022配置C++ OpenCV4.10.0环境
    一、下载opencv4.10.0官网链接:https://opencv.org/ 安装的时候记住安装路径,本人安装到E盘 二、新建C++项目1、本人新建C++/CLR.Netframework项目 2、右击打开C++项目属性2.1、添加包含目录 此处本人配置的是绝对地址,拷贝build文件夹到程序目录,然后配置相对地......
  • Topsis评价法
    步骤:第一步:统一指标类型将所有的指标转化为极大型称为指标正向化(最常用).第二步:标准化处理为了消去不同指标量纲的影响,需要对已经正向化的矩阵进行标准化处理。第三步,找到有限方案中的最优方案和最劣方案,然后分别计算各评价对象与最优方案和最劣方案间的距离,获得各评价对象与......