串口权限 显卡信息 开机启动

1、串口权限设置

cd /etc/udev/rules.d

sudo nano 20-usb-serial.rules

添加内容

KERNEL =="ttyUSB*" MODE="0777"

KERNEL =="ttyS*" MODE="0777"

重启电脑或者拔掉由串口过来的usb线,重新连接

查看权限:ls /dev/ttyUSB0 -l

2、lspci |grep VGA

3、开机启动

crontab -e

@reboot sh /home/usrname/t.sh > /home/usrname/t_log.log 2>&1

猜你喜欢

转载自www.cnblogs.com/gloria11/p/9938539.html