Ubuntu for developers – Linux for newbies

Ubuntu is a perfect operating system for developers. But setting up required tools can be a little bit exhausting. Let’s setup our development machine with this step-by-step tutorial.

Step 1 – Update :

Whenever you’re trying to install something run update to get latest updates. We don’t want to use out dated repositories.

sudo apt-get update

Step 2 – Terminal (optional):

This step is totally optional. But if you want a good terminal you can install terminator, or zsh which is a git styled terminal.

Terminator:

sudo apt-get install terminator

Zsh:

sudo apt-get install zsh
curl -L http://install.ohmyz.sh | sh

Step 3 – The basics:

Now lets get down to the basics.

First,

sudo apt-get install build-essential

sudo apt-get install gksudo

sudo apt-get install vim

sudo apt-get install emacs

You can also download other text editors like sublime or atom.

to install .deb packages run

sudo dpkg -i packagename.deb

 

Step 4 – Development tools:

Java:

sudo apt-get install openjdk-8-jdk

oracle-jdk:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

Java IDE:

I choose Intellij IDEA community edition. but you can also choose eclipse or netbeans.

Python:

sudo apt-get install build-essential python-dev

sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib

Dot Net using Mono framework:

Easiest way to do this is using the software centre. or just use the following command to install .Net development environment.

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

sudo apt-get install mono-devel mono-complete referenceassemblies-pcl ca-certificates-mono mono-xsp4

sudo apt-get install monodevelop-nunit monodevelop-versioncontrol monodevelop-database

Step – 4 LAMP:

Easiest way to do this is by running the following command

sudo apt-get install lamp-server

Let’s try the hard way

installing apache:

sudo apt-get install apache2

go to http://localhost/ to check installation.

 

PHP:

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Mysql server:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

For a GUI tool i suggest Mysql workbench which you can find in software centre. But if you are a fan of Phpmyadmin here’s how to install it.

sudo apt-get install phpmyadmin php-mbstring php-gettext
sudo phpenmod mcrypt
sudo phpenmod mbstring
sudo systemctl restart apache2

Adminer:

sudo apt-get install adminer

The above command installs adminer from repository. To install it manually use the following commands in order

sudo mkdir /usr/share/adminer
sudo wget "http://www.adminer.org/latest.php" -O /usr/share/adminer/latest.php
sudo ln -s /usr/share/adminer/latest.php /usr/share/adminer/adminer.php
echo "Alias /adminer.php /usr/share/adminer/adminer.php" | sudo tee /etc/apache2/conf-available/adminer.conf
sudo a2enconf adminer.conf

After installation completes, restart apache for the changes to take effect,

sudo service apache2 restart 

And that’s it. We now have almost everything we need to start developing. Happy Coding!

Correct me if there’s any mistake. Subscribe for more new posts. Contact me for any specific tutorial.

Sridhar S Subramanian, Technology enthusiast and a proud geek.

Advertisements

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