Skip to content

Instantly share code, notes, and snippets.

@owindsor
Created July 17, 2020 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owindsor/a84abc7ea20f74f2ecc9aa43ab5b40d8 to your computer and use it in GitHub Desktop.
Save owindsor/a84abc7ea20f74f2ecc9aa43ab5b40d8 to your computer and use it in GitHub Desktop.
provision extra tools
#!/bin/bash
#increase swap to 8gb
swapoff -a
rm -i -f /swapfile
dd if=/dev/zero of=/swapfile bs=1M count=8192
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
#folder for packages
mkdir -p /tmp/extra_packages
#docker group update
usermod -aG docker $(id -nu 1000)
#snap installs
snap install slack --classic
snap install gimp
snap install postman
#package downloads
wget -O /tmp/extra_packages/discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
wget -P /tmp/extra_packages https://zoom.us/client/latest/zoom_amd64.deb
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list
#MySQL workbench apt config
wget -P /tmp/extra_packages https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
DEBIAN_FRONTEND=noninteractive apt -q -y install postfix /tmp/extra_packages/mysql-apt-config_0.8.15-1_all.deb
rm -f /tmp/extra_packages/mysql-apt-config_0.8.15-1_all.deb
apt update
#install packages
apt install libvulkan1:i386 libnvidia-gl-440:i386 mysql-workbench-community libmysqlclient21 mysql-common mysql-client teams gdebi-core -y
#remove buggy package
apt purge xserver-xorg-video-intel -y
#install downloads
apt install -y /tmp/extra_packages/*.deb
#remove downloads
rm -rf /tmp/extra_packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment