mirror of
https://gitlab.com/lvra/lvra.gitlab.io.git
synced 2024-11-10 02:20:26 +01:00
dongles-over-ip remove sudoers
This commit is contained in:
parent
1d979c531c
commit
cd2bc9d46a
1 changed files with 3 additions and 12 deletions
|
@ -19,10 +19,10 @@ 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. On Raspbian: `echo '/root/usbip-bind bind' | sudo tee -a /etc/rc.local`
|
3. Set up `usbip-bind bind` to run on startup. On Debian/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
|
||||||
|
|
||||||
### Main PC setup:
|
### Main PC setup:
|
||||||
|
@ -30,16 +30,7 @@ This setup uses USB-over-IP to let you plug your Watchman dongles (the ones that
|
||||||
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 (as your non-root user!):
|
3. Run `usbdongle` before starting SteamVR/Monado (or on startup/login)
|
||||||
|
|
||||||
```bash
|
|
||||||
echo "$USER ALL=(root) NOPASSWD: /usr/sbin/usbip detach *
|
|
||||||
$USER ALL=(root) NOPASSWD: /usr/sbin/usbip attach *
|
|
||||||
$USER ALL=(root) NOPASSWD: /usr/sbin/usbip list *
|
|
||||||
$USER ALL=(root) NOPASSWD: /sbin/modprobe vhci-hcd" | sudo tee -a /etc/sudoers
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Run `usbdongle` before starting SteamVR/Monado (or on startup/login)
|
|
||||||
|
|
||||||
### Things to watch out for
|
### Things to watch out for
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue