Skip to content

Instantly share code, notes, and snippets.

@dww510
Last active December 13, 2019 12:04
Show Gist options
  • Save dww510/cf27e4545e1873ff0fd4b4a724bc6cc3 to your computer and use it in GitHub Desktop.
Save dww510/cf27e4545e1873ff0fd4b4a724bc6cc3 to your computer and use it in GitHub Desktop.

Install apt-get:

  • Open the command prompt
  • Run sudo apt-get update
  • Be more forceful (sudo apt-get -f install) if the update fails

Install Git:

  • sudo apt-get install git, and type Y when it asks to continue
  • sudo apt-get install libnss3-dev, and type Y when it asks to continue

Minimal Git configuration:

  • git config --global user.name "Your Actual Name"
  • git config --global user.email "Your Actual Email"
  • If you want to use a remote, like GitHub, set up SSH keys

Install node & nvm

  • follow instruction on nvm to install latest version, below serve as an example only.
  • wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  • nvm install 10

Install nano editor

  • sudo apt-get install nano

Install wget

  • sudo apt-get install wget

Install PHP 7.2

  • sudo apt install ca-certificates apt-transport-https
  • wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
  • echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
  • sudo apt install php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-xml php7.2-zip

Install composer

  • php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  • php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  • php composer-setup.php
  • php -r "unlink('composer-setup.php');"
  • Copy composer to /usr/local/bin
  • sudo cp composer.phar /usr/local/bin/composer
  • Edit your .bashrc file to add composer to your path
  • nano ~/.bashrc
  • export PATH=”/sbin:$HOME/.config/composer/vendor/bin:$PATH”

Install MySQL (MariaDB)

  • sudo apt-get install mysql-server
  • sudo apt-get install mysql-client

Install nginx

  • Log into your (ve) Server via SSH as the root user.
  • ssh root@hostname
  • Use apt-get to update your (ve) Server.
  • root@karmic:~# apt-get update
  • Install nginx.
  • root@karmic:~# apt-get install nginx
  • By default, nginx will not start automatically, so you need to use the following command. Other valid options are "stop" and "restart".
  • root@karmic:~# sudo /etc/init.d/nginx start`
  • Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  • configuration file /etc/nginx/nginx.conf test is successful.

Install an Atom editor:

  • If not downloaded, download an editor (atom-amd64.deb from the atom releases page, for example)
  • Run sudo dpkg --install ~/Downloads/atom-amd64.deb to install it
  • To use another editor, repeat those steps (download it and install it) for the editor of your choice

Install an Sublime editor:

  • Install the GPG key:
  • wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  • Ensure apt is set up to work with https sources:
  • sudo apt-get install apt-transport-https
  • Select the channel to use:
  • Stable echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list -Dev echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  • Update apt sources and install Sublime Text
  • sudo apt-get update
  • sudo apt-get install sublime-text

Install Nautilus File0manager

  • sudo apt-get install nautilus-admin

Install yarn

  • Follow instruction on yarn to install latest version, below serve as an example only.
  • 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 remove cmdtest
  • sudo apt-get update && sudo apt-get install --no-install-recommends yarn

Install Ruby:

  • sudo apt-get install curl
  • command curl -sSl https://rvm.io/mpapis.asc | gpg --import- (because RVM needs to match signatures)
  • curl -L get.rvm.io | bash -s stable to install ruby
  • Close and reopen terminal
  • Confirm rvm is there by running rvm -v and getting good feedback, like ruby 2.2.2, rather than an error
  • Use /bin/bash --login if RVM won't let you set a version.
  • Install and set a default ruby version; this uses 2.2.2 as the example, but change it to fit what you need:
    • rvm install 2.2.2
    • rvm use 2.2.2
    • rvm -- default use 2.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment