# 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
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
# setup git
git config --global credential.helper cache --timeout=3600
git config --global user.email " [email protected] "
git config --global user.name " Name"
git config --global core.editor nano
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
# 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