-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathubuntu-install.sh
executable file
·108 lines (83 loc) · 3.32 KB
/
ubuntu-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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash
#Error Handling
OwnError()
{
#Redirect All STDIN 2 STDOUT
echo $@ >&2
exit 1
}
# Unhide Startup
sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop
#Update The Cache
clear
echo "Updating Cache..."
sudo apt-get update || OwnError "Updating Cache Failed :("
# Install Apt-Add-Repository Python Tool
sudo apt-get install python-software-properties || OwnError "Unable To Install Python Software Properties :("
#Google Repository
clear
echo "Install Repository For Google..."
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - || OwnError "Unable To Fetch Google Repository :("
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' || OwnError "Unable To Add Google Repository :("
#Opera Repository
clear
echo "Install Repository For Opera..."
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list' || OwnError "Unable To Fetch Opera Repository :("
sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
#Skype Repository
clear
echo "Install Repository For Skype..."
sudo sh -c 'echo "deb http://archive.canonical.com/ubuntu/ $(lsb_release -sc) partner" >> /etc/apt/sources.list.d/canonical_partner.list' || OwnError "Unable To Add Skype Repository :("
#NodeJs Repository
clear
echo "Install Repository For NodeJs..."
sudo add-apt-repository -y ppa:chris-lea/node.js || OwnError "Unable To NodeJs Repository :("
#Shutter Repository
clear
echo "Install Repository For Shutter..."
sudo add-apt-repository -y ppa:shutter/ppa || OwnError "Unable To Add Shutter Repository :("
#Update The Cache
clear
echo "Updating Cache..."
sudo apt-get update || OwnError "Updating Cache Failed :("
#Install Common Softwares
clear
echo "Installing Git Vim Filezilla Google-Chrome Skype Oracle-Jdk Opera"
sudo apt-get -y install git-core openssh-server shutter pv vim vlc curl filezilla google-chrome-stable skype sni-qt sni-qt:i386 libasound2-plugins:i386 openjdk-7-jre icedtea-7-plugin openjdk-7-jdk diodon diodon-plugins ubuntu-restricted-extras p7zip-full p7zip-rar opera nautilus-open-terminal nodejs libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev ruby-dev ruby-sass rubygems ruby2.2.0 || OwnError "Installation Failed :("
#Install SASS
clear
echo "Install SASS"
sudo gem install sass
#Install Compass
clear
echo "Install Compass"
sudo gem install compass
#Install Foundation
clear
echo "Install Foundation"
sudo gem install foundation
#Install SASS
clear
echo "Install Zurb Foundation"
sudo gem install zurb-foundation
#Install Grunt CLI
clear
echo "Install Grunt"
sudo npm install -g grunt-cli
#Install Bower
clear
echo "Install Bower"
sudo npm install -g bower
#Install Netbeans
clear
echo "Downloading Netbeans..."
wget -c http://dlc-cdn.sun.com/netbeans/8.0.2/final/bundles/netbeans-8.0.2-php-linux.sh || OwnError "Unable to download Netbeans :("
chmod u+x netbeans-8.0.2-php-linux.sh
echo "Installing Netbeans..."
sudo bash netbeans-8.0.2-php-linux.sh || OwnError "Unable to install Netbeans :("
clear
#Install Web Server
wget -qO ee rt.cx/ee && sudo bash ee || OwnError "Unable to clone ee :("
source /etc/bash_completion.d/ee || OwnError "Unable to source ee autocompletion :("
echo
echo "All Task Susscessfully Finished........"