-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·91 lines (65 loc) · 2.27 KB
/
install.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
# Ubuntu Section #
echo "This is Going to Install:
Browser : Google Chrome
Editors : Sublime Text, Atom
Language: NodeJs, Apache + PHP, Oracle Java, Ruby
Media : VLC, Qbittorrent, Spotify
Tools : Git, Essential Build Tools, Git Cola, Zip, Unzip
"
UBUNTU="false"
read -p "Do you Want to Continue? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
UBUNTU="true"
fi
# Node Section #
NODE="false"
echo "Install Node Packages:
Nodemon, yarn, less, eslint, babel-cli, webpack, grunt, gulp, compass, pm2
"
read -p "would you like to Continue? " -n 1 -r
echo
if [ $REPLY == 'y' ]
then
NODE="true"
else
exit
fi
# Execution Section #
if [ $UBUNTU == "true" ]
then
echo "Adding PPAs"
echo "Sublime"
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
echo "Chrome"
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'
echo "Node"
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
echo "Oracle Java 8"
sudo add-apt-repository -y ppa:webupd8team/java
echo "TimeShift"
sudo apt-add-repository -y ppa:teejee2008/ppa
echo "Spotify"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
echo "Updating source List"
sudo apt-get update
echo "Accept Java License Agreement"
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
echo "Installing Apps"
sudo apt-get -y install google-chrome-stable sublime-text-installer git apache2 nodejs vlc ruby
sublime-text-installer
sudo apt-get -y install php gnome-tweak-tool qbittorrent gnome-shell spotify atom git-cola build-essential
sudo apt-get -y install zip unzip
sudo apt-get -y purge openjdk*
sudo apt-get -y install oracle-java8-installer timeshift
fi
if [ $NODE == "true" ]
then
sudo npm install -g nodemon yarn less webpack grunt gulp eslint babel-cli pm2
sudo apt get install ruby
gem install compass
fi