forked from MiteshShah/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathubuntu-install.sh
executable file
·105 lines (82 loc) · 3.22 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
#!/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.list' || OwnError "Unable To Add Google Repository :("
#Skype Repository
#clear
#echo "Install Repository For Skype..."
#sudo add-apt-repository ppa:upubuntu-com/chat || OwnError "Unable To Add Skype Repository :("
#XAMPP Repository
#clear
#echo "Install Repository For XAMPP..."
#sudo add-apt-repository ppa:upubuntu-com/web || OwnError "Unable To Add XAMP Repository :("
#Shutter Repository
clear
echo "Install Repository For Shutter..."
sudo add-apt-repository 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"
sudo apt-get -y install git-core openssh-server shutter vim vlc curl filezilla google-chrome-stable skype openjdk-7-jre icedtea-7-plugin openjdk-7-jdk || OwnError "Installation Failed :("
#Install Netbeans
clear
echo "Downloading Netbeans..."
wget -c http://dlc.sun.com.edgesuite.net/netbeans/7.3/final/bundles/netbeans-7.3-php-linux.sh || OwnError "Unable to download Netbeans :("
chmod u+x netbeans-7.3-php-linux.sh
echo "Installing Netbeans..."
sudo bash netbeans-7.3-php-linux.sh || OwnError "Unable to install Netbeans :("
clear
echo "All Task Susscessfully Finished........"
#Install Web Server
curl -sL rt.cx/ee | sudo bash || OwnError "Unable to clone ee :("
source /etc/bash_completion.d/ee || OwnError "Unable to source ee autocompletion :("
ee system install all || OwnError "Unable to install ee system install all :("
#clear
#echo "Select The Webserver You Want To Install..."
#OPTIONS=$(echo "LAMP XAMP Nginx")
#select OPT in $OPTIONS;
#do
# case $OPT in
# *)
# echo "You Selected $REPLY) $OPT"
# break
# ;;
# esac
#done
#if [ $REPLY -eq 1 ]
#then
# clear
# echo "Installing LAMP Server"
# sudo apt-get -y install apache2 php5 libapache2-mod-php5 php5-mysql mysql-server mysql-client || OwnError "LAMP Server Installation Failed :("
#elif [ $REPLY -eq 2 ]
#then
# clear
# echo "Installing XAMPP Server"
# sudo apt-get -y install xampp || OwnError "XAMPP Server Installation Failed :("
#elif [ $REPLY -eq 3 ]
#then
# clear
# echo "Installing Nginx Server"
# sudo apt-get -y install nginx php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear php5-dev php5-imap php5-mcrypt mysql-server mysqltuner || OwnError "Nginx Server Installation Failed :("
#fi