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

Common Sense Identification of the Security Problems

Organizations make key information security mistakes, which leads to inefficient and ineffective control environment. High profile data breaches and cyber-attacks drive the industry to look for more comprehensive protection measures since many organizations feel that their capability to withstand persistent targeted attacks is minimal. But at the same time, these organizations make some key information security mistakes, that jeopardize their efforts towards control robustness. Although many firms invest in security technologies and people, no one has the confidence that the measures taken are good enough to protect their data from compromises. Below are the 10 worst mistakes which are common to find, and important to address in the path of mature information security posture. If you analyze the cyber security scenarios, and organizational capabilities, the prevailing trend is a vendor-driven approach. In many cases, security professionals adopt the attitude of procuring...

Ingesting IoT Sensor Data Into S3 With an RPI3

StreamSets Data Collector Edge is a lightweight agent used to create end-to-end data flow pipelines. We'll use it help stream data collected from a sensor. Due to the increasing amount of data produced from outside source systems, enterprises are facing difficulties in reading, collecting, and ingesting data into a desired, central database system. An edge pipeline runs on an edge device with limited resources, receives data from another pipeline or reads the data from the device, and controls the device based on the data. StreamSets Data Collector (SDC) Edge, an ultra-lightweight agent, is used to create end-to-end data flow pipelines in StreamSets Data Collector and to run the pipelines to read and export data in and out of systems. In this blog, StreamSets Data Collector Edge is used to read data from an air pressure sensor (BMP180) from an IoT device (Raspberry Pi3). Meanwhile, StreamSets Data Collector is used to load the data into Amazon's Simple Storage Service ...

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