-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_pi.sh
executable file
·36 lines (28 loc) · 921 Bytes
/
setup_pi.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
#!/bin/bash
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install python-dev python-pip nodejs build-essential
sudo apt-get install vim screen
echo "syntax on" >> ~/.vimrc
echo "tabstop=4 shiftwidth=4" >> ~/.vimrc
sudo pip install --upgrade pip
sudo pip install virtualenv virtualenvwrapper
mkdir ~/.virtualenvs
export WORKON_HOME=~/.virtualenvs
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc
mkvirtualenv bear
pip install python-twitter textblob RPi.GPIO pytz
python -m textblob.download_corpora
deactivate
#sudo npm cache clean -f
#sudo npm install -g n
#sudo n stable
#sudo ln -sf /usr/local/n/versions/node/*/bin/node /usr/bin/nodejs
#npm install twitter
cd ~/Downloads
wget -O Hamachi.tgz https://www.vpn.net/installers/logmein-hamachi-2.1.0.174-armhf.tgz
tar -xvf Hamachi.tgz
cd logmein*
sudo ./install.sh
sudo hamachi login
sudo hamachi set-nick bear-o-meter