This script is meant to help setup Drupal/DrupalVM development environment on a Debian-based OS with some opinionated software (like VSCodium). It will be written from a Debian Buster perspective but can be adapted to work with any Debian-like OS (such as Ubuntu) with some tweaks. The commands are all able to be run in terminal as is - but should be studied to ensure packages are correctly configured to your distro.
If you just want to get running:
- Clone the repo.
cd devsoftware
into the new directory.chmod +x ./freshSoftware.sh
to make script executable../freshSoftware
to run.
If you want to understand the script and what software it installs please continue reading.
cd ~
sudo apt install -y curl \
php-cli \
php-mbstring \
git \
unzip \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
dirmngr --install-recommends
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Pay specific attention to which OS/version is being pulled into source. Some packages build for Ubuntu and Debian in the same location. Server Keys likely to change on version.
echo 'deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main' | sudo tee -a /etc/apt/sources.list.d/ansible.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
echo 'deb http://download.virtualbox.org/virtualbox/debian bionic contrib' | sudo tee -a /etc/apt/sources.list.d/virtualbox.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main' | susdo tee -a /etc/apt/sources.list.d/vscodium.list
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | sudo apt-key add -
echo "deb https://dl.bintray.com/getinsomnia/Insomnia/" | sudo tee -a /etc/apt/sources.list.d/insomnia.list
wget -qO - https://insomnia.rest/keys/debian-public.key.asc | sudo apt-key add -
sudo apt clean
sudo apt update
sudo apt -y upgrade
sudo apt install -y ansible \
vscodium \
insomnia
cat extensions.list | xargs -L1 vscodium