This shows you the differences between two versions of the page.
library:centos:meeting [2019/10/10 08:48] |
library:centos:meeting [2022/05/02 00:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Meeting System on Python ====== | ||
+ | ---- | ||
+ | ===== Install Python ===== | ||
+ | ---- | ||
+ | ==== On PC ==== | ||
+ | |||
+ | Get Python from https:// | ||
+ | |||
+ | All following operation are under the Python v2.7.16 | ||
+ | |||
+ | ==== On Android Mobile ==== | ||
+ | **1. install Termux** | ||
+ | |||
+ | 可从Google Play 或其他商店下载安装 | ||
+ | |||
+ | Termux官网:https:// | ||
+ | |||
+ | 直接下载安装:https:// | ||
+ | |||
+ | **2. Run the Termux app** | ||
+ | |||
+ | **3. install opensh for Termux (Optional)** | ||
+ | * install packages | ||
+ | |||
+ | apt update | ||
+ | apt install openssh | ||
+ | |||
+ | * 添加登录公钥 | ||
+ | 编辑授权文件 / | ||
+ | |||
+ | * 启动sshd | ||
+ | |||
+ | sshd | ||
+ | |||
+ | * 使用SSH软件连接8023端口 | ||
+ | |||
+ | 可能问题 | ||
+ | 使用SecureCRT, | ||
+ | ip address # | ||
+ | |||
+ | 成功登录终端 | ||
+ | |||
+ | Welcome to Termux! | ||
+ | | ||
+ | Wiki: https:// | ||
+ | Community forum: https:// | ||
+ | Gitter chat: | ||
+ | IRC channel: | ||
+ | | ||
+ | Working with packages: | ||
+ | | ||
+ | * Search packages: | ||
+ | * Install a package: pkg install < | ||
+ | * Upgrade packages: | ||
+ | | ||
+ | Subscribing to additional repositories: | ||
+ | | ||
+ | * Root: pkg install root-repo | ||
+ | * Unstable: pkg install unstable-repo | ||
+ | * X11: pkg install x11-repo | ||
+ | | ||
+ | Report issues at https:// | ||
+ | $ | ||
+ | |||
+ | |||
+ | **4. 安装python2.7** | ||
+ | |||
+ | pkg install python2 | ||
+ | python2 --version # Check python2 version | ||
+ | |||
+ | <color green> | ||
+ | $ python2 --version \\ | ||
+ | Python 2.7.16 | ||
+ | </ | ||
+ | |||
+ | **5. install git(optional)** | ||
+ | |||
+ | pkg install git | ||
+ | git --version # Check git version | ||
+ | |||
+ | <color green> | ||
+ | $ git --version \\ | ||
+ | git version 2.23.0 | ||
+ | </ | ||
+ | |||
+ | **6. Get latest psource(optional)** | ||
+ | |||
+ | git clone git@code.aliyun.com: | ||
+ | |||
+ | <color green> | ||
+ | $ git clone git@code.aliyun.com: | ||
+ | Cloning into ' | ||
+ | remote: Enumerating objects: 27, done. \\ | ||
+ | remote: Counting objects: 100% (27/27), done. \\ | ||
+ | remote: Total 27 (delta 0), reused 0 (delta 0) \\ | ||
+ | Receiving objects: 100% (27/27), 9.03 KiB | 770.00 KiB/s, done. \\ | ||
+ | </ | ||
+ | |||
+ | **7. Execute the code** | ||
+ | change to project directory | ||
+ | run | ||
+ | |||
+ | python2 discovery.ph | ||
+ | |||
+ | |||
+ | ===== mDNS ===== | ||
+ | ---- | ||
+ | mDNS library for Python can be found at https:// | ||
+ | Install library | ||
+ | change to the Python directory, you can get pip in the script directory | ||
+ | pip install mdns==1.0.0 | ||
+ | |||
+ | |||
+ | Termux快捷键 | ||
+ | 音量-键 + L 清除屏幕内容 | ||
+ | 音量-键 + C 终止当前操作 | ||
+ | 音量-键 + D 退出当前会话session | ||
+ | 音量+键 + D Tab键(可自动补全命令或文件名) | ||
+ | 音量+键 + W 方向键 上(可显示前一条命令) | ||
+ | 音量+键 + S 方向键 下(可显示后一条命令) | ||
+ | 音量+键 + A 方向键 左(可左移动光标) | ||
+ | 音量+键 + D 方向键 右(可右移动光标) | ||
+ | 音量+键 + Q 显示或关闭扩展键(ESC、插入链接CTR、ALT、TAB、-、/ | ||
+ | |||
+ | Termux申请存储权限 | ||
+ | termux-setup-storage | ||