Showing posts with label Galaxy. Show all posts
Showing posts with label Galaxy. Show all posts

Satrt Customer Service when CentOS starts

1. write a start script and put the following two comments into your script:


# chkconfig: 2345 90 10
# description: start Galaxy service and listening on port 8080, to visit please go http://localhost:8080
put your scripts here, which you wish to start when system boots

Where the chkconfig line is the most important, it lists

a. 2345 - runlevels the service will be started (by default),

b. 90 - when the service is started when entering a runlevel (relative to others, look into /etc/rc3.d for example),

c. 10 - when the service is stopped (relative to others, see /etc/rc0.d for example)


2. put your script into /etc/init.d, make it executable (usually chmod'ed to 755)


3. As root run "chkconfig --add your_service


Make Galaxy accept remote access

In order to make Galaxy access remote access, I have set up the following parts:

1.      Uncomment the following line in universe_wsgi.ini file which located in your home directory of galaxy, and change the ip address to 0.0.0.0
host = 0.0.0.0


2.      Edit the iptables at /etc/sysconfig/iptables and add the following line into this file, where port_num represent the port number of your galaxy listening port.


   A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport port_num -j ACCEPT


       3. Restart iptables: sudo /etc/init.d/iptables restart

4. restart you Galaxy

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...