Skip to content

Instantly share code, notes, and snippets.

@AdamJ
Last active April 30, 2020 14:47
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 AdamJ/1cf65697b213b70fa8c3ab9c07b69263 to your computer and use it in GitHub Desktop.
Save AdamJ/1cf65697b213b70fa8c3ab9c07b69263 to your computer and use it in GitHub Desktop.
Ubuntu configuration

Basic configurations for developing on a Ubuntu-based machine

VirtualBox Guest Additions

$ sudo apt install virtualbox-guest-utils virtualbox-guest-dkms virtualbox-guest-x11
$ sudo reboot
$ lsmod | grep guest

General

$ sudo apt install vim

Install Fira Code for development environment

$ sudo apt install fonts-firacode

Development Configuration

install git

$ sudo apt install git

install nodejs

$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt install -y nodejs

verify nodejs installation

$ nodejs
$ node -v
$ npm -v

install Ruby

$ sudo apt-get install ruby-full build-essential zlib1g-dev

add Ruby Gems to .bashrc

$ echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
$ echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
$ echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc

Install Jekyll

$ gem install jekyll bundler
$ bundle update --bundler

Install Gulp CLI globally

$ sudo npm install gulp-cli -g

Install JSHint glibally

$ sudo npm install -g jshint

Increase the number of watch files (if needed)

$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment