Friday, February 23, 2024

Arch Linux: Installing Jira Software

To install Jira Software on Arch Linux operating system, follow these steps:

Install a separate PostgreSQL database (in the case when we do not use the Jira installation option with a built-in database):

1. Switch to root mode "su".
2. Add a user under which the Jira daemon will run:
useradd -m -c "Account for running JIRA" -s /bin/bash jira
3. Update the package manager database:
pacman -Sy
4. Install the PostgreSQL database:
pacman -S postgresql
5. We give access to PostgreSQL files to the “postgres” user, created automatically when installing the database:
chown postgres:postgres /var/lib/postgres/data
6. Switch the terminal to the database user:
sudo -iu postgres
7. Perform initial database initialization:
initdb --encoding=UTF8 -D /var/lib/postgres/data --data-checksums
8. Return the terminal to root mode "su".
9. Set the daemon to start automatically when the OS boots:
systemctl enable postgresql
10. Then we start the service:
systemctl start postgresql
11. And check the status of the running application:
systemctl status postgresql
12. Switch the terminal to the database user:
sudo -iu postgres
13. Create the user "jira" already inside the PostgreSQL database itself:
createuser --interactive
To the question "Enter name of role to add" we answer "jira", to "Shall the new role be a superuser?" - we answer "y".
14. Switch to the user "jira":
su jira
15. Create a database for our application:
createdb jira
This completes the initial installation and configuration of PostgreSQL.

Installing the Jira server:

1. Switch to root mode "su".
2. Install certificates and necessary components for Java:
pacman -S ca-certificates-java java-environment-common java-runtime-common
3. Install OpenJDK 8:
pacman -S jdk8-openjdk
4. Check the Java status after installation:
archlinux-java status
The result should be something like this: "java-8-openjdk (default)".
5. Go to the home directory "/root":
cd
6. Download Jira Software (example for version 9.11.2):
wget -c https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-9.11.2.tar.gz
7. Unpack the archive:
tar xf atlassian-jira-software-9.11.2.tar.gz
8. Go to the unpacked directory:
cd atlassian-jira-software-9.11.2-standalone/
9. Create a folder where Jira will be located:
mkdir -p /opt/atlassian/jira/
10. Move the files there:
mv * /opt/atlassian/jira/
11. Assign access rights:
chown -R jira:jira /opt/atlassian/jira/
12. Create a directory where Jira will store the cache and settings:
mkdir /usr/local/jira
13. Assign the appropriate rights:
chown -R jira:jira /usr/local/jira
14. Create a service configuration file:|
nano /etc/systemd/system/jira.service
We add the following text there:

[Unit]
Description=Jira Issue & Project Tracking Software
After=network.target
[Service]
Type=forking
User=jirauser
LimitNOFILE=20000
PIDFile=/opt/atlassian/jira/work/catalina.pid
ExecStart=/opt/atlassian/jira/bin/start-jira.sh
ExecStop=/opt/atlassian/jira/bin/stop-jira.sh
Environment=JIRA_HOME=/usr/local/jira
[Install]
WantedBy=multi-user.target


15. Set access rights to the service file:
chmod 755 /etc/systemd/system/jira.service
16. Set the daemon to start automatically when the OS boots:
systemctl enable jira
17. Then we start the service:
systemctl start jira
18. And check the status of the running Jira Software application:
systemctl status jira

You can access Jira Software using a browser with the following link: http://jira_server_name_or_ip:8080

Licensing bypass for Jira:

For educational and informational purposes, you can use a special patch "AtlassianPrivateKeygen", which is launched from Windows. Using it, you can patch the following files (versions may be different):

/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.4.6.jar
/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-key-manager-3.4.6.jar


And then bring them back to Arch Linux. This patch also generates the necessary license.

No comments:

Post a Comment