安卓的 杂七八百

Preparing \"Install Google APIs Intel x86_64 Atom System Image API 34 (revision 13)\". Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86_64-34_r13.zip \"Install Google APIs Intel x86_64 Atom System Image API 34 (revision 13)\" ready. Installing Google APIs Intel x86_64 Atom System Image in /home/calleng/Android/Sdk/system-images/android-34/google_apis/x86_64 \"Install Google APIs Intel x86_64 Atom System Image API 34 (revision 13)\" complete. \"Install Google APIs Intel x86_64 Atom System Image API 34 (revision 13)\" finished. Preparing \"Install Sources for Android 34 (revision 2)\". Downloading https://dl.google.com/android/repository/sources-34_r01.zip \"Install Sources for Android 34 (revision 2)\" ready. Installing Sources for Android 34 in /home/calleng/Android/Sdk/sources/android-34 \"Install Sources for Android 34 (revision 2)\" complete. \"Install Sources for Android 34 (revision 2)\" finished. Preparing \"Install Android SDK Platform 34 (revision 3)\". Downloading https://dl.google.com/android/repository/platform-34-ext7_r03.zip \"Install Android SDK Platform 34 (revision 3)\" ready. Installing Android SDK Platform 34 in /home/calleng/Android/Sdk/platforms/android-34 \"Install Android SDK Platform 34 (revision 3)\" complete. \"Install Android SDK Platform 34 (revision 3)\" finished. Preparing \"Install Android SDK Build-Tools 34 v.34.0.0\". Downloading https://dl.google.com/android/repository/build-tools_r34-linux.zip \"Install Android SDK Build-Tools 34 v.34.0.0\" ready. Installing Android SDK Build-Tools 34 in /home/calleng/Android/Sdk/build-tools/34.0.0 \"Install Android SDK Build-Tools 34 v.34.0.0\" complete. \"Install Android SDK Build-Tools 34 v.34.0.0\" finished. Preparing \"Install Android SDK Platform-Tools v.35.0.1\". Downloading https://dl.google.com/android/repository/platform-tools_r35.0.1-linux.zip \"Install Android SDK Platform-Tools v.35.0.1\" ready. Installing Android SDK

update-alternatives 软件版本切换

blog.csdn.net/muren/article/details/130069972 $ update-alternatives --help 用法:update-alternatives <命令> 命令: --install <链接> <名称> <路径> <优先级> ... 在系统中加入一组候选项。 --remove <名称> <路径> 从 <名称> 替换组中去除 <路径> 项。 --display <名称> 显示关于 <名称> 替换组的信息。 --list <名称> 列出 <名称> 替换组中所有 $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc12/bin/gcc 20 --slave /usr/bin/g++ g++ /usr/local/gcc12/bin/g++ $ sudo update-alternatives --remove gcc /usr/local/gcc12/bin/gcc $ sudo update-alternatives --remove g++ /usr/local/gcc12/bin/g++   本文记录了在Deepin20.8下通过编译安装GCC12.2.0的过程。 deepin20.8 cd ~ wget https://ftp.gnu.org/gnu/gcc/gcc-12.2.0/gcc-12.2.0.tar.xz tar -Jxf gcc-12.2.0.tar.xz cd gcc-12.2.0 1、查看下载依赖包 cat contrib/download_prerequisites ....... #------------------------------------ gmp=\'gmp-6.2.1.tar.bz2\' mpfr=\'mpfr-4.1.0.tar.bz2\' mpc=\'mpc-1.2.1.tar.gz\' isl=\'isl-0.24.tar.bz2\' #------------------------------------ ...... 2、下载依赖包到gcc源目录下 cd ~/gcc-12* wget https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.2.1.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.2.1.tar.gz wget https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.24.tar.bz2 3、检测依赖包 ./contrib/download_prerequisites cd ~/gcc-12* mkdir build cd build ../configure --prefix=/usr/local/gcc12/ --disable-multilib configure命令说明 --prefix 指定安装目录 --disable-multilib 只安装64位版本   make -j8 注意:整个编译时间花费1个小时 安装到之前--prefix指定的目录 make install 1、设置环境变量 echo \'export LD_LIBRARY_PATH=/usr/local/gcc12/lib64:$LD_LIBRARY_PATH\' >> /etc/profile 重启生效 2、配置替换版本 sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc12/bin/gcc 20 --slave /usr/bin/g++ g++ /usr/local/gcc12/bin/g++ ykyi.net/?p=1712 如果你的gcc/g++版本号大于4.7的话,可以用如下命令获得默认c++版本 kamus@shyyp.net:~g++ --version | head -1 g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 kamus@shyyp.net:~ g++ -dM -E -x c++ /dev/null | grep -F __cplusplus #define __cplusplus 201402L kamus@shyyp.net:~$ gcc -dM -E -x c++ /dev/null | grep -F __cplusplus #其实用gcc也可以 #define __cplusplus 201402L kamuszhou@centos ~ g++ --version | head -1 g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 kamuszhou@centos~ g++ -dM -E -x c++ /dev/null | grep -F __cplusplus

logiops,在 Linux下设置罗技 Wireless Mouse MX Master 3 按键和手势

因为系统是 UOS,自带GCC版本8.3太老,默认 std  2014, 其他修改不可行 版本 最新3.3, c++20, 3.2, c++20 3.0 , c++17 均测试不通过 ,下午6点重新编译,本机 gcc12 for UOS,结果C库不兼容,编译通过,但是运行出错。还原,使用 2.4 版本没有依赖,直接通过 测试正常 下载2.4 的zip包 ,解压后,看到 README .MD 文件。 This project requires a C++14 compiler, cmake, libevdev, libudev, and libconfig. For popular distributions, I\'ve included commands below. Debian/Ubuntu: sudo apt install cmake libevdev-dev libudev-dev libconfig++-dev   mkdir build cd build cmake .. make 安装 sudo make install 设定为守护进程开机启动 sudo systemctl enable --now logid 平常查看运行状态 sudo service logid status 出现问题时重启,这可以解决大部分问题。 sudo service logid restart debug模式 排除错误 sudo service logid stop sudo logid -v 快速重启 alias logidd=\'sudo cp /home/calleng/Desktop/logid.cfg /etc/logid.cfg && sudo systemctl restart logid\' 正在用的系统配置,本来想实现5个按键的鼠标手势捕获,结果不可以。 只有用两个 通过 参数, 每个鼠标按键通过一个cid表示,鼠标按键的cid值可以参考项目页面知道(CIDs),或是通过debug模式查看。 debug模式启动的方法是,先停止服务 0 CID | reprog? | fn key? | mouse key? | gesture support? 1 0x50 |Left Mouse Button | YES | 2 0x51 |Right Mouse Button | YES | 3 0x52 | YES Middle MButton | YES | YES 4 0x53 | YES Back Button | YES | YES 5 0x56 | YES Forward Button | YES | YES 6 0xc3 | YES Gesture Button | YES | YES ----- 7 0xc4 | YES ToggleSmartShift| YES | YES ---- 8 0xd7 | YES Switch Receivers| | YES 9 Thumb wheel detected (0x2150), capabilities:

linux Charles 抓包配置 和二级代理 和 charles + pycharm + request 配置

help -->  ssl proxy --> Save Charles Root Certificate --> Desktop/charles.pem mv charles.pem charles.crt 安装certutil,一个命令行式证书管理相关工具 sudo apt-get install libnss3-tools 利用certutil导入证书 certutil -d sql:$HOME/.pki/nssdb -A -t \"CP,CP,\" -n charles -i ~/Desktop/charles.crt   sudo  cp ~/Desktop/charles.crt /usr/share/ca-certificates/mozilla/charles.crt 把 mozilla/charles.crt 加入到 ca-certificates.conf 文件末尾 sudo vim /etc/ca-certificates.conf sudo update-ca-certificates   Tools --> Import/Export Settings ... --->Export --->  uncheck select all ---> check Access Control +  Proxy Settings + External Proxies --> Export --> Done ! <?charles serialisation-version=\'2.0\' ?> <charles-export> <proxyConfiguration> <transparentProxy>true</transparentProxy> <sslLocations> <locationPatterns> <locationMatch> <location> <host>*</host> <port>*</port> </location> </locationMatch> </locationPatterns> </sslLocations> <socksTransparentHTTPProxyPorts/> <socksTransparentHTTPProxyPortRanges/> </proxyConfiguration> <accessControlConfiguration> <ipRanges> <ipRange> <ip> <int>10</int> <int>10</int> <int>10</int> <int>236</int> </ip> <mask> <int>255</int> <int>255</int> <int>255</int> <int>255</int> </mask> </ipRange> </ipRanges> </accessControlConfiguration> <externalProxyConfiguration> <configurations> <entry> <string>socks</string> <mutableExternalProxyConfiguration> <active>true</active> <host>192.168.1.1</host> <port>1080</port> <domain/> <username/> <encryptedPassword>Sr8xTCy3aLdwYzYc1xxmEQ==</encryptedPassword> </mutableExternalProxyConfiguration> </entry> <entry> <string>http</string> <mutableExternalProxyConfiguration> <host>192.168.1.1</host> <port>1080</port> <domain/> <username/> <encryptedPassword>Sz62CibQSZ5P0PJ3CwqJAw==</encryptedPassword> </mutableExternalProxyConfiguration> </entry> <entry> <string>https</string> <mutableExternalProxyConfiguration> <host>192.168.1.1</host> <port>1080</port> <domain/> <username/> <encryptedPassword>b4Eg/j68uJdadLEfvogaYw==</encryptedPassword> </mutableExternalProxyConfiguration> </entry> </configurations> <bypassDomains> <string>192.168.1.0/24</string> <string>10.10.10.0/24</string> </bypassDomains> <enabled>true</enabled> </externalProxyConfiguration> <clientSSLCertificatesConfiguration/> </charles-export> import requests # 开启charles,运行pycharm发送https请求报以下错误 import urllib3 urllib3.disable_warnings() # 创建一个 Session 对象 session = requests.Session() head = { \"User-Agent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36\" } data = { \"cname\": \"\", \"pid\": \"\", \"keyword\": \"上海\", \"pageIndex\": 1, \"pageSize\": 10 } # 代理地址 proxy = { \'http\': \'http://10.10.10.236:8888\', \'https\':

解决光猫的 openwrt的问题

完美解决Ubuntu磁盘/硬盘挂载出错 问题描述: Error mounting /dev/sda1 at /media/***/E: Command-line `mount -t “ntfs” -o 解决办法: 步骤1、在终端输入下面命令,先查看磁盘挂在情况: sudo fdisk -l 步骤2、终端执行sudo ntfsfix /dev/sdb+编号修复挂载错误的相应的分区,命令根据磁盘号修改 例如:是磁盘编号1无法使用报以上问题,则输入命令进行修复: sudo ntfsfix /dev/sdb1         http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/packages/ https://downloads.openwrt.org/releases/17.01.7/packages/arm_cortex-a9/ arm_cortex-a9/ - Sat Jan 25 17:56:45 2020 arm_cortex-a9_neon/ - Sat Jan 25 14:24:28 2020 arm_cortex-a9_vfpv3/ 17.01.7 21. Juni 2019 r4030 Kernel 4.4.182, Sicherheitsaktualisierungen https://de.wikipedia.org/wiki/OpenWrt OpenWrt路由器架构判断 提示: ARMv7 都是32位CPU, armv8以上才是64位CPU. $ which busybox /bin/busybox $ file /bin/busybox /bin/busybox: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1   OpenWrt路由器架构判断 callen@callen-PC:~$ file busybox busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, no section header opkg: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-arm.so.1, no section header Latest Chaos Calmer Release - OpenWrt 15.05.1 https://openwrt.org/releases/15.05/start https://blog.csdn.net/huyaoyu/article/details/42810383 src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/telephony CSDN 解决架构的问题 opkg update 和opkg install 老是报错 Package zoneinfo-middleeast version 2011n-1 has no valid architecture, ignoring. Package zoneinfo-northamerica version 2011n-1 has no valid architecture, ignoring. 执行opkg update 和opkg install都会出现一大堆 no valid architecture. https://www.right.com.cn/forum/thread-128532-1-1.html root@SAF:~# uname -a Linux SAF 3.10.53-HULK2 #1 SMP Fri Oct 20 01:08:58 CST 2017 armv7l GNU/Linux               / # uname -a Linux SAF 4.4.197 #1 SMP Mon Jul 13 10:01:41 UTC 2020 armv7l GNU/Linux