Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Last active August 2, 2020 09:42
Show Gist options
  • Save Tiryoh/b849e22057fc476c5b3db7fa4b1c1b24 to your computer and use it in GitHub Desktop.
Save Tiryoh/b849e22057fc476c5b3db7fa4b1c1b24 to your computer and use it in GitHub Desktop.
DualShock4のUbuntu用ドライバのセットアップ手順(Python3)
#!/usr/bin/env bash
set -eu
# tested on Ubuntu 18.04.4
git clone https://github.com/ds4-driver/ds4drv.git
cd ds4drv
mkdir -p ~/.local/lib/python3.6/site-packages
python3 setup.py install --prefix ~/.local
sudo cp udev/50-ds4drv.rules /etc/udev/rules.d/
sudo udevadm control --reload
sudo udevadm trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment