Skip to content

Instantly share code, notes, and snippets.

@mohamed-ea
Last active January 6, 2017 18:07
Show Gist options
  • Save mohamed-ea/28205e0b4d113ada5e02228596e1e948 to your computer and use it in GitHub Desktop.
Save mohamed-ea/28205e0b4d113ada5e02228596e1e948 to your computer and use it in GitHub Desktop.
My Development Environment Setup on Linux (ElementaryOS)
# Update system
sudo apt-get update -y
# Install the software-properties-common Package
sudo apt install -y build-essential libssl-dev software-properties-common python-software-properties curl autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev git-core
# Elementary Tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt-get update
sudo apt-get install -y elementary-tweaks
# Screenfetch
sudo apt install screenfetch -y
# Sublime Text 3
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
# Virtualbox
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-x11 -y
# Java Development Environment
sudo apt-get purge openjdk-*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer -y
# Enable SSH
sudo apt-get install openssh-server -y
sudo service ssh start
#if needed : sudo vi /etc/ssh/sshd_config
# Set JAVA_HOME environment variable for all the users globally
sudo sh -c "printf '\n%s\n%s\n' 'export JAVA_HOME=/usr/lib/jvm/java-8-oracle' 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile"
source /etc/profile
# Various SDKs like Groovy,Grails , Gradle etc using SDKMan (http://sdkman.io/)
curl -s http://get.sdkman.io | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
sdk install groovy
sdk install ant
# NodeJS
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs
# Yeoman and generators
sudo npm install -g yo bower grunt-cli gulp
sudo npm install -g generator-webapp generator-angular generator-jhipster generator-meanjs cordova ionic generator-m-ionic
# RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
cd /tmp
\curl -sSL https://get.rvm.io -o rvm.sh
cat /tmp/rvm.sh | bash -s stable --rails
rvm
# ZSH, OhMyZsh, Powerline
sudo apt install -y zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
sudo chsh -s $(which zsh) $(whoami)
git clone https://github.com/powerline/fonts.git && cd fonts && sudo chmod +x install.sh && sudo ./install.sh && cd .. && sudo rm -R fonts
git clone https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme.git && cd oh-my-zsh-powerline-theme && sudo
# LAMP
sudo -y apt-get install apache2
sudo sh -c "printf '\n%s\n' 'ServerName DELLUX' >> /etc/apache2/apache2.conf"
sudo systemctl restart apache2
sudo apt install mysql-server mysql-workbench -y
sudo apt install -y php libapache2-mod-php php-mcrypt php-mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment