Code Monkey home page Code Monkey logo

config's Introduction

Config

OS: Ubuntu 14.04 LTS (Trusty Tahr)

screenshot from 2015-11-18 07 23 29

Config is a basic checklist I follow to set up a new Ubuntu's development environment. It gets me up to speed with Git, Ruby, GitHub, Jekyll, and more so I can more quickly get back to coding.

Contents

File Description
.bashrc Custom GNOME Terminal app prompt and echos the currently checked out Git branch.
.bash_aliases Custom aliases for commands.
.gitconfig Global Git configuration to specify my name and email, shortcuts, colors, and more.
.gitignore The ignore file that I use everywhere.
.gitattributes Dealing with line endings.
base16-ocean-theme/ The collection of Base16 Ocean theme for Terminal and text editor.

Checklist

1. Prepare OS

  • Update OS packages: $ sudo apt-get update && sudo apt-get upgrade

2. Setup Ruby and gems

  • Install Ruby: $ sudo apt-get ruby

Or,

  • Install Ruby Version Manager (RVM):
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

$ \curl -sSL https://get.rvm.io | bash -s stable --ruby

$ source ~/.rvm/scripts/rvm

Installing Specific Ruby and Rails Versions:

rvm install ruby_version
rvm list
rvm use ruby_version
  • Install Bundler gem: $ sudo gem install bundler
  • Place the Gemfile in the project folder and install gem: $ bundle install

3. Setup Node.js

  • Install Node.js: $sudo apt-get install nodejs

You need to manually create a symlink /usr/bin/node. Shortcut for bash compatible shells:

$ sudo ln -s `which nodejs` /usr/bin/node

Or if you use non-standard shells, just hardcode the path you find with which nodejs:

$ sudo ln -s /usr/bin/nodejs /usr/bin/node
  • Install Grunt command line tools: sudo npm install -g grunt-cli

3. Download Atom

  • Install Atom: $ sudo apt-get atom

4. Tweaks and Base16 Ocean theme

  • Load .bashrc and .gitconfig into the global directory.
  • Base16 Ocean dark theme for GNOME Terminal: For installation just execute desired command below. Be careful, terminal will be closed after install.
wget https://raw.githubusercontent.com/MilanAryal/config/master/base16-ocean-theme/gnome-terminal/base16-ocean.dark.sh && . base16-ocean.dark.sh
  • Check unlimited scrolling on GNOME Terminal: Go to Profile Preferences > Scrolling > Scrollback > Check Unlimited.

  • On Terminal: Try, right click on terminal. Go to Profiles > Profile Preferences then left click. You will got new window. On General tab you have option Use custom default terminal size. Check option and change size of terminal. Go to close. Close terminal. Open terminal. New opened terminal will be in size your specified.

  • Install Ocean dark theme for gedit, and Atom.

  • Prevent gedit from creating backup files with the ~ (tilde) suffix: Turn off these automatic backups by going into Edit > Preferences and unchecking the Create backup copies of files before saving option under the Editor tab.

5. Blocking unwanted connections with a hosts file

  • Add the unwanted connections lists on hosts file /etc/hosts and flush DNS. You need root permission to do it, $ sudo gedit /etc/hosts.

How to flush DNS in Ubuntu?

Install nscd using the following command if not yet

sudo apt-get install nscd

Flush DNS Cache in Ubuntu by restarting the nscd

sudo /etc/init.d/nscd restart

If you want to use this configuration on your machine, please be sure to change your .gitconfig name and email address!

License

config's People

Watchers

James Cloos avatar Bai Rahmat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.