Last active
June 9, 2023 15:10
-
-
Save clonn/965575be0f55da53542ba4a9e07f34c6 to your computer and use it in GitHub Desktop.
preinstall.sh for ubuntu 14.04
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
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install git -y | |
sudo apt-get install wget -y | |
sudo apt-get install curl -y | |
sudo apt-get install nginx -y | |
sudo apt-get install gcc -y | |
sudo apt-get install g++ -y | |
sudo apt-get install openssl -y | |
sudo apt-get install GraphicsMagick -y | |
sudo apt-get install ImageMagick -y | |
sudo apt-get install -y build-essential | |
#option | |
sudo apt-get install -y mongodb | |
sudo apt-get install mariadb-server | |
# install nvm | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash | |
. ~/.nvm/nvm.sh | |
# if you use bash or others, please source again. | |
source ~/.bashrc | |
# install yarn | |
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-get update && sudo apt-get install yarn | |
#nvm install v4.6.0 | |
nvm install v8.11.3 | |
# install npm global | |
npm i -g grunt-cli gulp mocha pm2 yarn | |
# install rvm | |
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
# https://github.com/rvm/rvm/issues/4068 | |
curl -sSL https://get.rvm.io | grep -v __rvm_print_headline | bash -s stable --ruby | |
gem install compass | |
# install redis and mysql | |
sudo add-apt-repository -y ppa:ondrej/mysql-5.7 | |
sudo add-apt-repository -y ppa:chris-lea/redis-server | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C | |
sudo apt-get update | |
sudo apt-get -y install mysql-server | |
sudo apt-get -y install redis-server | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment