Project

General

Profile

Support #671

Install Galaxy Project on Debian

Added by Daniel Curtis about 9 years ago. Updated almost 9 years ago.

Status:
Suspended
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/08/2015
Due date:
% Done:

30%

Estimated time:
3.00 h
Spent time:

Description

This is a guide on installing the Galaxy Project along with Nginx and PostgreSQL on Debian 8.

Prepare the Environment

  • Make sure the system is up to date:
    apt-get update && apt-get upgrade
    
  • Add the Galaxy user
    adduser galaxy
    
  • Install a few dependencies:
    apt-get install git gcc autoconf automake libtool bison sqlite3 cmake
    

Install Galaxy Project

  • Switch to the galaxy user:
    su - galaxy
    
  • Download the latest source code:
    git clone -b master https://github.com/galaxyproject/galaxy/
    cd galaxy
    
  • Create a config file from the sample config:
    vi /home/galaxy/galaxy/config/galaxy.ini.sample /home/galaxy/galaxy/config/galaxy.ini
    
    • And modify the following:
      host = 0.0.0.0
      database_connection = postgresql://galaxyuser:SuperSecretPassword@localhost/galaxydb
      
  • Setup and run test run galaxy:
    sh run.sh
    

Install PostgreSQL

  • Install postgresql
    apt-get install postgresql postgresql-client libpqxx-dev
    
  • Edit pg_hba.conf to enable database access via the local socket:
    nano /etc/postgresql/9.4/main/pg_hba.conf
    
    • Replace peer with trust
      local   all         all                               trust   
      
  • Edit the main postgresql config:
    nano /etc/postgresql/9.4/main/postgresql.conf
    
    • And change the listen_addresses parameter:
      listen_addresses = '*'
      
  • Then append a rule to enable network access from a given subnet:
    echo "host    all     all     192.168.0.0/24  trust" >> /etc/postgresql/9.4/main/pg_hba.conf
    
  • And restart postgresql:
    service postgresql restart
    

Create a database and user

  • Connect to the default database:
    su - postgres
    psql
    
    • Set a password for the postgres user:
      \password postgres
      
    • Create the galaxyuser user, the postgres admin console will show postgres=#:
      CREATE USER galaxyuser WITH PASSWORD 'SuperSecretPassword';
      
    • And a create the galaxydb database:
      CREATE DATABASE galaxydb OWNER galaxyuser;
      
    • Quit from the database
      \q
      
  • Exit from the postgres user
    exit
    
  • Connect as somepguser to the new database:
    su - galaxy
    psql -d galaxydb -U galaxyuser
    \q
    

Resources

#1

Updated by Daniel Curtis about 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30
#2

Updated by Daniel Curtis almost 9 years ago

  • Status changed from In Progress to Suspended

Also available in: Atom PDF