Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
5.6 kB
0
Indexable
Never
#!/bin/bash

# Update System
# Install prerequisites

echo 'Installing prerequisites...'
sudo apt-get install -y curl 
sudo apt-get install -y autoconf
sudo apt-get install -y bison
sudo apt-get install -y build-essential
sudo apt-get install -y libssl-dev
sudo apt-get install -y libyaml-dev
sudo apt-get install -y libreadline6
sudo apt-get install -y libreadline6-dev
sudo apt-get install -y libncurses5-dev
sudo apt-get install -y zlib1g
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y sqlite3
sudo apt-get install -y libxslt-dev
sudo apt-get install -y libxml2-dev
sudo apt-get install -y libsqlite3-dev
sudo apt-get install -y python-software-properties
sudo apt-get install -y libcurl3
sudo apt-get install -y libcurl3-gnutls
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y ubuntu-restricted-extras
sudo apt-get install -y ssh
sudo apt-get install -y vim
sudo apt-get install -y wget
sudo apt-get install -y zip
sudo apt-get install -y unzip
sudo apt-get install -y mcrypt 

echo 'Adding repository'
sudo add-apt-repository -y ppa:noobslab/apps
sudo add-apt-repository -y ppa:noobslab/themes
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" 
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 
sudo add-apt-repository -y ppa:wallch/wallch-4.0
sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:nilarimogard/webupd8
sudo add-apt-repository -y ppa:cwchien/gradle
sudo add-apt-repository -y ppa:webupd8team/popcorntime
sudo add-apt-repository -y ppa:numix/ppa
sudo add-apt-repository -y ppa:inkscape.dev/stable
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
sudo add-apt-repository -y ppa:no1wantdthisname/ppa

sudo apt-get update

sudo apt-get install -y ttf-mscorefonts-installer

wget http://dl.dropbox.com/u/26209128/mac_fonts.tar.gz
tar zxvf mac_fonts.tar.gz
sudo mv fonts /usr/share/fonts/
sudo fc-cache -f -v


#TLP
echo 'Installing TLP...'

sudo apt-get install -y curl
sudo apt-get install -y tlp tlp-rdw tp-smapi-dkms acpi-call-tools 
sudo tlp start

#Java
echo 'Installing Java 8'
sudo apt-get install -y oracle-java8-installer --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"
java -version
sleep 3
#NodeJS
echo 'Installing NodeJS'
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs
echo 'Installing Maven'
sudo wget http://mirror.reverse.net/pub/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
tar -zxf apache-maven-3.2.5-bin.tar.gz
sudo cp -R apache-maven-3.2.5 /usr/local 
sudo ln -s /usr/local/apache-maven-3.2.5/bin/mvn /usr/bin/mvn 
mvn -v
sleep 3
echo 'Installing Gradle'
sudo apt-get install -y gradle-2.4
sleep 3

#Themes
echo 'Installing themes'

sudo apt-get install -y ambiance-colors radiance-colors
sudo apt-get install -y numix-icon-theme
sudo apt-get install -y unity-webapps-preview
#Video and stuff
sudo apt-get install -y vlc
#Gimp
echo 'Installing Gimp'

sudo apt-get install -y gimp
sleep 3
echo 'Installing Inkscape'

sudo apt-get install -y inkscape
sleep 3
#Install Chrome
echo 'Installing Chrome'
if [[ $(getconf LONG_BIT) = "64" ]]
then
	echo "64bit Detected" &&
	echo "Installing Google Chrome" &&
	wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
	sudo dpkg -i google-chrome-stable_current_amd64.deb &&
	rm -f google-chrome-stable_current_amd64.deb
else
	echo "32bit Detected" &&
	echo "Installing Google Chrome" &&
	wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
	sudo dpkg -i google-chrome-stable_current_i386.deb &&
	rm -f google-chrome-stable_current_i386.deb
fi

sleep 3
echo 'Installing Unity Tweak Tool'
sudo apt-get install -y unity-tweak-tool
sleep 3
sudo apt-get install -y i8kutils

echo 'Downloading TeamViwer'
wget http://downloadus2.teamviewer.com/download/teamviewer_linux_x64.deb

echo 'Installing TeamViwer'
sleep 3
sudo dpkg -i teamviewer_linux_x64.deb
sleep 3
echo 'Installing Transport HTTPS'
sleep 3
sudo apt-get install -y apt-transport-https
sleep 3
echo 'Adding docker key'
sleep 3
sudo apt-key -y adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sleep 3
echo 'Installng CPUFreq'
sudo apt-get install -y indicator-cpufreq
sleep 3
sudo apt-get install -y psensor
sleep 3
echo 'Removing shop things from indicator'
sleep 3
sudo gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
sleep 3
echo 'Enabling minimize windows on launcher'
sleep 3
sudo gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
sleep 3
echo 'Installing Popcorn Time'
sleep 3
sudo apt-get install -y popcorn-time
sleep 3

echo 'Installing Skype and Fixes'
sleep 3
sudo apt-get install -y sni-qt:i386
sleep 3
sudo apt-get install -y skype
sleep 3
sudo apt-get install -y fontconfig-infinality
sleep 3
sleep 3
sudo apt-get install -y mac-ithemes-v3
sleep 3
sudo apt-get install -y mac-icons-v3
sleep 3
sudo apt-get install -y indicator-synapse
sleep 3
sudo apt-get install -y thunderbird
sleep 3
sudo apt-get install sublime-text-installer
sleep 3
sudo apt-get -y upgrade




#Ending...
sleep 3