Last active
September 14, 2021 10:37
-
-
Save kubk/ee912d768e39fbeb98a87334e5bab03f to your computer and use it in GitHub Desktop.
Ubuntu fresh install
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
# Fix inotify issue: https://stackoverflow.com/a/56156015 |
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
#!/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 |
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
#/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();" |
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
#!/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