forked from bitcraze/crazyflie-lib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_linux.sh
executable file
·20 lines (18 loc) · 969 Bytes
/
setup_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Install the Crazyflie PC client and set up permissions so that it can be used
# by the current user immediately
# Caution! This installs the Crazyflie PC client as root to your Python
# site-packages directory. If you wish to install it as a normal user, use the
# instructions in the documentation at
# https://www.bitcraze.io/documentation/repository/crazyflie-clients-python/master/
# After installation, the Crazyflie PC client can be started with `cfclient`.
# @author Daniel Lee 2013
# Allow user to use USB radio without root permission
groupadd plugdev
usermod -a -G plugdev $USER
echo SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"1915\", ATTRS{idProduct}==\"7777\", \
MODE=\"0664\", GROUP=\"plugdev\" > /etc/udev/rules.d/99-crazyradio.rules
echo SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0483\", ATTRS{idProduct}==\"5740\", \
MODE=\"0664\", GROUP=\"plugdev\" > /etc/udev/rules.d/99-crazyflie.rules
# Install Crazyflie PC client
python3 setup.py install