-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigureUbuntu
101 lines (85 loc) · 3.52 KB
/
ConfigureUbuntu
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
#!/bin/bash
#
# Install recommendations and notes for Ubuntu 14.04
#
####################
### Repositories ###
####################
## Chrome
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
####################
###### Update ######
####################
sudo apt-get update
####################
### Remove bloat ###
####################
sudo apt-get remove --purge --ignore-missing gbrainy aisleriot gbrainy gnome-games-* gnome-sudoku gnomine libgme0 mahjongg bogofilter* empathy* thunderbird* remmina gwibber* tomboy avahi-daemon whoopsie samba* modemmanager rhythmbox* activity-log-manager-common python-zeitgeist zeitgeist-core deja-dup pidgin* apport*
####################
###### Install #####
####################
## GCC and G++
sudo apt-get install build-essential gfortran -y
sudo apt-get install gcc-4.7 gcc-4.8 gcc-4.9 gcc-5 g++-4.7 g++-4.8 g++-4.9 g++-5 -y
# Tell update-alternatives about our compilers
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 60
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 70
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 80
# Use this to switch compilers:
# sudo update-alternatives --config gcc
## Clang 3.5
sudo apt-get install clang-3.5 clang-3.6 clang-3.7 clang-3.8 clang-3.9 clang-4.0 -y
# MPI
sudo apt-get install autotools-dev openmpi-bin libopenmpi-dev -y
# C/C++ Libraries
sudo apt-get install cmake libboost-all-dev libfftw3-dev -y
# Python
sudo apt-get install python-dev ipython python-setuptools python-pip python-scipy python-numpy python-matplotlib python-mrjob python-mpi4py python-cheetah python-opencv python-docutils -y
sudo easy_install StarCluster
# Java
sudo apt-get install openjdk-7-jdk -y
# Latex
sudo apt-get install texlive texlive-full texlive-latex-base texlive-latex-extra texstudio -y
# Chrome and Network
sudo apt-get install google-chrome-stable openssh-server sshfs autossh skype -y
# Version Control
sudo apt-get install git mercurial gitk colordiff -y
# Editors
sudo apt-get install emacs vim -y
# Visualization
sudo apt-get install libglew-dev freeglut3 freeglut3-dev -y
# Dropbox
sudo apt-get install nautilus-dropbox -y
# VLC
sudo apt-get install vlc -y
# Gimp
sudo apt-get install gimp gimp-plugin-registry -y
# Proprietary
sudo apt-get install ubuntu-restricted-extras -y
# CUDA
sudo apt-get install linux-headers-$(uname -r)
sudo dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
####################
##### Upgrade ######
####################
sudo apt-get upgrade -y
####################
##### Configure ####
####################
# Git
git config --global user.name "Cris Cecka"
git config --global user.email "[email protected]"
git config --global core.editor 'emacs -nw'
git config --global color.ui true
# Custom commands and improvements
echo -e "\n## Custom commands and aliases\n" >> ~/.bashrc
echo -e "\n# Grep with line numbers, but only if not in a pipeline\nfunction grep() {\n\tif [[ -t 1 ]]; then\n\t\tcommand grep -n \"\$@\"\n\telse\n\t\tcommand grep \"\$@\"\n\tfi\n}" >> ~/.bashrc
echo -e "# Colorize diff" >> ~/.bashrc
echo -e "alias diff='colordiff'" >> ~/.bashrc
# Copy emacs configurations
cp .emacs ~/
cp -r .emacs.d ~/