Skip to content

Instantly share code, notes, and snippets.

@dinolupo
Last active March 19, 2017 18:57
Show Gist options
  • Select an option

  • Save dinolupo/46f2a145c13baebdd1ef to your computer and use it in GitHub Desktop.

Select an option

Save dinolupo/46f2a145c13baebdd1ef to your computer and use it in GitHub Desktop.
Fresh Install of Ubuntu 16.04 LTS

install missing softwares

sudo apt-get -y install vim git zsh tree ack-grep npm guake tmux

install Ubuntu Firewall GUI

sudo apt-get -y install gufw

openjdk and mongodb

sudo apt-get -y install openjdk-8-jdk mongodb

Oracle JDK

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u72-b15/jdk-8u72-linux-x64.tar.gz
mkdir /opt/jdk
tar xvfz jdk-8u72-linux-x64.tar.gz -C /opt/jdk/
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_72/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_72/bin/javac 100

Idea 15 IBUS Fix

mkdir ibusfix
cd ibusfix
wget https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8264511/+files/gir1.2-ibus-1.0_1.5.11+git20151104-2-0ubuntu1~xenial1_amd64.deb
wget https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8264511/+files/ibus-gtk3_1.5.11+git20151104-2-0ubuntu1~xenial1_amd64.deb
wget https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8264511/+files/ibus-gtk_1.5.11+git20151104-2-0ubuntu1~xenial1_amd64.deb
wget https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8264511/+files/libibus-1.0-5_1.5.11+git20151104-2-0ubuntu1~xenial1_amd64.deb
wget https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8264511/+files/ibus_1.5.11+git20151104-2-0ubuntu1~xenial1_amd64.deb
sudo dpkg -i *.deb 

VIM configuration

wget https://gist.githubusercontent.com/dinolupo/b0cbcec4101b6290e6d6/raw/77279e46e71f37145f1d88ea73f8ac3ffa778b88/.vimrc -O ~/.vimrc

install oh-my-zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

enable UTF International chars on Terminal (not printed well on zsh)

add the following to .zshrc

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Tomorrow Night Theme for Gnome-Terminal

curl https://raw.githubusercontent.com/chriskempson/base16-gnome-terminal/master/base16-default.dark.sh | bash

restart Terminal and choose default "Base16 Default Dark" profile

install adobe font Source Code Pro

wget https://github.com/adobe-fonts/source-code-pro/archive/2.010R-ro/1.030R-it.zip
unzip 1.030R-it.zip
mkdir -p ~/.fonts
mv source-code-pro-2.010R-ro-1.030R-it/OTF/*.otf ~/.fonts
rm -r 1.030R-it.zip source-code-pro-2.010R-ro-1.030R-it
fc-cache -f -v

installation

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-wily main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-cache policy docker-engine
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install docker-engine
sudo service docker start
sudo docker run hello-world

VIM Dockerfile https://github.com/ekalinin/Dockerfile.vim

$ git clone https://github.com/ekalinin/Dockerfile.vim.git
$ cd Dockerfile.vim
$ make install

optional config

sudo usermod -aG docker your_user_name

install pidgin (not very compatible, but the only lync/skype for business on linux)

sudo apt-get -y install pidgin

install pidgin-sipe plugin from source

sudo apt-get install checkinstall
sudo apt-get install build-essential
wget http://sourceforge.net/projects/sipe/files/sipe/pidgin-sipe-1.20.1/pidgin-sipe-1.20.1.tar.gz/download
tar -xvvzf pidgin-sipe-1.20.1.tar.gz
cd pidgin-sipe-1.20.1
sudo apt-get install libpurple-dev libtool intltool pkg-config libglib2.0-dev libxml2-dev libnss3-dev libssl-dev libkrb5-dev libnice-dev libgstreamer0.10-dev
./configure --prefix=/usr
make
sudo checkinstall
sudo ln -s /usr/bin/pidgin.orig /usr/bin/pidgin

if you cannot see the office communicator protocol, reboot

Pidgin Configuration

  • Protocol: Office Communicator
  • Username: office e-mail
  • domain\user
  • domain password
  • Advanced Tab:
    • Connection: Auto
    • User Agent: UCCAPI/15.0.4420.1017 OC/15.0.4420.1017
    • Auth-Scheme: TLK-DSK

install Slack client ScudCloud

sudo apt-get -y install scudcloud

install NFS client and mount NAS shared nfs folders

install nfs client and create directory

sudo apt-get -y install nfs-common
sudo mkdir -p /mnt/nfs/nas-dino

edit fstab to automount at start

1.2.3.4:/DataVolume/dino    /mnt/nfs/nas-dino   nfs _netdev,defaults 0 0

VirtualBox with DKMS (with it the kernel compatibility is preserved)

  1. Purge VirtualBox
sudo apt-get purge virtualbox\*
sudo apt-get purge dkms\*
sudo apt-get purge linux-headers
sudo apt-get autoremove
  1. Reboot

  2. linux headers

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install dkms
dpkg -i virtualbox-5.0_5.0.14-105127-Ubuntu-wily_amd64.deb
VBoxManage extpack install ./Oracle_VM_VirtualBox_Extension_Pack-5.0.14-105127.vbox-extpack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment