...
 
Commits (2)
#!/usr/bin/env bash
# Logging stuff.
function m_header() { echo -e "\n\033[1m$@\033[0m"; }
function m_success() { echo -e " \033[1;32m✔\033[0m $@"; }
function m_error() { echo -e " \033[1;31m✖\033[0m $@"; }
function m_arrow() { echo -e " \033[1;33m➜\033[0m $@"; }
m_header "Install docker.io environment"
sudo apt-get update
sudo apt-get install apparmor linux-image-extra-$(uname -r)
wget -O- https://get.docker.com/ | sh
m_success "Installed docker"
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
m_success "Symlinked docker.io -> docker"
sudo usermod -a -G docker christoph
m_success "Added christoph to group docker"
wget -O ~/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -p`
chmod +x ~/bin/docker-compose
m_success "Installed docker-compose"
m_success "Successfully installed docker Environment"
......@@ -9,8 +9,8 @@ function m_arrow() { echo -e " \033[1;33m➜\033[0m $@"; }
set -e
sudo add-apt-repository -y universe
wget -O- https://s3-us-west-2.amazonaws.com/brave-apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt `lsb_release -sc` main" | sudo tee /etc/apt/sources.list.d/brave-`lsb_release -sc`.list
wget -O- https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ `lsb_release -sc` main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-`lsb_release -sc`.list
wget -O- https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee /etc/apt/sources.list.d/signal-xenial.list
sudo add-apt-repository -y ppa:nextcloud-devs/client
......@@ -44,7 +44,9 @@ sudo apt-get install -y git git-svn vim screen sl htop bash-completion suckless-
silversearcher-ag \
libreoffice \
moc \
brave \
docker.io \
brave-browser \
brave-keyring \
signal-desktop
cd ~;
......
......@@ -15,6 +15,13 @@ DEVDIRECTORY="/home/christoph/Development/"
mkdir -p $DEVDIRECTORY
m_success "Added $DEVDIRECTORY"
usermod -a -G docker $USER
m_success "Added $USER to docker group"
wget -O /home/christoph/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -p`
chmod +x /home/christoph/bin/docker-compose
m_success "Installed docker-compose"
ssh-keygen -b 4096 -f ~/.ssh/id_rsa -N ""
m_success "Generated ssh-key to ~/.ssh/id_rsa"
......