-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·156 lines (139 loc) · 4.87 KB
/
setup.sh
File metadata and controls
executable file
·156 lines (139 loc) · 4.87 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
install_googlechrome() {
wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
apt-get -f install -y
rm ~/google-chrome-stable_current_amd64.deb
}
install_git() {
apt install -y git
git config --global user.name "nobodyme"
git config --global user.email "naveenkumarspa@gmail.com"
}
install_fontrendering() {
# for better font rendering
add-apt-repository ppa:no1wantdthisname/ppa
apt-get update
apt-get install -y fontconfig-infinality
# Infinality config here
bash /etc/fonts/infinality/infctl.sh setstyle linux
chmod a+w /etc/profile.d/infinality-settings.sh
# search for USE_STYLE in the below file to set it
xdg-open /etc/profile.d/infinality-settings.sh
}
install_java() {
apt install -y openjdk-9-jre-headless openjdk-9-jdk-headless
}
install_sublime() {
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list
apt-get update
apt-get install sublime-text
}
install_python() {
# Might wanna look at this as well for future tasks https://askubuntu.com/questions/244641/how-to-set-up-and-use-a-virtual-python-environment-in-ubuntu
apt install -y virtualenv
apt install -y python3-pip
apt install -y python-pip
# useful for vim plugins as well
apt-get install -y build-essential cmake
apt-get install -y python3-dev
apt-get install -y python3-setuptools
# mpg123 dependencies -- used in a pet project
apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
}
install_vim() {
# vim
apt install -y vim
# downloads vundle plugin manager for vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
# fetch uploaded .vimrc
cp .vimrc ~/.vimrc
# install all plugins
vim +PluginInstall +qall
# vim plugins requirements
install_python
# install youcomplete me plugin syntax highlighter
cd ~/.vim/bundle/YouCompleteMe
./install.py --all
}
install_cplus() {
apt-get install -y g++
# for C++ to work
apt-get install -y libc6-dev
}
install_chromedriverselenium() {
# Install ChromeDriver.
wget -N http://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip -P ~/
unzip ~/chromedriver_linux64.zip -d ~/
rm ~/chromedriver_linux64.zip
mv -f ~/chromedriver /usr/local/bin/chromedriver
chown root:root /usr/local/bin/chromedriver
chmod 0755 /usr/local/bin/chromedriver
# Install Selenium.
wget -N http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar -P ~/
mv -f ~/selenium-server-standalone-3.4.0.jar /usr/local/bin/selenium-server-standalone.jar
chown root:root /usr/local/bin/selenium-server-standalone.jar
chmod 0755 /usr/local/bin/selenium-server-standalone.jar
}
install_tmux() {
apt-get install -y tmux
cp .tmux.conf ~/.tmux.conf
source ~/.bashrc
}
install_mactheme() {
# source - http://www.linuxandubuntu.com/home/macbuntu-transform-ubuntu-1604-to-mac-os-x
add-apt-repository -y ppa:noobslab/macbuntu
apt-get update
apt-get install -y macbuntu-os-icons-lts-v7
apt-get install -y macbuntu-os-ithemes-lts-v7
# mac type launcher
# apt-get install slingscold
apt-get install -y plank
apt-get install -y macbuntu-os-plank-theme-lts-v7
# changing desktop name
cd && wget -O Mac.po http://drive.noobslab.com/data/Mac/change-name-on-panel/mac.po
cd /usr/share/locale/en/LC_MESSAGES;
msgfmt -o unity.mo ~/Mac.po;rm ~/Mac.po;cd
# changing side bar icon
wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/launcher-logo/apple/launcher_bfb.png
mv /usr/share/unity/icons/launcher_bfb.png /usr/share/unity/icons/launcher_bfb_ubuntu.png
mv launcher_bfb.png /usr/share/unity/icons/
apt-get install unity-tweak-tool compiz compizconfig-settings-manager
}
install_all() {
install_googlechrome
install_sublime
install_git
install_vim
install_java
install_chromedriverselenium
install_cplus
install_tmux
install_mactheme
install_fontrendering
}
install_minimal() {
install_git
install_sublime
install_python
install_cplus
install_tmux
}
for i in "$@"
do
case $i in
-minimal) install_minimal;;
-chrome) install_googlechrome;;
-git) install_git;;
-sublime) install_sublime;;
-c++) install_cplus;;
-vim) install_vim;;
-java) install_java;;
-python) install_python;;
-better-font) install_fontrendering;;
-mac-theme) install_mactheme;;
-chromedriverselenium) install_chromedriverselenium;;
-all) install_all;;
*) echo "wrong argument" exit 1;;
esac
done