Things to do after a fresh install of Ubuntu 14.04 (Trusty Tahr).

Things to do after a fresh install of Ubuntu 14.04 (Trusty Tahr).

Update the Ubuntu Installation.

You can update the existing installation by issuing the following command.

sudo apt-get update && sudo apt-get upgrade


Install Sublime Text.

We all need a very good Code Editor with and there are lot of them, One of them is Sublime Text which is a great editior just for the fact that it has something for Experiencied Developer/Hacker, or people who have just started Developement.

SubLimeText 2

To install Sublime Text 2 in Ubuntu 14.04 you can follow the below commands.

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

You can see the more detailed installation instruction here.

  1. Sublime Text 2

  2. Sublime Text 3


Install Package Control for SublimeText

There are lot of Packages which provides extension to the functionality to Sublime Text. The best of them is provided by a developer name WBond.

Install the Package Control by following the instruction provided at WBond

In Short you have to follow these steps.

  1. Open Console by typing ctrl+`

  2. Copy Paste this code.

import urllib2,os,hashlib; h = ’7183a2d3e96f11eeadd761d777e62404′ + ‘e330c659d4bb41d3bdf022e94cab3cd0′; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(‘ ‘, ‘%20′)).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), ‘wb’ ).write(by) if dh == h else None; print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h) if dh != h else ‘Please restart Sublime Text to finish installation’)


Install Java 7

There are multiple ways to install java in Ubuntu 14.04, before you install you should check if java is already installed by checking with this command

java -version

if the output come like this

The program ‘java’ can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

this means that Java is not installed.

Now in the above list Sun Java is not listed. So here is a way to install Sun Java.
Issue the below commands.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Now the above commands will install Java 7.

To verify if java is installed issue the following command.

java -version

the output should look like

java version “1.7.0_55″
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

There few other ways and other version of Java which we can use. Kindly see the below links.

  1. Install Oracle Java 7
  2. Other Methods

Install solarized color theme in ubuntu 14.04 Gnome Terminal

Solarized is the best color scheme. You can follow the below instruction to install it.

Before we install Solarized for Ubuntu, we might need git to be installed to that we can clone some repository from GitHub.

Check if git is installed by issuing the following command

git

if you get an output like this.

The program ‘git’ is currently not installed. You can install it by typing:
sudo apt-get install git

So you can install git by issuing the command

sudo apt-get install git

After git is installed you can clone one repository from github by using this command

git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git

just remember that the above command create’s a directory gnome-terminal-colors-solarized

Now change to the above directory by giving this command and install dark or light theme.

cd gnome-terminal-colors-solarized
install

LS fix for dircolor in solorized theme.

The above process has the issue that when using ls -l command does not give color output for directory. We can solve this issue by using the following commands

wget –no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark ~/.dircolors
eval dircolors ~/.dircolors

Here are links to some very good tutorials for setting up Solorized theme for most the editors and problem solving.

  1. Solarized Linux
  2. fix for “ls”

Install Eclipse on Ubuntu 14.04.

To install Eclipse on Ubuntu 14.04 you can follow the following list.

Download eclipse from this website eclipse

Once Downloaded you will get a tar file of some name mine was eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz.

untar it to some suitable location, i generally use /opt using the below command.

sudo tar -xzvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz -C /opt/eclipse-SE

Then you have to add it to the application menu of ubuntu so that you can launch it from HUB. Use the below command to achive this.

sudo sublime-text /usr/share/applications/eclipse-SE.desktop

You can use sublime-text or any other editor for editing.

Add the below lines to it.

[Desktop Entry]
Name=Eclipse-SE
Type=Application
Exec=/opt/eclipse-SE/eclipse/eclipse-se
Terminal=false
Icon=/opt/eclipse-SE/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse-se.desktop

For better access we can create a symbolic link in /usr/local/bin

cd /usr/local/bin
sudo ln -s /opt/eclipse-SE/eclipse/eclipse-se

Launch eclipse by using.

/opt/eclipse-SE/eclipse/eclipse-se -clean  &


Install Apache Php Mysql on Ubuntu 14.04.

All of these software are very much essential for a lot of development, like web development, Java EE application, and others.

The most simple way to install Linux Apache Php and MySQL is

sudo apt-get install lamp-server^

Check if Apache is installed by launching http://localhost/

Some more detailed information.

  1. UbuntuHelp
  2. install LAMP

Install WebStrom

Install Webstrom for javascript development. It has a lot of support but it is not as light weight as Sublime and vim, but anyway the comparision is unfair as it is comparing oranges and apple.

You can install WebStrom just like Eclipse as mentioned above.

First you need to download the application by going to WebStrom

You will get a tar file similarly named as WebStorm-8.0.1.tar.gz.

Now you can untar it into location of you desire. I have used /opt, use the below command.

sudo tar -xzvf WebStorm-8.0.1.tar.gz -C /opt/

Then you have to add it to the application menu of ubuntu so that you can launch it from HUB. Use the below command to achive this.

sudo sublime-text /usr/share/applications/Webstrom.desktop

You can use sublime-text or any other editor for editing.

Add the below lines to it.

[Desktop Entry]
Name=WebStrom
Type=Application
Exec=/opt/WebStorm-135.621/bin/webstorm.sh
Terminal=false
Icon=/opt/WebStorm-135.621/bin/webide.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=WebStrom.desktop

For better access we can create a symbolic link in /usr/local/bin

cd /usr/local/bin
sudo ln -s /opt/WebStorm-135.621/bin/webstorm.sh

There are few more Editors provided by JetBrains, which you can find here


Install Vim

We can check if vim is preinstalled on Ubuntu by checking with this command.

vim

If you get an output like this, then vim is not installed.

The program ‘vim’ can be found in the following packages:
* vim
* vim-gnome
* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: sudo apt-get install <selected package>

So you can use the below command to install vim-gnome

sudo apt-get install vim-gnome

You can verify if vim is installed by issuing these command.

vim
gvim


Additional Links.

Here are few more links which will be helpfull to install some additional software and feature.

One thing which is very good in the above link is the installation of Classic Menu Indicator

This is link is great because it gives a script to download chrome and to do auto clean

Some Interesting Links which will help additionally.

About these ads

4 thoughts on “Things to do after a fresh install of Ubuntu 14.04 (Trusty Tahr).

  1. Well the list contain some of very useful apps… but it isn’t for everybody… and laymen are the ones looking for help most of the time..

Leave a Reply

Please log in using one of these methods to post your comment:

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