User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:centos:meeting

Meeting System on Python


Install Python


On PC

Get Python from https://www.python.org/ or https://www.python.org/downloads/release/python-2716/

All following operation are under the Python v2.7.16

On Android Mobile

1. install Termux

可从Google Play 或其他商店下载安装

Termux官网:https://termux.com/

直接下载安装:https://f-droid.org/repo/com.termux_75.apk

2. Run the Termux app

3. install opensh for Termux (Optional)

  • install packages
apt update
apt install openssh
  • 添加登录公钥

编辑授权文件 /data/data/com.termux/files/home/.ssh/authorized_keys,在文件尾部追加公钥

  • 启动sshd
sshd
  • 使用SSH软件连接8023端口
可能问题
使用SecureCRT,要配置使用的公钥
ip address #看查看手机IP地址

成功登录终端

Welcome to Termux!

Wiki:            https://wiki.termux.com
Community forum: https://termux.com/community
Gitter chat:     https://gitter.im/termux/termux
IRC channel:     #termux on freenode

Working with packages:

* Search packages:   pkg search <query>
* Install a package: pkg install <package>
* Upgrade packages:  pkg upgrade

Subscribing to additional repositories:

* Root:     pkg install root-repo
* Unstable: pkg install unstable-repo
* X11:      pkg install x11-repo

Report issues at https://termux.com/issues
$

4. 安装python2.7

pkg install python2
python2 --version # Check python2 version

$ python2 –version
Python 2.7.16

5. install git(optional)

pkg install git
git --version # Check git version

$ git –version
git version 2.23.0

6. Get latest psource(optional)

git clone git@code.aliyun.com:gzxs/pypmisc.git

$ git clone git@code.aliyun.com:gzxs/pypmisc.git
Cloning into 'pypmisc'…
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://pypi.org/project/mdns/1.0.0/ 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
library/centos/meeting.txt · Last modified: 2022/05/02 00:32 (external edit)