Skip to content
mengfung.com
writing

Preparing a Server for Atlassian Software

 ·  2 min read

I’ve been a user of Jira before the kanban “agile” interface and it was still one suite with an agile plugin. I use both Jira Core (“task”) and Jira Software (“agile”). I use Core for task based projects and Software for well software based projects.

I actually use Core for home projects like: my daughters 3rd birthday, remodeling the garage, gardening task like cloning my chili plant or gardenias. I have a project with multiple task and sub-task.

Given: I have an over powered media server running Ubuntu 18.04 and I have a need to track my personal task and projects. And I thought it would be a fun weekend project.

When: I install Atlassian’s Jira Software Server, Jira Core Server, and Confluence Server (I will be also installing Bamboo Server and BitBucket Server at a later time)

Then: I will have access to Jira for any task or project and I can track progress. I will have also learned how to manage and use Jira from another point of view. Not just moving features across and completing them.

Preparing for Jira Software

# Update apt
$ sudo apt update
# Install a database i'll be using Postgresql you can also use MySQL
# Install Postgresql and Java 8 just in case you don't have it installed
$ sudo apt install postgresql postgresql-contrib openjdk-8-jre-headless
# Setup postgres to auto start on restart
$ sudo update-rc.d postgresql enable
# What version of Postgres and Java
$ psql --version
$ java --version
# Checking postgres status
$ service postgresql status
# Create database user jirasoftware_user is the username we'll be using
# Also note -P after the createuser will prompt for user password after each createuser
# which will allow you to skip the alter statements
# Also note -E just in case encrypts passwords
# sudo -u postgres createuser -P -E <username>
$ sudo -u postgres createuser jirasoftware_user
$ sudo -u postgres createuser jiracore_user
$ sudo -u postgres createuser confluence_user
# Create the database we'll be using for Jira Software
$ sudo -u postgres createdb jirasoftware
$ sudo -u postgres createdb jiracore
$ sudo -u postgres createdb confluence
# Create passwords for users please use something better than secretpass
$ sudo -u postgres psql
postgres=# alter user jirasoftware_user with encrypted password 'secretpass';
postgres=# alter user jiracore_user with encrypted password 'secretpass';
postgres=# alter user confluence_user with encrypted password 'secretpass';
# Adding privileges on database for users
postgres=# grant all privileges on database jirasoftware to jirasoftware_user;
postgres=# grant all privileges on database jiracore to jiracore_user;
postgres=# grant all privileges on database confluence to confluence_user;

Recap: We should have installed PostgreSQL and then created users and databases for software

Next we’ll grab all needed software

$ mkdir atlassian_source && $_
# Or if using ohmyzsh
$ take atlassian_source
$ wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.11.2-x64.bin
$ wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.12.1-x64.bin
$ wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-core-7.12.1-x64.bin

Related to this post