User Tools

Site Tools


howto:preview_fits_images_with_rts2-xmlrpcd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:preview_fits_images_with_rts2-xmlrpcd [2009/08/30 09:56] wildihowto:preview_fits_images_with_rts2-xmlrpcd [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
 ===== Prerequisites ===== ===== Prerequisites =====
- 
- 
   * Update your RTS2 source tree to the latest revision (e.g. 6216).    * Update your RTS2 source tree to the latest revision (e.g. 6216). 
  
Line 10: Line 8:
 </code> </code>
  
-  * If not existent create in the root directory / of your system the directory named ''/images''+  * If not existent create in the root directory / of your system the directory named ''/images''.
  
-  * Copy an example FITS file, preferably created with RTS2, to  ''/images''+  * Copy an example FITS file, preferably created with RTS2, to ''/images''.
  
   * Connect to the postgres database and add a username, password to the table ''users'', e.g.   * Connect to the postgres database and add a username, password to the table ''users'', e.g.
 <code bash>  insert into users values ('USERNAME', 'SECRETPASSWORD', NULL, 'name@example.com', 1);</code> <code bash>  insert into users values ('USERNAME', 'SECRETPASSWORD', NULL, 'name@example.com', 1);</code>
- + 
-  +
 ===== (Pre-)view the FITS images ===== ===== (Pre-)view the FITS images =====
-{{ :howto:preview.jpg?321|The preview seen in the browser.}}+{{ howto:preview.jpg?200|The preview seen in the browser.}}
   * Start the daemon interactively with <code>rts2-xmlrpcd  -i</code>   * Start the daemon interactively with <code>rts2-xmlrpcd  -i</code>
-  * Enter the URL http://your.system.tld:8889/preview/images into a browser, (e.g. {{ http://petr:test@bootes2.homeip.net:8889/preview/images/2009/20090823/00004}}) +  * To preview the images enter the URL ''http://your.system.tld:8889/preview/images'' into a browser, (for an example see [[http://petr:test@bootes2.rts2.org:8889/preview/images/|Bootes2]]). 
-  +  * To view the images click on the thumbnail. 
 + 
 +===== Security  =====   
 +''rts2-xmlrpcd'' maps a browser request, e.g. ''http://your.system.tld::8889/preview/'' to the root directory 
 +trying to display all but only files with the extension ''.fits''. That implies that the directory structure of the system and all FITS images therein are exposed to public view.
howto/preview_fits_images_with_rts2-xmlrpcd.1251618969.txt.gz · Last modified: 2009/08/30 00:00 (external edit)