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

Real-Time Talk: Windows 10 IoT Core Background Tasks and ASP.NET Core Web Apps

Display useful information from your Windows 10 IoT Core application in an ASP.NET Core web app, essential for integrating IoT data into a solution. Windows 10 IoT background task talk with a web application using WebSockets. Problems As my path to this solution has been troublesome, I am listing here the main problems I faced so my dear readers have a better idea of dead-end streets along the way: I was not able to make the ASP.NET Core web application run under a Windows 10 IoT background service. I found no information about when or if it will be supported in the near future. ASP.NET MVC and ASP.NET Core have different SignalR implementations. I was not able to make a SignalR client for .NET Core work with SignalR hosted on a web application. I was able to make things work by directly using a WebSocket. It’s not as nice a solution as I had in my mind, but it works until things get better. Making the Background Task and Web Application Talk I worked out sim...

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...

DANGER (STILL) LURKS IN THE INTERNET OF THINGS (IOT)

All of the media, both “mainstream” and “tech”, has gushed over all of the new appliances and devices that are now in the category of what we would call the Internet of Things.  Items like home security,  home lighting, and refrigerators, to name a few. There are many advantages to having connected appliances and devices, Threats that can and will be exploited if unsuspecting users don’t secure them.   Two “layers” of security : The first layer of offering  is a security API that will provide [a way] to easily do a virtual patch, to prevent a remote attack, for example . . . the third layer is cloud: IoT cannot do anything without the cloud.  Most data is sent to the cloud and you will need to have proper protection and make sure the cloud is always available. In both situation Users are vulnerable, mostly due to their own apathy.  Users often either don’t know how to patch their own machines (and in this case, devices) or have glanced...