Skip to content

Instantly share code, notes, and snippets.

@jacqinthebox
Last active April 2, 2018 12:29
Show Gist options
  • Select an option

  • Save jacqinthebox/af3c7d6b10fd393a3b64ba8ef0a7b7c6 to your computer and use it in GitHub Desktop.

Select an option

Save jacqinthebox/af3c7d6b10fd393a3b64ba8ef0a7b7c6 to your computer and use it in GitHub Desktop.
virtualbox-17.10.sh
#!/bin/bash
# Install Ubuntu 18.10 Desktop
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y wget curl git gitk vim-nox build-essential linux-headers-$(uname -r) dkms gdebi shutter gnome-tweak-tool
# install Powerline fonts
mkdir ~/gitrepos
cd gitrepos
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
# Node.js && NPM fix
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
mkdir ~/npm-global -p
sudo chown -R $USER:$USER ~/npm-global
npm config set prefix '~/npm-global'
#Open or create a ~/.profile file and add this line:
echo "export PATH=~/npm-global/bin:$PATH" >> ~/.profile
source ~/.profile
#Installing and configuring zsh and oh-my-zsh"
sudo apt-get install zsh git-core -y
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
sed -i -e 's/fino/robbyrussel/g' ~/.zshrc
echo "DEFAULT_USER="\""$USER"\"" >> ~/.zshrc
echo "export PATH=~/npm-global/bin:$PATH" >> ~/.zshrc
#Configuring vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/Valloric/MatchTagAlways.git
git clone https://github.com/ctrlpvim/ctrlp.vim.git
git clone https://github.com/vim-airline/vim-airline.git
git clone https://github.com/vim-airline/vim-airline-themes.git
git clone https://github.com/lukaszb/vim-web-indent.git
git clone https://github.com/hashivim/vim-vagrant.git
git clone https://github.com/altercation/vim-colors-solarized.git
cd ~ && git clone https://github.com/flazz/vim-colorschemes.git
cd vim-colorschemes
mv colors ~/.vim/colors
rm ~/vim-colorschemes -rf
# copy vmrc
wget -O ~/.vimrc http://files.in-the-box.nl/vimrc.txt
# install .net core
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1.3
# PowerShell
curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update && sudo apt-get install powershell
# Visual Studio Code
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get update && sudo apt-get install code
# SQL Server
# https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
sudo apt-get update && sudo apt-get install -y mssql-server
# Add the tools
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/prod.list)"
sudo apt-get update && sudo apt-get install -y mssql-tools unixodbc-dev
# Operations Studio
# https://docs.microsoft.com/en-us/sql/sql-operations-studio/download
wget http://download.microsoft.com/download/B/2/0/B20D3C84-C82A-4638-8E8C-164E09B96F71/sqlops-linux-0.25.4.deb
sudo dpkg -i sqlops-linux-0.25.4.deb
# Eye candy
sudo apt-get install autotools-dev autoconf -y
git clone https://github.com/horst3180/arc-icon-theme --depth 1 && cd arc-icon-theme
./autogen.sh --prefix=/usr
sudo make install
sudo apt install arc-theme
sudo apt install moka-icon-theme
# Vagrant + Virtualbox
cd ~
wget https://download.virtualbox.org/virtualbox/5.2.6/virtualbox-5.2_5.2.6-120293~Ubuntu~zesty_amd64.deb
sudo dpkg -i virtualbox-5.2_5.2.6-120293~Ubuntu~zesty_amd64.deb
wget -nc https://releases.hashicorp.com/vagrant/1.9.4/vagrant_1.9.4_x86_64.deb
if [ ! -f /usr/bin/vagrant ] ; then
sudo dpkg -i vagrant_1.9.4_x86_64.deb
fi
# Setup Sql
# sudo /opt/mssql/bin/mssql-conf setup
# Login
# sqlcmd -S localhost -U SA -P '<YourPassword>'
# Verify
# systemctl status mssql-server
# vim /etc/NetworkManager/NetworkManager.conf
# Comment out the line dns=dnsmasq, so it looks like this:
# dns=dnsmasq
# sudo restart network-manager
# sudo service network-manager restart
# sudo apt install lightdm-gtk-greeter-setting
# pkexec lightdm-gtk-greeter-settings
# /usr/share/backgrounds
# git config --global user.name $USER
# git config --global user.email $USER@$HOSTNAME.nl
# to add key to Github:
# ssh-keygen -t rsa
# xclip -sel clip < ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment