Skip to content

Instantly share code, notes, and snippets.

@yunusemredilber
Last active April 5, 2020 15:29
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 yunusemredilber/e8b7810284f3c35e873a2aa4a4a87120 to your computer and use it in GitHub Desktop.
Save yunusemredilber/e8b7810284f3c35e873a2aa4a4a87120 to your computer and use it in GitHub Desktop.
Elementary OS commands for creating a development environment [Mostly for Android & Rails]
# Update and Upgrade System
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
# Install Tweaks (To enable dark mode and more)
sudo apt install software-properties-common
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt install elementary-tweaks
# Install Multimedia Codecs
sudo apt install ubuntu-restricted-extras
sudo apt install libavcodec-extra
sudo apt install libdvd-pkg
# Additional Software
sudo apt install git
sudo apt-get install -y git-flow # If you are going to use Git-Flow
sudo apt install vlc
sudo apt-get install chromium-browser firefox
# Install Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
# Lab2023 Builder (Specially for Ruby development environment)
bash <(curl -s https://raw.githubusercontent.com/lab2023/builder/develop/linux.sh)
# Install Snapcraft
sudo apt install snapd
sudo snap set core refresh.schedule=2:00-5:00 # To disable annoying auto-updates
# Apps From Snapcraft (All optional)
sudo snap install cmake --classic
sudo snap install telegram-desktop
sudo snap install code --classic
sudo snap install rubymine --classic
sudo snap install postman
sudo snap install spotify
sudo snap install scrcpy
sudo snap install --classic heroku
# Install yarn & npm
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install nodejs
# Android Stuido
sudo snap install android-studio --classic
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils # You might be need ia32-libs-multiarch too.
sudo adduser USER kvm # USER = os user name. ex: yunus
sudo chown USER /dev/kvm # USER = os user name. ex: yunus
# Restart computer for applying necessary changes.
# Flutter
# Download installation bundle from https://flutter.dev/docs/get-started/install/linux
tar xf ~/Downloads/flutter_linux_v1.12.13+hotfix.8-stable.tar.xz # File name could be different
# Add the following line to ~.zshrc
# export PATH="$PATH:/home/USER/flutter/bin" # USER = os user name. ex: yunus
# Restart your terminal session
flutter precache
# manually add the old version of the Android SDK Tools for Flutter to work.
# see: https://flutter.dev/docs/get-started/install/linux#android-setup
flutter doctor # To see any remaining issues left.
# Install flutter and dart plugins to Android Studio and you are ready to go!
# Postgresql
sudo apt install postgresql postgresql-contrib libpq-dev
sudo apt-get install gedit
sudo gedit /etc/postgresql/POSTGRE_VERSION/main/pg_hba.conf # POSTGRE_VERSION = 10
# Change all configuration access to:
# # Database administrative login by Unix domain socket
# local all all trust
# TYPE DATABASE USER ADDRESS METHOD
# # "local" is for Unix domain socket connections only
# local all all trust
# # IPv4 local connections:
# host all all 127.0.0.1/32 trust
# # IPv6 local connections:
# host all all ::1/128 trust
sudo /etc/init.d/postgresql restart # Restart postgresql server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment