Making a fresh data science box by updating your Ubuntu

Operating System

  1. Find out if you are 32 bit or 64 bit

lscpu

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Model name:            Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz
Stepping:              1
CPU MHz:               1698.273
CPU max MHz:           1700.0000
CPU min MHz:           800.0000
BogoMIPS:              3392.00
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

  1. Ubuntu 16 upgrade (download from http://www.ubuntu.com/download and make a fresh startup USB see http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu)
  2. Download Chrome

http://www.google.com/chrome/

 

Dependencies from Terminal

  • Package Manager Synaptic sudo apt-get install synaptic
  • Package Manager Software Centre sudo apt-get install software-center*
  • SSL sudo apt-get install libssl-dev
  • XML sudo apt-get install libxml2-dev
  • Curl sudo apt-get install libcurl4-openssl-dev
  • GIT sudo apt install git
  • GTK $sudo apt-get install wajig

$wajig install libgtk2.0-dev

  • Java
    java -version

    sudo apt-add-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    
    
    export JAVA_HOME=/usr/lib/jvm/java-8-oracle
    
    

    sudo R CMD javareconf

  • R for Linux
Manual Editing of Sources is by (use Ctrl O and Ctrl X to write file and exit nano)

sudo nano /etc/apt/sources.list 

# Grabs your version of Ubuntu as a BASH variable
CODENAME=`grep CODENAME /etc/lsb-release | cut -c 18-`

# Appends the CRAN repository to your sources.list file 
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu $CODENAME" >> /etc/apt/sources.list'

 

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9

sudo apt-get install r-base-dev

  • RStudio

Download RStudio

  • RStudio Addins

install.packages(‘addinslist’)

  • Data Mining

install.packages(c(‘rattle’,”Rcmdr”))

install.packages(c(“RcmdrPlugin.epack”, “RcmdrPlugin.KMggplot2”))

 

Python

Download

https://www.continuum.io/downloads

$cd Downloads

~/Downloads$ bash Anaconda3-4.1.1-Linux-x86_64.sh

$conda install -c r r-essentials

 

Author: Ajay Ohri

http://about.me/ajayohri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s