ubuntu中设置串口权限

前端之家收集整理的这篇文章主要介绍了ubuntu中设置串口权限前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
1.查看串口信息 输入:ls -l /dev/ttyS0 返回:crw-rw---- 1 root dialout 4,64 12月 22 19:46 /dev/ttyS0 2.创建文件 输入:sudo gedit /etc/udev/rules.d/70-ttyS0.rules 返回: (gedit:5652): IBUS-WARNING **: The owner of /home/sifo/.config/ibus/bus is not root! (gedit:5652): Gtk-WARNING **: Calling Inhibit Failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files 点击保存返回: (gedit:5652): Gtk-WARNING **: Calling Inhibit Failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files 不用管返回错误,进入下一步 3.重新打开终端,用命令增加访问权限: 输入:sudo chmod 666 /dev/ttyS0

猜你在找的Ubuntu相关文章