-
Notifications
You must be signed in to change notification settings - Fork 5
/
bootstrap.sh
executable file
·37 lines (32 loc) · 1.12 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set +x
set -e
sudo apt install -y libopencv-*
sudo apt install -y libboost-dev
sudo apt install -y cmake
sudo apt install -y python-numpy
sudo apt install -y python-opencv
sudo apt install -y arduino
sudo apt install -y python-pip
sudo apt install -y gnuplot
sudo apt install -y python-tifffile python-pillow python-matplotlib
sudo -E pip install gnuplotlib readchar
echo "Now adding user to all the cool groups"
sudo gpasswd -a $USER dialout
if [ ! -f /etc/udev/rules.d/40-pgr.rules ]; then
echo "Configuring for camera"
sudo bash ./PointGreyCamera/external/spin-conf
fi
sudo mkdir -p /mnt/ramdisk
sudo chmod a+w /mnt/ramdisk
#echo "You may like mount a slice of ram to /mnt/ramdisk"
#echo "Something like the following needs to be added to /etc/fstab"
#printf "\ttmpfs /mnt/ramdisk tmpfs nosuid,size=1024M 0 0\n"
#printf "To make it permanent\n"
LINE="tmpfs /mnt/randisk tmpfs nosuid,size=1024M 0 0"
if grep -Fxq "$LINE" /etc/fstab; then
echo "RAMDISK already configured in /etc/fstab"
else
echo "$LINE" | sudo tee --append /etc/fstab
fi
echo "All done. You may like to reboot/logout"