dongles-over-ip wording

This commit is contained in:
galister 2023-12-20 14:07:27 +00:00
parent 2b1067af3c
commit 7ad957328c

View file

@ -9,8 +9,8 @@ This setup uses USB-over-IP to let you plug your Watchman dongles (the ones that
#### The benefits of this setup #### The benefits of this setup
- Trackers can be far away from your computer - Dongles can be far away from your computer
- Trackers can be far away from radio interference - Dongles can be far away from radio interference
- You can conveniently hide the ugly cabling under/behind a piece of furniture - You can conveniently hide the ugly cabling under/behind a piece of furniture
#### Requirements #### Requirements
@ -19,19 +19,18 @@ This setup uses USB-over-IP to let you plug your Watchman dongles (the ones that
### Dongle host setup ### Dongle host setup
1. Install `usbip` and Python3 on dongle host. On debian/raspbian it's `apt install usbip python3`. 1. Install `usbip` and `python3`` on dongle host. On debian/raspbian it's `apt install usbip python3`.
2. Put the `usbip-bind` script (from below) on the dongle host, (e.g. into `/root`) 2. Put the `usbip-bind` script (from below) on the dongle host, (e.g. into `/root`)
`sudo wget https://gist.github.com/galister/2fbd23cfaff8ba4839efa13184e4e197/raw/13b0b2fd6dee609169b6a98b302f6a6ac5c2d307/usbip-bind -O /root/usbip-bind; sudo chmod +x /root/usbip-bind` `sudo wget https://gist.github.com/galister/2fbd23cfaff8ba4839efa13184e4e197/raw/13b0b2fd6dee609169b6a98b302f6a6ac5c2d307/usbip-bind -O /root/usbip-bind; sudo chmod +x /root/usbip-bind`
3. Set up `usbip-bind bind` to run on startup 3. Set up `usbip-bind bind` to run on startup. On Raspbian: `echo '/root/usbip-bind bind' | sudo tee -a /etc/rc.local`
On Raspbian: `echo '/root/usbip-bind bind' | sudo tee -a /etc/rc.local`
4. With your dongles plugged in, run `sudo /root/usbip-bind bind`, to bind them for the first time 4. With your dongles plugged in, run `sudo /root/usbip-bind bind`, to bind them for the first time
### VR PC setup: ### Main PC setup:
1. Download `usbdongle` and put it somewhere safe: 1. Download `usbdongle` and put it somewhere safe:
`wget https://gist.github.com/galister/2fbd23cfaff8ba4839efa13184e4e197/raw/13b0b2fd6dee609169b6a98b302f6a6ac5c2d307/usbdongle; chmod +x usbdongle` `wget https://gist.github.com/galister/2fbd23cfaff8ba4839efa13184e4e197/raw/13b0b2fd6dee609169b6a98b302f6a6ac5c2d307/usbdongle; chmod +x usbdongle`
2. Edit `usbdongle` and set the `DONGLE_HOST` variable to the IP or hostname of your dongle host. (run `ip addr` on dongle host to find out) 2. Edit `usbdongle` and set the `DONGLE_HOST` variable to the IP or hostname of your dongle host. (run `ip addr` on dongle host to find out)
3. Optional: If you don't want to enter your sudo password for `usbdongle` every time, run this as a single multi-line command: 3. Optional: If you don't want to enter your sudo password for `usbdongle` every time, run this as a single multi-line command (as your non-root user!):
```bash ```bash
echo "$USER ALL=(root) NOPASSWD: /usr/sbin/usbip detach * echo "$USER ALL=(root) NOPASSWD: /usr/sbin/usbip detach *