Skip to main content

Setting up a development machine on Ubuntu


These steps will guide you on setting up an Ubuntu machine as a development machine.

Here is what I use the machine for...
Ruby on Rails development
PHP development
Java development
Photo management

All these commands are executed in TERMINAL
Basic Setup

# make sure every thing is update
sudo apt-get update
sudo apt-get upgrade


# this will install adobe-flash, sun-jre
# http://packages.ubuntu.com/jaunty/ubuntu-restricted-extras
#
#if you are using KUBUNTU
    sudo apt-get install -y kubuntu-restricted-extras
#if you are using UBUNTU
    sudo apt-get install -y ubuntu-restricted-extras
sudo apt-get install -y firefox
sudo apt-get install -y vim-gtk
sudo apt-get install -y synaptic
Development Stuff

# will install compilers (gcc and dev libraries)
sudo apt-get install -y build-essential
sudo apt-get install -y pkg-config
Apache

sudo apt-get install -y apache2
sudo apt-get install -y apache2-prefork-dev
Mysql & PHP

sudo apt-get install -y mysql-server  #will install mysql server and client
sudo apt-get install -y php5    php5-cli     php5-mysql
sudo apt-get install -y phpmyadmin
Ruby on Rails

sudo apt-get install -y ruby-full  rubygems  # will install dev libraries

# now we need modify PATH in ~/.bashrc
# edit the file ~/.bashrc with your favorite editor and add the following line
# at the end of file
export PATH=/var/lib/gems/1.8/bin:$PATH

# run bash  again
bash
# this will create a new shell with new env variables

# Now install a few gems
## mysql
sudo apt-get install -y libmysqlclient-dev
sudo gem install --no-rdoc --no-ri mysql

sudo gem install --no-rdoc --no-ri rails
sudo gem install --no-rdoc --no-ri hpricot
sudo gem install --no-rdoc --no-ri json
sudo gem install --no-rdoc --no-ri capistrano

sudo apt-get install -y sqlite3    libsqlite3-ruby  libsqlite3-dev
sudo gem install --no-rdoc --no-ri sqlite3

sudo apt-get install -y libxml2-dev
sudo gem install --no-rdoc --no-ri libxml-ruby


# installing RMagick
# thanks to : http://swik.net/Ruby/Code+Snippets:+ruby/Installing+RMagick+on+Ubuntu+9.10+(Karmic+Koala)/db597
sudo apt-get install -y imagemagick  
sudo apt-get install -y librmagick-ruby
sudo apt-get install -y libmagickwand-dev

sudo gem install --no-rdoc --no-ri rmagick

# ok time for testing
# Open an irb session and try the following

irb
require 'RMagick'
#=> true

require 'rvg/rvg'
#=> true

include Magick
#=> Object



# Now lets get some documentation.  The typical 'frames' version is so
# 1990s...I like the ajaxified documentation at RailBrains.
# I download these to my local machine and run it locally
rails : railsbrain.com
ruby : rubybrain.com

Version Control : SVN & GIT

sudo apt-get install -y subversion
sudo apt-get install -y git-core    git-gui
Java

sudo apt-get install -y sun-java6-jdk
sudo apt-get install -y sun-java6-plugin sun-java6-fonts

#
# ubuntu has multiple java versions
java -version
# will tell you what version of java you are using
sudo update-alternatives --config java
# and follow prompts
# https://help.ubuntu.com/community/Java

Popular Java IDEs : netbeans and  eclipse
# I usually download them from their respective projects sites and install them
# in my home dir (e.g: /home/sujee/apps/eclipse )
# this way, their auto-updaters will work just fine fetching the new
# releases.  If you install using apt-get you need to be running the IDEs
# as ROOT user for updates to work (not recommended)
# but if you want to install them anyway, here is how
sudo apt-get install -y netbeans
sudo apt-get install -y eclipse

Also....
Web Site Management

sudo apt-get install -y sitecopy
sudo apt-get install -y unison   unison-gtk
Photo Management

sudo apt-get install -y kphotoalbum
sudo apt-get install -y jhead
sudo apt-get install -y gimp
sudo apt-get install -y gqview

Comments

Popular posts from this blog

Python and Parquet Performance

In Pandas, PyArrow, fastparquet, AWS Data Wrangler, PySpark and Dask. This post outlines how to use all common Python libraries to read and write Parquet format while taking advantage of  columnar storage ,  columnar compression  and  data partitioning . Used together, these three optimizations can dramatically accelerate I/O for your Python applications compared to CSV, JSON, HDF or other row-based formats. Parquet makes applications possible that are simply impossible using a text format like JSON or CSV. Introduction I have recently gotten more familiar with how to work with  Parquet  datasets across the six major tools used to read and write from Parquet in the Python ecosystem:  Pandas ,  PyArrow ,  fastparquet ,  AWS Data Wrangler ,  PySpark  and  Dask . My work of late in algorithmic trading involves switching between these tools a lot and as I said I often mix up the APIs. I use Pandas and PyArrow for in-RAM comput...

How to construct a File System that lives in Shared Memory.

Shared Memory File System Goals 1. MOUNTED IN SHARED MEMORY The result is a very fast, real time file system. We use Shared Memory so that the file system is public and not private. 2. PERSISTS TO DISK When the file system is unmounted, what happens to it? We need to be able to save the file system so that a system reboot does not destroy it. A great way to achieve this is to save the file system to disk. 3. EXTENSIBLE IN PLACE We want to be able to grow the file system in place. 4. SUPPORTS CONCURRENCY We want multiple users to be able to access the file system at the same time. In fact, we want multiple users to be able to access the same file at the same time. With the goals now in mind we can now talk about the major design issues: FAT File System & Design Issues The  FAT File System  has been around for quite some time. Basically it provides a pretty good file structure. But I have two problems with it: 1. FAT IS NOT EXTENSIBLE IN PLAC...

Fetching Facebook Friends using Windows Azure Mobile Services

This tutorial shows you how to fetch Facebook Friends if you have Facebook accessToken. Here is the the code for Scheduled task called getFriends function getFriends() { //Name of the table where accounts are stored var accountTable = tables.getTable('FacebookAccounts'); //Name of the table where friends are stored var friendsTable = tables.getTable('Friends'); checkAccounts(); function checkAccounts(){ accountTable .read({success: function readAccounts(accounts){ if (accounts.length){ for (var i = 0; i < accounts.length; i++){ console.log("Creating query"); //Call createQuery function for all of the accounts that are found createQuery(accounts[i], getDataFromFacebook); } } else { console.log("Didn't find any account"); prepareAccountTable(); } }}); } function prepareAccountTable(){ var myAccount = { accessToken: "", //enter here you facebook accessToken. You can retrieve ...