This repository has been archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
install-vagrant-deps.sh
51 lines (40 loc) · 2 KB
/
install-vagrant-deps.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
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6D1D8367A3421AFB
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BB92C09DB82666C
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E601AAF9486D3664
# fix broken urllib3 or some ssl stuff diesn't work
sudo apt-get install -y --force-yes python-pip
sudo pip install urllib3[secure]
sudo pip install bcrypt
sudo pip install pynacl
# need to update pip and setuptools to newer version before cryptography will install:
sudo pip install --upgrade pip
sudo pip install --upgrade setuptools
sudo apt-get install -y --force-yes libssl-dev
# get a specificversion of this, as newer ones don't work on 14.04:
#sudo pip install cryptography
sudo pip install cryptography==2.0.3
# fix broken python2.7.x by moving it forward to something newer than 2.7.8:
sudo add-apt-repository -y ppa:fkrull/deadsnakes-python2.7
sudo apt-get -y --force-yes update
sudo apt-get install -y --force-yes python2.7 python2.7-dev
## get deps for pillow, and note that we get Pillow from easy_install instead of 'pip' or apt-get becuase this method actually works.
#sudo apt-get install -y python-dev python-setuptools
#sudo apt-get install -y --force-yes libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
#sudo easy_install Pillow
sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main' -y
sudo add-apt-repository 'ppa:terry.guo/gcc-arm-embedded' -y
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install tup freetype* python-pip python-dev gcc-arm-none-eabi git
sudo apt-get --assume-yes install libffi*
sudo apt-get --assume-yes install ansible
ssh-keyscan -t rsa github.com
ssh-keyscan -t rsa bitbucket.org
#sudo pip install --upgrade pip
#sudo pip install pillow
#echo ""
#echo To build the artoo stm32 binary enter the VM with:
#echo vagrant ssh
#echo Then type this:
#echo cd /vagrant
#echo tup