Accelerator Dashboard Computer: Difference between revisions

From FSU Fox's Lab Wiki
Jump to navigation Jump to search
Line 36: Line 36:


  Include conf-available/serve-cgi-bin.conf
  Include conf-available/serve-cgi-bin.conf
  <Directory "/var/www/html/FoxLabDashBoard">
  <Directory "/var/www/html/FoxLabDashBoard">
   AllowOverride None
   AllowOverride None

Revision as of 17:45, 30 January 2024

The computer is hosting the Dashboard program for the beam line and interlock display. It also (aims to) collect data for all information about the beam line, such as, current, pressure, temperature, etc. An elog is also available.

Configuration

replace a newer PC at 2024-01-30

  • Intel(R) Core(TM) i5-12400 CPU @ 4.4GHz (12 cores)
  • 16 GB RAM
  • 256 MB NVME + 1 TB HDD
  • onboard display
  • Ubuntu 22.04
  • IP : 192.168.0.168
  • DNS : 192.168.0.1
  • Gateway : 192.168.0.1

Dashboard program

Screenshot of the Beam line Dashboard

The Dashboard is code using python3 with tkinter.

https://fsunuc.physics.fsu.edu/git/rtang/FoxLabDashBoard

Apache server

sudo apt install apache2

the web page is stored at

/var/www/html/FoxLabDashBoard

make a symbolic link

/var/www/html/index.html->FoxLabDashBoard/index.html

in the /etc/apache2/site-available/000-default.conf, add the following lines between the VirtualHost

Include conf-available/serve-cgi-bin.conf
<Directory "/var/www/html/FoxLabDashBoard">
  AllowOverride None
  Options +ExecCGI
  Order allow,deny
  Allow from all
  AddHandler cgi-script .cgi .py
</Directory>

InfluxDB

The InfluxDB 1.8 is used. Installation can be found https://docs.influxdata.com/influxdb/v1.8/introduction/

The configuration is located at /etc/influxdb/influxdb.conf

data location

  • /var/lib/influxdb/data
  • /var/lib/influxdb/wal

ELOG

Elog installation can be found in Web_Server#Elog.

All files are stored at /usr/local/elog/

After installed ImageMagick. The default policy forbid to convert pdf ps. to change that, edit /etc/ImageMagick-6/policy.xml, comment out these lines

 <policy domain="coder" rights="none" pattern="PS" />
 <policy domain="coder" rights="none" pattern="PS2" />
 <policy domain="coder" rights="none" pattern="PS3" />
 <policy domain="coder" rights="none" pattern="EPS" />
 <policy domain="coder" rights="none" pattern="PDF" />
 <policy domain="coder" rights="none" pattern="XPS" />

Grafana