docker_usb开发软件部署

时间:2021-10-21 23:48:11

1、docker镜像包  (备注:61提供,带桌面版本)

rayosx2.0.2.tar

2、paho-mqtt

dnf install git -y

git clone https://github.com/eclipse/paho.mqtt.python
cd paho.mqtt.python
python3 setup.py install

3、install setuptools  and pip3

[root@host-10-0-101-164 ~]# ll
总用量 19606860
drwxr-xr-x. 9 root root 4096 5月 16 16:24 paho.mqtt.python
-rw-r--r--. 1 root root 1089956 5月 16 16:27 paho.mqtt.python.tar.gz
drwxrwxrwx. 6 root root 216 5月 16 16:32 pip-10.0.1
-rw-r--r--. 1 root root 1246072 5月 16 16:27 pip-10.0.1.tar.gz
-rw-r--r--. 1 root root 20074424832 5月 16 16:22 rayosx2.0.2.tar
drwxr-xr-x. 10 501 games 4096 5月 16 16:32 setuptools-19.6
-rw-r--r--. 1 root root 641502 5月 16 16:27 setuptools-19.6.tar.gz #install setuptools
dnf install pcre pcre-devel openssl openssl-devel zlib bzip2-devel -y
tar xf setuptools-19.6.tar.gz
cd setuptools-19.6/
python3 setup.py install #install pip3
tar xf pip-10.0.1.tar.gz
cd pip-10.0.1/
python3 setup.py install

4、pyudev

 pip3 install pyudev

5、安装lsusb

dnf install usbutils -y

#install lsusb software
dnf install usbutils -y #查看bus and prot
[root@controller1 ~]# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 1.5M
|__ Port 6: Dev 5, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 1: Dev 6, If 2, Class=Human Interface Device, Driver=usbhid, 480M
|__ Port 1: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 480M
|__ Port 1: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 480M