Skip to content

Instantly share code, notes, and snippets.

@frazerm
Last active September 21, 2016 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frazerm/a023abe2a07f64164025 to your computer and use it in GitHub Desktop.
Save frazerm/a023abe2a07f64164025 to your computer and use it in GitHub Desktop.
A script to install everything I need on a fresh installation of ubuntu
DPkg::Post-Invoke {"sudo sed -i 's/Exec=\/usr\/bin\/google-chrome-stable/Exec=\/usr\/bin\/google-chrome/g' /usr/share/applications/google-chrome.desktop";};

to download and run the script, run the following in your terminal:

curl -s https://gist.githubusercontent.com/frazerm/a023abe2a07f64164025/raw/ubuntu_setup.sh | sh

#!/bin/bash
sudo apt-get install software-properties-common python-software-properties
sudo apt-get update
echo $'\nadding repos:'
echo $'\n-------------\n'
echo $'\ngoogle chrome stable'
wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O - | 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 $'\nSublime text 3'
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
echo $'\nelementary Tweaks'
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
echo $'\nOracle java 7\n'
sudo add-apt-repository -y ppa:webupd8team/java
echo $'\ninstalling apps'
echo $'\n---------------'
echo $'
google chrome stable
vim
sublime text 3
zsh
oracle jdk 7
git
meld
keepass2'
sudo apt-get update
sudo apt-get install -y google-chrome-stable sublime-text-installer git meld keepass2 vim zsh xdotool elementary-tweaks
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
sudo apt-get install -y oracle-java7-installer
echo $'\nInstalling dev stuff\n'
sudo apt-get install -y python2.7-dev python-pip redis-server
echo $'\nFixing pyXML\n'
sudo sed -i '1s/^/#define HAVE_MEMMOVE 1\n/' /usr/include/python2.7/pyconfig.h
echo $'\nAdding Chrome icon fix\n'
sudo wget https://gist.githubusercontent.com/frazerm/a023abe2a07f64164025/raw/chrome_fix -O /etc/apt/apt.conf.d/00chrome_fix
echo $'\nInstalling Dropbox\n'
sudo apt-get install python-gpgme
wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2015.02.12_amd64.deb -O dropbox.deb
sudo dpkg -i dropbox.deb
rm dropbox.deb
echo $'\nCreating sublime text terminal command\n'
sudo ln -s opt/sublime_text/sublime_text /bin/sublime
sudo ln -s opt/sublime_text/sublime_text /bin/subl
echo $'\nInstalling nvm\n'
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.27.1/install.sh | SHELL=zsh bash
source ~/.profile
nvm alias default stable
echo $'\nInstalling source code pro font\n'
sudo mkdir -p /usr/share/fonts/truetype/adobe-fonts/source-code-pro
sudo git clone -b release https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/truetype/adobe-fonts/source-code-pro
echo $'\nInstalling source sans pro font\n'
sudo mkdir -p /usr/share/fonts/truetype/adobe-fonts/source-sans-pro
sudo git clone -b release https://github.com/adobe-fonts/source-sans-pro.git /usr/share/fonts/truetype/adobe-fonts/source-sans-pro
fc-cache -f -v /usr/share/fonts/truetype/adobe-fonts
sudo chown $USER:$USER -R ~/.dropbox
DISPLAY= yes | dropbox start -i &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment