Last active
February 9, 2021 16:38
-
-
Save rydurham/2c728fcd7076c340b0ecf994830420df to your computer and use it in GitHub Desktop.
Ubuntu Provisioning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home partition | |
# https://help.ubuntu.com/community/Partitioning/Home/Moving | |
# Basics | |
sudo apt update | |
sudo apt install curl vim git libpng-dev | |
sudo apt remove apache2 | |
# Remove snapd | |
# https://askubuntu.com/questions/1035915/how-to-remove-snap-store-from-ubuntu | |
sudo apt autoremove --purge snapd | |
# Remove 'ctl+shift+e' keybinding conflict | |
# https://github.com/Microsoft/vscode/issues/48480#issuecomment-414464079 | |
# Git config | |
git config --global user.name "Ryan C. Durham" | |
git config --global user.email [email protected] | |
git config --global core.editor "vim" | |
git config --global push.default simple | |
# SSH and GPG | |
# https://help.github.com/articles/generating-an-ssh-key/ | |
# https://help.github.com/en/articles/generating-a-new-gpg-key | |
# https://help.github.com/en/articles/telling-git-about-your-signing-key | |
# Postgres | |
sudo apt install postgresql postgresql-contrib | |
sudo -i -u postgres | |
createuser --interactive # ryan / y | |
createdb ryan | |
psql -c "ALTER USER ryan WITH PASSWORD 'secret'" | |
# PHP | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt install -y php7.2 php7.2-fpm php7.2-cli php7.2-common php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-pgsql php7.2-sqlite php7.2-zip php7.2-curl | |
# Composer | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
sudo chown -R ryan ~/.composer/ | |
sudo vim /etc/environment # /home/ryan/.composer/vendor/bin. | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
composer config --global repo.packagist composer https://packagist.org # https://debril.org/how-to-fix-composers-slowness.html | |
# PHP CS Fixer | |
composer global require friendsofphp/php-cs-fixer | |
# Node / NPM | |
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt install -y nodejs | |
# Auto-Completion | |
echo set completion-ignore-case on | sudo tee -a /etc/inputrc | |
# Enable Line-in access to speaker output | |
pactl load-module module-loopback | |
# Install VS Code | |
# https://code.visualstudio.com/docs/setup/linux | |
# https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc | |
# Install AWS CLI | |
# https://docs.aws.amazon.com/cli/latest/userguide/install-bundle.html | |
# Install Docker | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# https://docs.docker.com/install/linux/linux-postinstall/ | |
# https://docs.docker.com/compose/install/ | |
# Install NordVPN | |
# https://support.nordvpn.com/Connectivity/Linux/1325531132/Installing-and-using-NordVPN-on-Debian-Ubuntu-and-Linux-Mint.htm | |
# Install Keybase | |
# https://keybase.io/docs/the_app/install_linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment