-
Notifications
You must be signed in to change notification settings - Fork 0
/
extras.sh
executable file
·31 lines (27 loc) · 1020 Bytes
/
extras.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
#!/bin/bash
# Determine the platform we're working with
platform=`uname -m`
if [ "$platform" == "i686" ]; then
echo "32 Bit OS Detected"
elif [ "$platform" == "x86_64" ]; then
echo "64 Bit OS Detected"
else
echo "This script is only meant for x86 and x64"
exit 0
fi
add-apt-repository "deb http://linux.dropbox.com/ubuntu maverick main" > /dev/null
aptitude install gdebi -y > /dev/null
echo -e '* Installing Extras. Press Enter to Continue...\n'
read dummy
echo -e '* Installing Dropbox\n'
aptitude -y install nautilus-dropbox > /dev/null
echo -e '* Installing Google Chrome\n'
aptitude -y install libcurl3 xdg-utils > /dev/null
if [ "$platform" == "i686" ]; then
wget -q https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_i386.deb
gdebi -n google-chrome-stable_current_i386.deb > /dev/null
elif [ "$platform" == "x86_64" ]; then
wget -q https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
gdebi -n google-chrome-stable_current_amd64.deb > /dev/null
fi
exit 0