How to install Bitbuckets On Oracle Linux 8.8

To install Bitbuckets On Oracle Linux 8.8

Introduction

Bitbucket Cloud is a Git-based code hosting and collaboration tool, designed for teams. Bitbucket's best-in-class Jira and Trello integrations are developed to bring the whole software team together to execute a project.

Procedure

Step1: Check the installed versions of OS by using the below command

[root@linuxhelp]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8

Step 2: Download the java package by using the below command

[root@linuxhelp ~]# yum -y install wget java-1.8.0-openjdk-devel
Last metadata expiration check: 0:00:39 ago on Tuesday 25 July 2023 12:59:57 AM IST.
Package wget-1.19.5-11.0.1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package                  Arch   Version                    Repository     Size
================================================================================
Installing:
 java-1.8.0-openjdk-devel x86_64 1:1.8.0.372.b07-4.0.1.el8  ol8_appstream 9.8 M
Installing dependencies:
 copy-jdk-configs         noarch 4.0-2.el8                  ol8_appstream  30 k
 java-1.8.0-openjdk       x86_64 1:1.8.0.372.b07-4.0.1.el8  ol8_appstream 546 k
 java-1.8.0-openjdk-headless
                          x86_64 1:1.8.0.372.b07-4.0.1.el8  ol8_appstream  34 M
 javapackages-filesystem  noarch 5.3.0-1.module+el8+5136+7ff78f74
                                                            ol8_appstream  30 k
 

lksctp-tools             x86_64 1.0.18-3.el8               ol8_baseos_latest
                                                                          100 k
 ttmkfdir                 x86_64 3.0.9-54.el8               ol8_appstream  62 k
 tzdata-java              noarch 2023c-1.el8                ol8_appstream 186 k
 xorg-x11-fonts-Type1     noarch 7.5-19.el8                 ol8_appstream 522 k
Enabling module streams:
 javapackages-runtime            201801                                        
Transaction Summary
================================================================================
Install  9 Packages
Total download size: 46 M
Installed size: 162 M
Downloading Packages:
(1/9): copy-jdk-configs-4.0-2.el8.noarch.rpm    276 kB/s |  30 kB     00:00    
(2/9): lksctp-tools-1.0.18-3.el8.x86_64.rpm     843 kB/s | 100 kB     00:00    
(3/9): java-1.8.0-openjdk-1.8.0.372.b07-4.0.1.e 3.5 MB/s | 546 kB     00:00    
(4/9): javapackages-filesystem-5.3.0-1.module+e 613 kB/s |  30 kB     00:00    
(5/9): ttmkfdir-3.0.9-54.el8.x86_64.rpm         1.1 MB/s |  62 kB     00:00    
(6/9): tzdata-java-2023c-1.el8.noarch.rpm       3.4 MB/s | 186 kB     00:00    
(7/9): xorg-x11-fonts-Type1-7.5-19.el8.noarch.r 8.0 MB/s | 522 kB     00:00    
(8/9): java-1.8.0-openjdk-devel-1.8.0.372.b07-4  14 MB/s | 9.8 MB     00:00    
(9/9): java-1.8.0-openjdk-headless-1.8.0.372.b0  23 MB/s |  34 MB     00:01    
--------------------------------------------------------------------------------
Total                                            28 MB/s |  46 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch                      1/1 
  Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el   1/1 
  Preparing        :                                                        1/1 
  Installing       : tzdata-java-2023c-1.el8.noarch                         1/9 
  Installing       : ttmkfdir-3.0.9-54.el8.x86_64                           2/9 
  Installing       : xorg-x11-fonts-Type1-7.5-19.el8.noarch                 3/9 
  Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch                 3/9 
  Installing       : javapackages-filesystem-5.3.0-1.module+el8+5136+7ff7   4/9 
  Installing       : copy-jdk-configs-4.0-2.el8.noarch                      5/9 
  Installing       : lksctp-tools-1.0.18-3.el8.x86_64                       6/9 
  Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64                       6/9 
  

  Installing       : java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el   7/9 
  Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el   7/9 
  Installing       : java-1.8.0-openjdk-1:1.8.0.372.b07-4.0.1.el8.x86_64    8/9 
  Running scriptlet: java-1.8.0-openjdk-1:1.8.0.372.b07-4.0.1.el8.x86_64    8/9 
  Installing       : java-1.8.0-openjdk-devel-1:1.8.0.372.b07-4.0.1.el8.x   9/9 
  Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.372.b07-4.0.1.el8.x   9/9 
  Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch                      9/9 
  Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el   9/9 
  Running scriptlet: java-1.8.0-openjdk-1:1.8.0.372.b07-4.0.1.el8.x86_64    9/9 
  Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.372.b07-4.0.1.el8.x   9/9 
  Verifying        : lksctp-tools-1.0.18-3.el8.x86_64                       1/9 
  Verifying        : copy-jdk-configs-4.0-2.el8.noarch                      2/9 
  Verifying        : java-1.8.0-openjdk-1:1.8.0.372.b07-4.0.1.el8.x86_64    3/9 
  Verifying        : java-1.8.0-openjdk-devel-1:1.8.0.372.b07-4.0.1.el8.x   4/9 
  Verifying        : java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el   5/9 
  Verifying        : javapackages-filesystem-5.3.0-1.module+el8+5136+7ff7   6/9 
  Verifying        : ttmkfdir-3.0.9-54.el8.x86_64                           7/9 
  Verifying        : tzdata-java-2023c-1.el8.noarch                         8/9 
  Verifying        : xorg-x11-fonts-Type1-7.5-19.el8.noarch                 9/9 
Installed:
  copy-jdk-configs-4.0-2.el8.noarch                                             
  java-1.8.0-openjdk-1:1.8.0.372.b07-4.0.1.el8.x86_64                           
  java-1.8.0-openjdk-devel-1:1.8.0.372.b07-4.0.1.el8.x86_64                     
  java-1.8.0-openjdk-headless-1:1.8.0.372.b07-4.0.1.el8.x86_64                  
  javapackages-filesystem-5.3.0-1.module+el8+5136+7ff78f74.noarch               
  lksctp-tools-1.0.18-3.el8.x86_64                                              
  ttmkfdir-3.0.9-54.el8.x86_64                                                  
  tzdata-java-2023c-1.el8.noarch                                                
  xorg-x11-fonts-Type1-7.5-19.el8.noarch                                        
Complete!

Step 3: Install the Git by using the below command

[root@linuxhelp ~]# yum install git
Last metadata expiration check: 0:01:11 ago on Tuesday 25 July 2023 12:59:57 AM IST.
Dependencies resolved.
================================================================================
 Package              Arch       Version                Repository         Size
================================================================================


Installing:
 git                  x86_64     2.39.3-1.el8_8         ol8_appstream     104 k
Installing dependencies:
 git-core             x86_64     2.39.3-1.el8_8         ol8_appstream      11 M
 git-core-doc         noarch     2.39.3-1.el8_8         ol8_appstream     3.0 M
 perl-Error           noarch     1:0.17025-2.el8        ol8_appstream      46 k
 perl-Git             noarch     2.39.3-1.el8_8         ol8_appstream      79 k
 perl-TermReadKey     x86_64     2.37-7.el8             ol8_appstream      40 k
Transaction Summary
================================================================================
Install  6 Packages
Total download size: 14 M
Installed size: 44 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): git-2.39.3-1.el8_8.x86_64.rpm            639 kB/s | 104 kB     00:00    
(2/6): perl-Error-0.17025-2.el8.noarch.rpm      3.3 MB/s |  46 kB     00:00    
(3/6): perl-Git-2.39.3-1.el8_8.noarch.rpm       3.5 MB/s |  79 kB     00:00    
(4/6): perl-TermReadKey-2.37-7.el8.x86_64.rpm   828 kB/s |  40 kB     00:00    
(5/6): git-core-doc-2.39.3-1.el8_8.noarch.rpm   8.5 MB/s | 3.0 MB     00:00    
(6/6): git-core-2.39.3-1.el8_8.x86_64.rpm        18 MB/s |  11 MB     00:00    
--------------------------------------------------------------------------------
Total                                            24 MB/s |  14 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : git-core-2.39.3-1.el8_8.x86_64                         1/6 
  Installing       : git-core-doc-2.39.3-1.el8_8.noarch                     2/6 
  Installing       : perl-TermReadKey-2.37-7.el8.x86_64                     3/6 
  Installing       : perl-Error-1:0.17025-2.el8.noarch                      4/6 
  Installing       : perl-Git-2.39.3-1.el8_8.noarch                         5/6 
  Installing       : git-2.39.3-1.el8_8.x86_64                              6/6 
  Running scriptlet: git-2.39.3-1.el8_8.x86_64                              6/6 
  Verifying        : git-2.39.3-1.el8_8.x86_64                              1/6 
  Verifying        : git-core-2.39.3-1.el8_8.x86_64                         2/6 
  Verifying        : git-core-doc-2.39.3-1.el8_8.noarch                     3/6 
  Verifying        : perl-Error-1:0.17025-2.el8.noarch                      4/6 
  

Verifying        : perl-Git-2.39.3-1.el8_8.noarch                         5/6 
  Verifying        : perl-TermReadKey-2.37-7.el8.x86_64                     6/6 
Installed:
  git-2.39.3-1.el8_8.x86_64              git-core-2.39.3-1.el8_8.x86_64        
  git-core-doc-2.39.3-1.el8_8.noarch     perl-Error-1:0.17025-2.el8.noarch     
  perl-Git-2.39.3-1.el8_8.noarch         perl-TermReadKey-2.37-7.el8.x86_64    
Complete!

Step 4: Download Bitbucket Package by using the below command

[root@linuxhelp ~]# wget https://www.atlassian.com/software/stash/downloads/binary/atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508
--2023-07-25 01:01:35--  https://www.atlassian.com/software/stash/downloads/binary/atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508
Resolving www.atlassian.com (www.atlassian.com)... 18.161.229.110, 18.161.229.24, 18.161.229.29, ...
Connecting to www.atlassian.com (www.atlassian.com)|18.161.229.110|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508 [following]
--2023-07-25 01:01:36--  https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508
Resolving product-downloads.atlassian.com (product-downloads.atlassian.com)... 18.67.156.165, 2600:9000:2241:9600:1f:ab86:b4a:17e1, 2600:9000:2241:c600:1f:ab86:b4a:17e1, ...
Connecting to product-downloads.atlassian.com (product-downloads.atlassian.com)|18.67.156.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 313308664 (299M) [application/octet-stream]
Saving to: ‘atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508’


atlassian-bitbucket 100%[===================>] 298.79M  34.9MB/s    in 8.6s    
2023-07-25 01:01:44 (34.9 MB/s) - ‘atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508’ saved [313308664/313308664]

Step 5: Rename the downloaded file by using the below command

[root@linuxhelp ~]# mv 'atlassian-bitbucket-6.10.0-x64.bin?_ga=2.132685326.1651200632.1580009508-119668002.1580009508' atlassian-bitbucket-6.10.0-x64.bin

Step 6: Give the execute permission to the file by using the below command

[root@linuxhelp ~]# chmod +x atlassian-bitbucket-6.10.0-x64.bin

Step 7: Add firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --add-port=7990/tcp --permanent
Success

Step 8: Reload firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --reload
Success

Step 9: Configure Bitbucket by using the below command

[root@linuxhelp]# cat << 'EOF' >> response.varfile
> app.bitbucketHome=/opt/atlassian/application-data/bitbucket
> app.defaultInstallDir=/opt/atlassian/bitbucket/6.10.0
> app.install.service$Boolean=true
> executeLauncherAction$Boolean=true
> httpPort=7990
> installation.type=INSTALL
> launch.application$Boolean=true
> sys.adminRights$Boolean=true
> sys.languageId=en
> EOF

Step 10: Run bitbucket by using the below command

[root@linuxhelp ~]# ./atlassian-bitbucket-6.10.0-x64.bin 
Starting Installer ...
The installation directory has been set to /opt/atlassian/bitbucket/6.10.0.
Extracting files ...
Launching Bitbucket ...
Finishing installation ...

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Bitbucket on Oracle Linux 8.8. Your feedback is much welcome.

FAQ
Q
Why Bitbucket is used?
A
Bitbucket is the Git repository management solution designed for professional teams. It gives you a central place to manage git repositories, collaborate on your source code and guide you through the development flow and it also provides awesome features that include Workflow control to enforce a project or team workflow.
Q
Is Bitbucket a repository?
A
Bitbucket is a Git-based source code repository hosting service owned by Atlassian. Bitbucket offers both commercial plans and free accounts with an unlimited number of private repositories
Q
What is the difference between Git and Bitbucket?
A
The main difference between Git and Bitbucket is that Git is a distributed version control system while Bitbucket is a web-based version control repository hosting service for development projects that use Git or Mercurial.
Q
Is Bitbucket a DevOps tool?
A
Bitbucket is part of Atlassian’s DevOps offering. Atlassian connects development, IT operations, and business teams with automation that spans our products and third-party tools.
Q
What version of Git do you support?
A
Bitbucket Cloud generally keeps up to date with recent versions of Git