Code Monkey home page Code Monkey logo

cf-fdip's Introduction

安卓和linux使用教程

👋👋👋 给CM杨幂点点关注👋👋👋https://github.com/cmliu

测速指令后面加了 -dd,需要测速的自己删除 感觉没必要测速,测个延迟就行了,能通就行

  1. 下载GeoLite2-Country
  2. 下载CloudflareSpeedTest
  3. 运行脚本。

要安装什么库我忘记了

要查看Linux系统的架构,你可以使用以下命令之一:

  • 用 uname 命令:uname -m

  • 这将显示机器的硬件架构信息,例如 x86_64 表示 64 位架构,i386 表示 32 位架构。

  • 然后github CloudflareSpeedTest 去下载对应的版本的测速文件。(我这里的是arm64)

  • 装jq,你可以使用以下命令:pkg install jq 这将使用Termux的包管理器pkg来安装jq。安装完成后,你就可以在Termux中使用jq来处理JSON数据了。

  • 脚本和测速文件都给满777

  • 这个是Termux的根目录,下载后的东西放这里面/data/data/com.termux/files/home/

  • #识别国家地区还是推荐用Python,秒出。用api有点慢。

  • GeoLite2-Country和libmaxminddb-tools

方法:把GeoLite2-Country复制到termux根目录/data/data/com.termux/files/home/ ,然后输入pkg install libmaxminddb-tools

Termux一键下载运行指令:

  • curl -sSL -o ~/GeoLite2-Country.mmdb https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/GeoLite2-Country.mmdb && chmod +x ~/GeoLite2-Country.mmdb

  • curl -sSL -o ~/zjccc.sh https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/zjccc.sh && chmod +x ~/zjccc.sh && bash ~/zjccc.sh

  • 代理加速Termux一键下载运行指令:

  • curl -sSL -o ~/GeoLite2-Country.mmdb https://mirror.ghproxy.com/https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/GeoLite2-Country.mmdb && chmod +x ~/GeoLite2-Country.mmdb

  • curl -sSL -o ~/zjccc.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/zjccc.sh && chmod +x ~/zjccc.sh && bash ~/zjccc.sh

    标准Linux一键下载运行指令:

  • wget https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/GeoLite2-Country.mmdb -O ~/GeoLite2-Country.mmdb && chmod +x ~/GeoLite2-Country.mmdb

  • wget https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/zjccc.sh -O ~/zjccc.sh && chmod +x ~/zjccc.sh && bash ~/zjccc.sh

  • 代理加速标准Linux一键下载运行指令:

  • wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/GeoLite2-Country.mmdb -O ~/GeoLite2-Country.mmdb && chmod +x ~/GeoLite2-Country.mmdb

  • wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/zjccc1999/Cf-fdip/main/linux/zjccc.sh -O ~/zjccc.sh && chmod +x ~/zjccc.sh && bash ~/zjccc.sh

安卓版叫做Pydroid3:

电脑版教程

安装Python 要安装os、geoip2、requests、zipfile、socket、re 和 tkinter,运行失败自己去下载库

推荐使用IDLE

右键没有的话使用文件夹中的reg更改注册表

自己右键编辑去替换目录 这是我的目录D:\PY\pythonw.exe

4个1开头的是4种获取IP的方法,推荐1-1

剩下的名字都有说明不多解释了。

有时间替换下这个,这个是识别地区用的

图片

文件目录

Termux

Pydroid 3

cf-fdip's People

Contributors

zjccc1999 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.