Skip to content

Instantly share code, notes, and snippets.

@kubk
Last active September 14, 2021 10:37
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 kubk/ee912d768e39fbeb98a87334e5bab03f to your computer and use it in GitHub Desktop.
Save kubk/ee912d768e39fbeb98a87334e5bab03f to your computer and use it in GitHub Desktop.
Ubuntu fresh install
# Fix inotify issue: https://stackoverflow.com/a/56156015
#!/bin/bash
# Install Fish shell
sudo apt install fish
sudo cp /usr/bin/fish /usr/local/bin/fish
sudo echo '/usr/local/bin/fish' >> /etc/shells
chsh -s /usr/local/bin/fish
sudo chsh -s /usr/local/bin/fish
reboot
#/bin/bash
sudo apt install postgresql
sudo su postgres
createuser -P --interactive # Add name, password, agree to make him super user
sudo -i -u postgres psql -c "SELECT pg_reload_conf();"
sudo -i -u postgres psql -c "SELECT NOW();"
#!/bin/bash
# An algorithm to set up a new system
# Install PHPStorm using JetBrains toolbox: https://www.jetbrains.com/toolbox-app/
# Required plugins: Prettier, Styled Components
# Move your SSH files (public key, private key, known hosts) to .ssh folder of the new system
# Copy ~/.gitconfig to new system
# Install NVM: https://github.com/nvm-sh/nvm
sudo apt install \
git curl nginx vim ranger unzip \
php8.0 php8.0-cli php8.0-fpm php8.0-pgsql php8.0-mbstring php8.0-curl php8.0-xml php8.0-zip php8.0-gd php8.0-intl php8.0-xdebug php8.0-pdo-sqlite;
# Composer
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-20-04
# export COMPOSER_HOME="$HOME/.config/composer"; # Add to ~/.bashrc
mkdir .composer
sudo chown -R $USER $HOME/.composer
# Select switch layout key: https://askubuntu.com/a/1029605
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment