Skip to content

Instantly share code, notes, and snippets.

@unsalted
Last active March 25, 2017 18:42
Show Gist options
  • Save unsalted/7ed3ba9ce3bd158e77486abb59adf9b5 to your computer and use it in GitHub Desktop.
Save unsalted/7ed3ba9ce3bd158e77486abb59adf9b5 to your computer and use it in GitHub Desktop.
Initial setup + installs - Ubuntu 16.04 - KDE neon

Docker

# setup
sudo apt-get -y install \
  apt-transport-https \
  ca-certificates \
  curl

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
       
# install
sudo apt-get -y install docker-ce

# test
sudo docker run hello-world

# post install

# sudo
sudo groupadd docker
sudo usermod -aG docker $USER
docker run hello-world

# boot on start
 sudo systemctl enable docker


# nvidia-docker

wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

# Test nvidia-smi
nvidia-docker run --rm nvidia/cuda nvidia-smi

network

sudo apt-get install ufw openssh-server
sudo ufw allow from 10.0.1.0/24 to any port 22
sudo ufw enable
sudo ufw status

git

# setup git
git config --global credential.helper cache --timeout=3600
git config --global user.email "email@example.com"
git config --global user.name "Name"
git config --global core.editor nano

pbcopy

sudo apt install xclip

sudo nano /usr/local/bin/pbcopy

# paste

#!/bin/bash
xclip -i -sel c -f |xclip -i -sel p


# change permisisons
sudo chmod +x /usr/local/bin/pbcopy

ssh key

# setup
ssh-keygen

# copy
cat ~/.ssh/id_rsa.pub | pbcopy

# add to to git and other services

keyring (apps like nylas require it)

sudo apt-get install libgnome-keyring-dev

add nomodeset to grub config

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment