Skip to content

Instantly share code, notes, and snippets.

@vjm
Last active August 29, 2015 14:16
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 vjm/9a41042ec1b6f53042df to your computer and use it in GitHub Desktop.
Save vjm/9a41042ec1b6f53042df to your computer and use it in GitHub Desktop.
Ubuntu Setup

#Ubuntu Setup

###Prerequisites:

  • Make sure you're on the employee network or VPN!

##Run this to install your development environment:

curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/devops_setup.sh | sudo bash

###Afterwards

  • Restart in order to get docker working.

##Run this if you want Vince's Ubuntu preferred customizations:

curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/ubuntu_setup.sh | sudo bash

##Run this to disable n wifi:

curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/wifi_disable_n.sh | sudo bash

curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_java.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_sublime_text.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_virtualbox.sh | sudo bash
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -P chefdk
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_vagrant.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_docker.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_git_gui.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_nodejs.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_adb.sh | sudo bash
[Desktop Entry]
Version=1.10.0
Name=GitEye
Comment=GitEye
Type=Application
Categories=Development;IDE;
Exec=/opt/GitEye/GitEye
Terminal=false
StartupNotify=true
Icon=/opt/GitEye/icon.xpm
Name[en_US]=GitEye
#add-apt-repository ppa:phablet-team/tools && apt-get update
#apt-get install android-tools-adb android-tools-fastboot
echo 'SUBSYSTEM=="usb", ATTR{22b8}=="0bb4", MODE="0666", GROUP="plugdev"' > /etc/udev/rules.d/51-android.rules
chmod a+r /etc/udev/rules.d/51-android.rules
sudo apt-get install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
apt-get install -y arduino
[ -e /usr/lib/apt/methods/https ] || {
apt-get update
apt-get install apt-transport-https
}
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sh -c "echo deb https://get.docker.com/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
apt-get update
apt-get install -y lxc-docker
gpasswd -a ${USER} docker
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
sudo apt-get install gimp gimp-data gimp-plugin-registry gimp-data-extras
apt-get install -y gitg
apt-get install -y git-cola
apt-get install -y giggle
# wget -O - https://raw.githubusercontent.com/alberthier/git-webui/master/install/installer.sh | bash
sudo -H npm install -g ungit
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_giteye.sh | sudo bash
cd /opt
wget -O - http://www.collab.net/servlets/OCNDirector?id=GitEye1.10Linux64
ln -s /opt/GitEye-1.10.0-linux.x86_64 /opt/GitEye
ln -s /opt/GitEye/GitEye /bin/GitEye
curl https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/giteye.desktop > /usr/share/applications/giteye.desktop
apt-get install -y openjdk-7-jdk
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_wallpapers.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_archive_utils.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_vlc.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_gimp.sh | sudo bash
curl -sL https://deb.nodesource.com/setup | bash -
apt-get install -y npm nodejs
ln -s /usr/bin/nodejs /usr/bin/node
apt-get install -y python-software-properties
add-apt-repository -y ppa:cernekee/ppa
apt-get update
apt-get install -y stoken libstoken-dev
# http://sourceforge.net/p/stoken/wiki/Home/
# http://ecopts.mot.com/SecurID/
# stoken import --file $TOKEN_FILE_NAME
sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list'
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
apt-get update
apt-get install -y --force-yes spotify-client
add-apt-repository -y ppa:webupd8team/sublime-text-3
apt-get update
apt-get install sublime-text-installer
cd .config/sublime-text-3/Installed\ Packages/
rm *Package*Control*
wget https://packagecontrol.io/Package\ Control.sublime-package
chown vincem:vincem Package\ Control.sublime-package
mkdir -p ~/Desktop/tmp
cd ~/Desktop/tmp
rm *.deb*
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
dpkg -i vagrant_1.7.2_x86_64.deb
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-omnibus
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list"
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y virtualbox-4.3 dkms
sudo apt-get install vlc
sudo apt-get install libxine1-ffmpeg mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0
sudo apt-get install ubuntu-wallpapers*
sed -i 's/# Option "AreaBottomEdge" "82%"/ Option "AreaBottomEdge" "82%"/' /usr/share/X11/xorg.conf.d/50-synaptics.conf
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/setup_touchpad.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_rsa.sh | sudo bash
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/install_spotify.sh | sudo bash
# http://askubuntu.com/questions/599477/lenovo-x1-carbon-2015-3rd-gen-20-bs-trackpoint-clickpad-and-wifi
echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf
update-initramfs -u
# http://ubuntuforums.org/showthread.php?t=2261475&p=13211316#post13211316
cd /tmp
wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.18.1/backports-3.18.1-1.tar.xz
tar -xf backports-3.18.1-1.tar.xz
sudo apt-get install linux-headers-generic build-essential
cd /tmp/backports-3.18.1-1
make defconfig-iwlwifi
make
sudo make install
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment