Installing Java on Ubuntu

Before installing anything make sure that there are no openjdk packages installed. The following command should get rid off all openjdk packages on the system

sudo apt-get purge openjdk*

Next remove any other sources that might be included with the box from the sources.list

sudo rm /etc/apt/sources.list.d/*java*

Once the system is clean of all Java components you can now add a new PPA to the repository list and install Java 7

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

The installation should take up to 5 minutes.

Running Jira on port 80

By default, the installation wizard does not allow to run Jira on port 80. You can, however add a proxy to listen on port 80 and reroute the traffic to 8080. To do this we'll use Apache, but before that let's stop the Jira service.

sudo service jira stop

If set up correctly, you should see the following:

Next, install Apache and enable the proxy module:

sudo apt-get install apache2
e2enmod proxy_http
a2enmod proxy
sudo service apache2 stop

Once Apache is installed and proxy module enabled, we need to create a configuration file which will pass our request to Jira daemon.

sudo vi /etc/apache2/sites-available/jira.conf

Your configuration file should be similar to this:

<VirtualHost *:80>
    ServerName www.<yourdomainhere>
    ServerAlias <yourdomainhere>
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

Now, navigate to /opt/atlassian/jira/conf/ and append the following line to the end of catalina connector found in server.xml


Once complete, start jira and reload apache.

sudo service jira start
sudo service apache2 reload

Give it few minutes since Jira is a multithreading application and less powerful computers will take a while to boot up. Once it's online, you can access it through your domain.

Installing and running Docker on Debian Wheezy

Install newer Linux kernel from wheezy backports

Docker needs Linux 3.8 or newer so you will need to use a backports kernel.

1. Add the following line to your /etc/apt/sources.list:

deb wheezy-backports main non-free contrib

run sudo apt-get update, install the backports kernel, then reboot:

$ sudo apt-get update
$ sudo apt-get -t wheezy-backports install linux-image-amd64 linux-headers-amd64
$ sudo reboot

Follow installation instructions for Ubuntu 12.04

2. Next, follow the docs for installing for Ubuntu 12.04. (While this is not best it does the job!).

3. Install apt-transport-https

$ sudo apt-get install apt-transport-https

4. Add docker apt key:

$ sudo apt-key adv --keyserver hkp:// --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

5. Add the docker repository to your apt sources list, update and install lxc-docer package.

$ sudo sh -c "echo deb docker main\
> /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker

Now verify that the installation has worked by downloading the ubuntu image and launching a container.

$ sudo docker run -i -t ubuntu /bin/bash

Enjoy endless hours of containerized frustration!