$ usb-devices
T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0403 ProdID=6001 Rev=06.00
S: Manufacturer=FTDI
S: Product=FT232R USB UART
S: SerialNumber=A9W7R5L5
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=90mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
SUBSYSTEM=="tty", ATTRS{serial}=="A9W7R5L5", ATTRS{idVendor}=="0403" SYMLINK+="ttyCardReader"
KERNEL=="ttyUSB[0-9]*",MODE="0666"
arch: amd64
cores: 1
features: nesting=1
hostname: ct-OscamServer
memory: 512
net0: name=eth3,bridge=vmbr0,firewall=1,hwaddr=BC:24:11:E3:BE:52,ip=dhcp,type=veth
ostype: debian
rootfs: local-lvm:vm-103-disk-0,size=5G
swap: 512
lxc.mount.entry: /dev/ttyCardReader dev/ttyCardReader none bind,optional,create=file
ls -la /dev/tty*
lrwxrwxrwx 1 root root 7 Mar 15 16:43 /dev/ttyCardReader -> ttyUSB0
[mouse] ERROR: Opening device /dev/ttyUSB0 (errno=1 Operation not permitted)
nano /etc/udev/rules.d/99-usb-serial.rules
Inhalt der Datei:
SUBSYSTEM=="tty", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AL3lkZSHS", MODE="0777", SYMLINK+="Mouse01"
arch: amd64
cores: 1
features: nesting=1
hostname: ct-OscamServerun
memory: 512
net0: name=eth4,bridge=vmbr0,firewall=1,hwaddr=BC:24:22:B8:A5:CD,ip=dhcp,type=veth
ostype: debian
rootfs: local-lvm:vm-104-disk-0,size=5G
swap: 512
unprivileged: 1
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/Mouse01 dev/Mouse01 none bind,optional,create=file
device = /dev/Mouse01
lxc.cgroup2.devices.allow: c 188:* rwm
root@pve:~# ls -la /dev/tty*
...
crwxrwxrwx 1 root dialout 188, 0 Mar 16 14:26 /dev/ttyUSB0
$ls -la /dev/tty*
...
lrwxrwxrwx 1 root root 7 Mar 16 16:45 /dev/ttyMouse01 -> ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 Mar 16 16:45 /dev/ttyUSB0
lxc.cgroup2.devices.allow: c 188:* rwm
pb@ct-OscamServerun:~$ ls -la /dev/tty*
crw-rw-rw- 1 nobody nogroup 5, 0 Mar 16 15:45 /dev/tty
crw------- 1 pb tty 136, 1 Mar 16 15:51 /dev/tty1
crw--w---- 1 root tty 136, 2 Mar 16 15:47 /dev/tty2
Wir verwenden Cookies und ähnliche Technologien für die folgenden Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für die folgenden Zwecke:
Akzeptieren Sie Cookies und diese Technologien?