|
|
This document describes the steps to getting Wine and the Q330 software installed on Centos 7
|
|
|
|
|
|
|
|
|
After wine is installed you need to download the latest software from Q330.com
|
|
|
|
|
|
There are a few steps needed to get the usb to serial adapter to connect while running Willard.
|
|
|
|
|
|
The first step is to update the Wine registry to connect /dev/ttyUSB0 to com1. To do this run:
|
|
|
|
|
|
`wine regedit`
|
|
|
|
|
|
two new string values need to be put in the registry under HKEY_LOCAL_MACHINE/Software/Wine/Ports
|
|
|
|
|
|
Go to edit -> new -> String Value
|
|
|
|
|
|
Name it COM1 and the data entry should be /dev/ttyUSB0
|
|
|
|
|
|
Create another new entry with name COM5 but leave the data part blank. You should now be done with regedit and can close it.
|
|
|
|
|
|
Another issue is the permissions needed for the /tty/USB0 device are incorrect. We need to add field to the dialout group using:
|
|
|
|
|
|
`sudo usermod -a -G dialout field`
|
|
|
|
|
|
The last step is to the udev rules
|
|
|
|
|
|
as sudo create and edit /etc/udev/rules.d/50-ttyusb.rules with the following line
|
|
|
|
|
|
`KERNEL=="ttyUSB[0-9]*",NAME="tts/USB%n",SYMLINK+="%k",GROUP="uucp",MODE="0666"`
|
|
|
|
|
|
|
|
|
This should now allow Willard to communicate through COM1 to the usbtoserial device
|
|
|
|
|
|
Note: The last few steps of changing permissions on the ttyUSB devices also ensures POCUS works correctly as well.
|
|
|
|
|
|
In order for bader to work all rp_filter settings must be set to 0. Check their status by running:
|
|
|
`sysctl -a | grep \\.rp_filter`
|
|
|
|
|
|
you should see something like (among other information):
|
|
|
```
|
|
|
net.ipv4.conf.all.rp_filter = 1
|
|
|
net.ipv4.conf.default.rp_filter = 1
|
|
|
net.ipv4.conf.lo.rp_filter = 0
|
|
|
net.ipv4.conf.p7p1.rp_filter = 1
|
|
|
net.ipv4.conf.virbr0.rp_filter = 1
|
|
|
net.ipv4.conf.virbr0-nic.rp_filter = 1
|
|
|
net.ipv4.conf.wlp2s0.rp_filter = 1
|
|
|
```
|
|
|
|
|
|
In order to set them all to zero permanently we need to create a new conf file as sudo:
|
|
|
```/etc/sysctl.d/90-disable-rp_filter.conf```
|
|
|
|
|
|
the contents should be what we found above but all set to 0:
|
|
|
```
|
|
|
net.ipv4.conf.all.rp_filter = 0
|
|
|
net.ipv4.conf.default.rp_filter = 0
|
|
|
net.ipv4.conf.lo.rp_filter = 0
|
|
|
net.ipv4.conf.p7p1.rp_filter = 0
|
|
|
net.ipv4.conf.virbr0.rp_filter = 0
|
|
|
net.ipv4.conf.virbr0-nic.rp_filter = 0
|
|
|
net.ipv4.conf.wlp2s0.rp_filter = 0
|
|
|
``` |