To help you install Upsource quickly and easily, let’s take a common Ubuntu installation as an example and go through the entire process.
Unless you already have one, download JRE 1.8 installation package from the Oracle web-site.
Launch the terminal and create a folder where java binaries will be stored:
sudo mkdir –p /usr/local/java
Go to the folder with the downloaded jre archive (the default location is shown here):
Copy the archive to your java folder:
sudo cp –r jre-7u25-linux-x64.tar.gz /usr/local/java
Go to the java folder:
To execute our archive, we need to set permissions.
Change the permissions:
sudo chmod a+x jre.tar.gz
Unpack the archive:
sudo tar xvzf jre.tar.gz
Now we are going to set system variables.
sudo gedit /etc/profile
and add the following lines to the bottom of the file:
JRE_HOME=/usr/local/java/jre1.8.0_25 PATH=$PATH:$JRE_HOME/bin export JRE_HOME export PATH
Save the file and close it.
Tell your system where JRE is located:
sudo update-alternatives –install “/usr/bin/java” “java” “/usr/local/java/jre1.8.0_25” 1
Make the JRE the default one:
sudo update-alternatives –set java /usr/local/java/jre1.8.0_25/bin/java
Check if java was installed correctly:
Add the following lines to the
* - memlock unlimited * - nofile 100000 * - nproc 32768 * - as unlimited
Download a new Upsource build from our website.
Create a folder for it. We’ll refer to this folder as Upsource home directory:
Sudo mkdir –p /opt/Upsource
Go to the folder with the downloaded Upsource archive (the default location is shown here):
Copy the archive to your Upsource folder:
cp Upsource.zip /opt
sudo chmod a+x Upsource.zip
Unpack the archive:
sudo unzip Upsource.zip
Make the Upsource folder writable:
sudo chmod -R a+rwX /opt/Upsource
Launch the terminal and go to the bin folder in the Upsource home directory:
When you run Upsource for the first time, it will open Configuration Wizard in your default browser, where you can specify initial settings.
That’s it. As soon as you’re finished, you’ll be taken to Upsource welcome page from where you can proceed to creating your first project.