/
Main.sh
executable file
·118 lines (96 loc) · 4.11 KB
/
Main.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
# Simple setup.sh for configuring Ubuntu 12.04 LTS Workstation
cd $HOME
clear
echo "******************************************************************************"
echo -e "\e[1;92mUnInstalling Ubuntu nonsense Packages: Empathy, Zeitgeist\e[0m"
echo "******************************************************************************"
sleep 5
sudo apt-get -y purge empathy*
sudo apt-get -y purge zeitgeist
sudo apt-get -y purge zeitgeist-ssh core
sudo apt-get -y purge whoopsie
sudo apt-get -y autoremove
clear
echo "******************************************************************************"
echo -e "\e[1;92mInstalling Dotfiles screenrc, bash_profile, bashrc, bashrc_custom, emacs.d\e[0m"
echo "******************************************************************************"
sleep 5
#install dotfiles as well
ln -sb ~/setup_ubuntu/dotfiles/.screenrc ~/.
ln -sb ~/setup_ubuntu/dotfiles/.bash_profile ~/.
ln -sb ~/setup_ubuntu/dotfiles/.bashrc ~/.
ln -sb ~/setup_ubuntu/dotfiles/.bashrc_custom ~/.
ln -sf ~/setup_ubuntu/dotfiles/.emacs.d ~/.
clear
echo "******************************************************************************"
echo -e "\e[1;92mInstalling Desktop Environments: Lubuntu\e[0m"
echo "******************************************************************************"
sleep 10
sudo apt-get install -y lubuntu-desktop
clear
echo "******************************************************************************"
echo -e "\e[1;92mInstalling General Packages: SSH, GIT, CURL, EMACS\e[0m"
echo "******************************************************************************"
sleep 10
echo -e "\e[1;92m*******Installing SSH*******\e[0m"
sudo apt-get install -y openssh-server
echo -e "\e[1;92m*******Installing VNC server*******\e[0m"
sudo apt-get install -y vnc4server
echo -e "\e[1;92m*******Installing GIT*******\e[0m"
sudo apt-get install -y git
echo -e "\e[1;92m*******Installing CURL*******\e[0m"
sudo apt-get install -y curl
echo -e "\e[1;92m*******Installing EMACS*******\e[0m"
sudo apt-get install -y emacs
echo -e "\e[1;92m*******Installing NODEJS*******\e[0m"
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get install -y nodejs npm
# Install rlwrap to provide libreadline features with node
# See: http://nodejs.org/api/repl.html#repl_repl
sudo apt-get install -y rlwrap
# Install ws websocket and jshint to allow checking of JS code within emacs
npm config set registry http://registry.npmjs.org/
npm install ws
sudo npm install -g jshint
echo -e "\e[1;92m*******Installing ImageEditing Pinta*******\e[0m"
sudo apt-get install -y pinta
echo -e "\e[1;92m*******Installing exfat-fuse*******\e[0m"
sudo apt-add-repository ppa:relan/exfat
sudo apt-get -y update
sudo apt-get install -y fuse
sudo apt-get install -y exfat-fuse
clear
echo "******************************************************************************"
echo -e "\e[1;92mInstalling Work Packages: PYTHON, OPENCV, DJANGO, OPENTOK\e[0m"
echo "******************************************************************************"
sleep 5
echo -e "\e[1;92m*******Installing PYTHON*******\e[0m"
sudo apt-get install -y git python-dev python-pip ntp
sudo pip install psutil
echo -e "\e[1;92m*******Installing OpenCV*******\e[0m"
sudo apt-get install -y libopencv-dev
echo -e "\e[1;92m*******Installing DJANGO*******\e[0m"
sudo pip install django
echo -e "\e[1;92m*******Installing OPENTOK*******\e[0m"
sudo pip install opentok
echo -e "\e[1;92m*******Installing Crazyflie API*******\e[0m"
sudo apt-get -y install python2.7 python-usb python-pygame python-qt4
echo -e "\e[1;92m*******Installing PyUserInput*******\e[0m"
sudo pip install PyUserInput
sudo apt-get -y install python-xlib
bash ~/setup_ubuntu/ros.sh
#bash ~/setup_ubuntu/ffmpeg.sh
clear
echo "******************************************************************************"
echo -e "\e[1;92mPulling GIT repositories\e[0m"
echo "******************************************************************************"
sleep 5
#Setup git
git config --global core.editor "nano"
git config --global user.name "$(whoami)"
git config --global user.email "$(whoami)@no-reply.com"
### Pull sources
cd $HOME
# git clone
echo "Install Google chrome yourself"