Installing XRay in Ubuntu 14.04 and 16.04

Angello Maggio
2 min readJul 13, 2017

--

This post is likely very outdated, use carefully.

Ubuntu 14.04.5

$ sudo apt-get update

Download Xray from

Move to the home directory, extract, and install.

$ mv Downloads/x-ray-ubuntu-1.8.tar.gz ~/
$ tar -xzf xray-ubuntu-1.8.tar.gz
$ cd xray-ubuntu-1.8/
$ sudo ./installXray-ubuntu.sh

Everything went well, output here:

Run with

$ sudo /opt/jfrog/xray/scripts/xray.sh start

No errors, check http://localhost:8000 and it works. We shut down the system, restart, and it’s still there. Good job Ubuntu 14.04.

Ubuntu 16.04

Fresh install on VM, do a sudo a apt-get update download Xray from same source , move to home directory, extract, and run install script.

$ sudo ./installXray-ubuntu.sh

Run into error

ERROR: Installing rabbitmq-server package failed
$ sudo su
#./installXray-ubuntu.sh

It works, but in between some red text about RabbitMQ still shows up. Output:

# exit
$ sudo /opt/jfrog/xray/scripts/xray.sh start

We check in http://localhost:8000. Works, let’s shut down the system, should get similar errors when we bring it back up.

Same address doesn’t work anymore. Let’s look at the logs.

I assume it’s issue with connecting to Postgres so I apply fix based on this page I found:

# $ sudo su
# vim /var/opt/jfrog/postgres/data/pg_hba.conf

Add that line, then we restart PostgreSQL and Xray

# exit
$ sudo /etc/init.d/postgresql-9.5 restart
$ sudo /opt/jfrog/xray/scripts/xray.sh stop
$ sudo /opt/jfrog/xray/scripts/xray.sh start

Now we go to our browser and it works.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Angello Maggio
Angello Maggio

Written by Angello Maggio

Python Coder — DevOps Padawan — Total Nerd

No responses yet

Write a response